diff options
Diffstat (limited to 'deps/node/deps/v8')
-rw-r--r-- | deps/node/deps/v8/include/v8-platform.h | 2 | ||||
-rw-r--r-- | deps/node/deps/v8/include/v8.h | 33 | ||||
-rw-r--r-- | deps/node/deps/v8/include/v8config.h | 34 |
3 files changed, 35 insertions, 34 deletions
diff --git a/deps/node/deps/v8/include/v8-platform.h b/deps/node/deps/v8/include/v8-platform.h index cfeb13b6..cf64ed9f 100644 --- a/deps/node/deps/v8/include/v8-platform.h +++ b/deps/node/deps/v8/include/v8-platform.h @@ -387,7 +387,7 @@ class Platform { * since epoch. Useful for implementing |CurrentClockTimeMillis| if * nothing special needed. */ - static double SystemClockTimeMillis(); + V8_EXPORT static double SystemClockTimeMillis(); }; } // namespace v8 diff --git a/deps/node/deps/v8/include/v8.h b/deps/node/deps/v8/include/v8.h index 325d3b09..ddedb141 100644 --- a/deps/node/deps/v8/include/v8.h +++ b/deps/node/deps/v8/include/v8.h @@ -25,39 +25,6 @@ #include "v8-version.h" // NOLINT(build/include) #include "v8config.h" // NOLINT(build/include) -// We reserve the V8_* prefix for macros defined in V8 public API and -// assume there are no name conflicts with the embedder's code. - -#ifdef V8_OS_WIN - -// Setup for Windows DLL export/import. When building the V8 DLL the -// BUILDING_V8_SHARED needs to be defined. When building a program which uses -// the V8 DLL USING_V8_SHARED needs to be defined. When either building the V8 -// static library or building a program which uses the V8 static library neither -// BUILDING_V8_SHARED nor USING_V8_SHARED should be defined. -#ifdef BUILDING_V8_SHARED -# define V8_EXPORT __declspec(dllexport) -#elif USING_V8_SHARED -# define V8_EXPORT __declspec(dllimport) -#else -# define V8_EXPORT -#endif // BUILDING_V8_SHARED - -#else // V8_OS_WIN - -// Setup for Linux shared library export. -#if V8_HAS_ATTRIBUTE_VISIBILITY -# ifdef BUILDING_V8_SHARED -# define V8_EXPORT __attribute__ ((visibility("default"))) -# else -# define V8_EXPORT -# endif -#else -# define V8_EXPORT -#endif - -#endif // V8_OS_WIN - /** * The v8 JavaScript engine. */ diff --git a/deps/node/deps/v8/include/v8config.h b/deps/node/deps/v8/include/v8config.h index 75fd5aa7..9f4a9ef6 100644 --- a/deps/node/deps/v8/include/v8config.h +++ b/deps/node/deps/v8/include/v8config.h @@ -420,6 +420,40 @@ namespace v8 { template <typename T> class AlignOfHelper { char c; T t; }; } #define V8_WARN_UNUSED_RESULT /* NOT SUPPORTED */ #endif + +// We reserve the V8_* prefix for macros defined in V8 public API and +// assume there are no name conflicts with the embedder's code. + +#ifdef V8_OS_WIN + +// Setup for Windows DLL export/import. When building the V8 DLL the +// BUILDING_V8_SHARED needs to be defined. When building a program which uses +// the V8 DLL USING_V8_SHARED needs to be defined. When either building the V8 +// static library or building a program which uses the V8 static library neither +// BUILDING_V8_SHARED nor USING_V8_SHARED should be defined. +#ifdef BUILDING_V8_SHARED +# define V8_EXPORT __declspec(dllexport) +#elif USING_V8_SHARED +# define V8_EXPORT __declspec(dllimport) +#else +# define V8_EXPORT +#endif // BUILDING_V8_SHARED + +#else // V8_OS_WIN + +// Setup for Linux shared library export. +#if V8_HAS_ATTRIBUTE_VISIBILITY +# ifdef BUILDING_V8_SHARED +# define V8_EXPORT __attribute__ ((visibility("default"))) +# else +# define V8_EXPORT +# endif +#else +# define V8_EXPORT +#endif + +#endif // V8_OS_WIN + // clang-format on #endif // V8CONFIG_H_ |