libv8-node 15.14.0.1-aarch64-linux-musl → 18.8.0.0-aarch64-linux-musl
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/ext/libv8-node/location.rb +1 -1
- data/ext/libv8-node/paths.rb +5 -1
- data/lib/libv8/node/version.rb +3 -3
- data/vendor/v8/{out.gn → aarch64-linux-musl}/libv8/obj/libv8_monolith.a +0 -0
- data/vendor/v8/include/cppgc/allocation.h +184 -47
- data/vendor/v8/include/cppgc/common.h +9 -6
- data/vendor/v8/include/cppgc/cross-thread-persistent.h +465 -0
- data/vendor/v8/include/cppgc/custom-space.h +37 -2
- data/vendor/v8/include/cppgc/default-platform.h +40 -49
- data/vendor/v8/include/cppgc/ephemeron-pair.h +30 -0
- data/vendor/v8/include/cppgc/explicit-management.h +100 -0
- data/vendor/v8/include/cppgc/garbage-collected.h +19 -29
- data/vendor/v8/include/cppgc/heap-consistency.h +266 -0
- data/vendor/v8/include/cppgc/heap-state.h +82 -0
- data/vendor/v8/include/cppgc/heap-statistics.h +120 -0
- data/vendor/v8/include/cppgc/heap.h +73 -6
- data/vendor/v8/include/cppgc/internal/api-constants.h +11 -3
- data/vendor/v8/include/cppgc/internal/caged-heap-local-data.h +27 -15
- data/vendor/v8/include/cppgc/internal/compiler-specific.h +2 -2
- data/vendor/v8/include/cppgc/internal/finalizer-trait.h +4 -1
- data/vendor/v8/include/cppgc/internal/gc-info.h +124 -13
- data/vendor/v8/include/cppgc/internal/logging.h +3 -3
- data/vendor/v8/include/cppgc/internal/name-trait.h +122 -0
- data/vendor/v8/include/cppgc/internal/persistent-node.h +116 -16
- data/vendor/v8/include/cppgc/internal/pointer-policies.h +84 -32
- data/vendor/v8/include/cppgc/internal/write-barrier.h +392 -35
- data/vendor/v8/include/cppgc/liveness-broker.h +11 -2
- data/vendor/v8/include/cppgc/macros.h +2 -0
- data/vendor/v8/include/cppgc/member.h +91 -26
- data/vendor/v8/include/cppgc/name-provider.h +65 -0
- data/vendor/v8/include/cppgc/object-size-trait.h +58 -0
- data/vendor/v8/include/cppgc/persistent.h +70 -41
- data/vendor/v8/include/cppgc/platform.h +52 -26
- data/vendor/v8/include/cppgc/prefinalizer.h +36 -13
- data/vendor/v8/include/cppgc/process-heap-statistics.h +36 -0
- data/vendor/v8/include/cppgc/sentinel-pointer.h +32 -0
- data/vendor/v8/include/cppgc/source-location.h +2 -1
- data/vendor/v8/include/cppgc/testing.h +106 -0
- data/vendor/v8/include/cppgc/trace-trait.h +8 -3
- data/vendor/v8/include/cppgc/type-traits.h +163 -32
- data/vendor/v8/include/cppgc/visitor.h +194 -28
- data/vendor/v8/include/libplatform/libplatform.h +11 -11
- data/vendor/v8/include/libplatform/v8-tracing.h +2 -1
- data/vendor/v8/include/v8-array-buffer.h +445 -0
- data/vendor/v8/include/v8-callbacks.h +397 -0
- data/vendor/v8/include/v8-container.h +129 -0
- data/vendor/v8/include/v8-context.h +407 -0
- data/vendor/v8/include/v8-cppgc.h +151 -159
- data/vendor/v8/include/v8-data.h +80 -0
- data/vendor/v8/include/v8-date.h +43 -0
- data/vendor/v8/include/v8-debug.h +168 -0
- data/vendor/v8/include/v8-embedder-heap.h +218 -0
- data/vendor/v8/include/v8-embedder-state-scope.h +51 -0
- data/vendor/v8/include/v8-exception.h +217 -0
- data/vendor/v8/include/v8-extension.h +62 -0
- data/vendor/v8/include/v8-external.h +37 -0
- data/vendor/v8/include/v8-fast-api-calls.h +703 -152
- data/vendor/v8/include/v8-forward.h +81 -0
- data/vendor/v8/include/v8-function-callback.h +475 -0
- data/vendor/v8/include/v8-function.h +125 -0
- data/vendor/v8/include/v8-initialization.h +315 -0
- data/vendor/v8/include/v8-inspector.h +76 -27
- data/vendor/v8/include/v8-internal.h +285 -51
- data/vendor/v8/include/v8-isolate.h +1709 -0
- data/vendor/v8/include/v8-json.h +47 -0
- data/vendor/v8/include/v8-local-handle.h +455 -0
- data/vendor/v8/include/v8-locker.h +149 -0
- data/vendor/v8/include/v8-maybe.h +137 -0
- data/vendor/v8/include/v8-memory-span.h +43 -0
- data/vendor/v8/include/v8-message.h +216 -0
- data/vendor/v8/include/v8-metrics.h +131 -9
- data/vendor/v8/include/v8-microtask-queue.h +152 -0
- data/vendor/v8/include/v8-microtask.h +28 -0
- data/vendor/v8/include/v8-object.h +775 -0
- data/vendor/v8/include/v8-persistent-handle.h +590 -0
- data/vendor/v8/include/v8-platform.h +433 -25
- data/vendor/v8/include/v8-primitive-object.h +118 -0
- data/vendor/v8/include/v8-primitive.h +866 -0
- data/vendor/v8/include/v8-profiler.h +149 -10
- data/vendor/v8/include/v8-promise.h +174 -0
- data/vendor/v8/include/v8-proxy.h +50 -0
- data/vendor/v8/include/v8-regexp.h +105 -0
- data/vendor/v8/include/v8-script.h +747 -0
- data/vendor/v8/include/v8-snapshot.h +196 -0
- data/vendor/v8/include/v8-statistics.h +217 -0
- data/vendor/v8/include/v8-template.h +1079 -0
- data/vendor/v8/include/v8-traced-handle.h +420 -0
- data/vendor/v8/include/v8-typed-array.h +282 -0
- data/vendor/v8/include/v8-unwinder-state.h +31 -0
- data/vendor/v8/include/v8-unwinder.h +132 -0
- data/vendor/v8/include/v8-util.h +8 -2
- data/vendor/v8/include/v8-value-serializer-version.h +1 -1
- data/vendor/v8/include/v8-value-serializer.h +279 -0
- data/vendor/v8/include/v8-value.h +526 -0
- data/vendor/v8/include/v8-version.h +4 -4
- data/vendor/v8/include/v8-wasm.h +257 -0
- data/vendor/v8/include/v8-weak-callback-info.h +87 -0
- data/vendor/v8/include/v8.h +41 -12051
- data/vendor/v8/include/v8config.h +142 -21
- metadata +64 -10
- data/vendor/v8/include/cppgc/internal/prefinalizer-handler.h +0 -30
- data/vendor/v8/include/cppgc/internal/process-heap.h +0 -34
@@ -5,6 +5,14 @@
|
|
5
5
|
#ifndef V8CONFIG_H_
|
6
6
|
#define V8CONFIG_H_
|
7
7
|
|
8
|
+
#ifdef V8_GN_HEADER
|
9
|
+
#if __cplusplus >= 201703L && !__has_include("v8-gn.h")
|
10
|
+
#error Missing v8-gn.h. The configuration for v8 is missing from the include \
|
11
|
+
path. Add it with -I<path> to the command line
|
12
|
+
#endif
|
13
|
+
#include "v8-gn.h" // NOLINT(build/include_directory)
|
14
|
+
#endif
|
15
|
+
|
8
16
|
// clang-format off
|
9
17
|
|
10
18
|
// Platform headers for feature detection below.
|
@@ -57,19 +65,21 @@
|
|
57
65
|
// Operating system detection (host)
|
58
66
|
//
|
59
67
|
// V8_OS_ANDROID - Android
|
60
|
-
// V8_OS_BSD - BSDish (
|
68
|
+
// V8_OS_BSD - BSDish (macOS, Net/Free/Open/DragonFlyBSD)
|
61
69
|
// V8_OS_CYGWIN - Cygwin
|
62
70
|
// V8_OS_DRAGONFLYBSD - DragonFlyBSD
|
63
71
|
// V8_OS_FREEBSD - FreeBSD
|
64
72
|
// V8_OS_FUCHSIA - Fuchsia
|
65
|
-
// V8_OS_LINUX - Linux
|
66
|
-
//
|
73
|
+
// V8_OS_LINUX - Linux (Android, ChromeOS, Linux, ...)
|
74
|
+
// V8_OS_DARWIN - Darwin (macOS, iOS)
|
75
|
+
// V8_OS_MACOS - macOS
|
67
76
|
// V8_OS_IOS - iOS
|
68
77
|
// V8_OS_NETBSD - NetBSD
|
69
78
|
// V8_OS_OPENBSD - OpenBSD
|
70
79
|
// V8_OS_POSIX - POSIX compatible (mostly everything except Windows)
|
71
80
|
// V8_OS_QNX - QNX Neutrino
|
72
81
|
// V8_OS_SOLARIS - Sun Solaris and OpenSolaris
|
82
|
+
// V8_OS_STARBOARD - Starboard (platform abstraction for Cobalt)
|
73
83
|
// V8_OS_AIX - AIX
|
74
84
|
// V8_OS_WIN - Microsoft Windows
|
75
85
|
|
@@ -77,49 +87,81 @@
|
|
77
87
|
# define V8_OS_ANDROID 1
|
78
88
|
# define V8_OS_LINUX 1
|
79
89
|
# define V8_OS_POSIX 1
|
90
|
+
# define V8_OS_STRING "android"
|
91
|
+
|
80
92
|
#elif defined(__APPLE__)
|
81
|
-
# define V8_OS_BSD 1
|
82
|
-
# define V8_OS_MACOSX 1
|
83
93
|
# define V8_OS_POSIX 1
|
94
|
+
# define V8_OS_BSD 1
|
95
|
+
# define V8_OS_DARWIN 1
|
84
96
|
# if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
|
85
97
|
# define V8_OS_IOS 1
|
98
|
+
# define V8_OS_STRING "ios"
|
99
|
+
# else
|
100
|
+
# define V8_OS_MACOS 1
|
101
|
+
# define V8_OS_STRING "macos"
|
86
102
|
# endif // defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
|
103
|
+
|
87
104
|
#elif defined(__CYGWIN__)
|
88
105
|
# define V8_OS_CYGWIN 1
|
89
106
|
# define V8_OS_POSIX 1
|
107
|
+
# define V8_OS_STRING "cygwin"
|
108
|
+
|
90
109
|
#elif defined(__linux__)
|
91
110
|
# define V8_OS_LINUX 1
|
92
111
|
# define V8_OS_POSIX 1
|
112
|
+
# define V8_OS_STRING "linux"
|
113
|
+
|
93
114
|
#elif defined(__sun)
|
94
115
|
# define V8_OS_POSIX 1
|
95
116
|
# define V8_OS_SOLARIS 1
|
117
|
+
# define V8_OS_STRING "sun"
|
118
|
+
|
119
|
+
#elif defined(STARBOARD)
|
120
|
+
# define V8_OS_STARBOARD 1
|
121
|
+
# define V8_OS_STRING "starboard"
|
122
|
+
|
96
123
|
#elif defined(_AIX)
|
97
|
-
#define V8_OS_POSIX 1
|
98
|
-
#define V8_OS_AIX 1
|
124
|
+
# define V8_OS_POSIX 1
|
125
|
+
# define V8_OS_AIX 1
|
126
|
+
# define V8_OS_STRING "aix"
|
127
|
+
|
99
128
|
#elif defined(__FreeBSD__)
|
100
129
|
# define V8_OS_BSD 1
|
101
130
|
# define V8_OS_FREEBSD 1
|
102
131
|
# define V8_OS_POSIX 1
|
132
|
+
# define V8_OS_STRING "freebsd"
|
133
|
+
|
103
134
|
#elif defined(__Fuchsia__)
|
104
135
|
# define V8_OS_FUCHSIA 1
|
105
136
|
# define V8_OS_POSIX 1
|
137
|
+
# define V8_OS_STRING "fuchsia"
|
138
|
+
|
106
139
|
#elif defined(__DragonFly__)
|
107
140
|
# define V8_OS_BSD 1
|
108
141
|
# define V8_OS_DRAGONFLYBSD 1
|
109
142
|
# define V8_OS_POSIX 1
|
143
|
+
# define V8_OS_STRING "dragonflybsd"
|
144
|
+
|
110
145
|
#elif defined(__NetBSD__)
|
111
146
|
# define V8_OS_BSD 1
|
112
147
|
# define V8_OS_NETBSD 1
|
113
148
|
# define V8_OS_POSIX 1
|
149
|
+
# define V8_OS_STRING "netbsd"
|
150
|
+
|
114
151
|
#elif defined(__OpenBSD__)
|
115
152
|
# define V8_OS_BSD 1
|
116
153
|
# define V8_OS_OPENBSD 1
|
117
154
|
# define V8_OS_POSIX 1
|
155
|
+
# define V8_OS_STRING "openbsd"
|
156
|
+
|
118
157
|
#elif defined(__QNXNTO__)
|
119
158
|
# define V8_OS_POSIX 1
|
120
159
|
# define V8_OS_QNX 1
|
160
|
+
# define V8_OS_STRING "qnx"
|
161
|
+
|
121
162
|
#elif defined(_WIN32)
|
122
163
|
# define V8_OS_WIN 1
|
164
|
+
# define V8_OS_STRING "windows"
|
123
165
|
#endif
|
124
166
|
|
125
167
|
// -----------------------------------------------------------------------------
|
@@ -129,7 +171,7 @@
|
|
129
171
|
// V8_TARGET_OS_FUCHSIA
|
130
172
|
// V8_TARGET_OS_IOS
|
131
173
|
// V8_TARGET_OS_LINUX
|
132
|
-
//
|
174
|
+
// V8_TARGET_OS_MACOS
|
133
175
|
// V8_TARGET_OS_WIN
|
134
176
|
//
|
135
177
|
// If not set explicitly, these fall back to corresponding V8_OS_ values.
|
@@ -141,7 +183,7 @@
|
|
141
183
|
&& !defined(V8_TARGET_OS_FUCHSIA) \
|
142
184
|
&& !defined(V8_TARGET_OS_IOS) \
|
143
185
|
&& !defined(V8_TARGET_OS_LINUX) \
|
144
|
-
&& !defined(
|
186
|
+
&& !defined(V8_TARGET_OS_MACOS) \
|
145
187
|
&& !defined(V8_TARGET_OS_WIN)
|
146
188
|
# error No known target OS defined.
|
147
189
|
# endif
|
@@ -152,7 +194,7 @@
|
|
152
194
|
|| defined(V8_TARGET_OS_FUCHSIA) \
|
153
195
|
|| defined(V8_TARGET_OS_IOS) \
|
154
196
|
|| defined(V8_TARGET_OS_LINUX) \
|
155
|
-
|| defined(
|
197
|
+
|| defined(V8_TARGET_OS_MACOS) \
|
156
198
|
|| defined(V8_TARGET_OS_WIN)
|
157
199
|
# error A target OS is defined but V8_HAVE_TARGET_OS is unset.
|
158
200
|
# endif
|
@@ -174,8 +216,8 @@
|
|
174
216
|
# define V8_TARGET_OS_LINUX
|
175
217
|
#endif
|
176
218
|
|
177
|
-
#ifdef
|
178
|
-
# define
|
219
|
+
#ifdef V8_OS_MACOS
|
220
|
+
# define V8_TARGET_OS_MACOS
|
179
221
|
#endif
|
180
222
|
|
181
223
|
#ifdef V8_OS_WIN
|
@@ -184,6 +226,22 @@
|
|
184
226
|
|
185
227
|
#endif // V8_HAVE_TARGET_OS
|
186
228
|
|
229
|
+
#if defined(V8_TARGET_OS_ANDROID)
|
230
|
+
# define V8_TARGET_OS_STRING "android"
|
231
|
+
#elif defined(V8_TARGET_OS_FUCHSIA)
|
232
|
+
# define V8_TARGET_OS_STRING "fuchsia"
|
233
|
+
#elif defined(V8_TARGET_OS_IOS)
|
234
|
+
# define V8_TARGET_OS_STRING "ios"
|
235
|
+
#elif defined(V8_TARGET_OS_LINUX)
|
236
|
+
# define V8_TARGET_OS_STRING "linux"
|
237
|
+
#elif defined(V8_TARGET_OS_MACOS)
|
238
|
+
# define V8_TARGET_OS_STRING "macos"
|
239
|
+
#elif defined(V8_TARGET_OS_WINDOWS)
|
240
|
+
# define V8_TARGET_OS_STRING "windows"
|
241
|
+
#else
|
242
|
+
# define V8_TARGET_OS_STRING "unknown"
|
243
|
+
#endif
|
244
|
+
|
187
245
|
// -----------------------------------------------------------------------------
|
188
246
|
// C library detection
|
189
247
|
//
|
@@ -236,6 +294,9 @@
|
|
236
294
|
// V8_HAS_ATTRIBUTE_VISIBILITY - __attribute__((visibility)) supported
|
237
295
|
// V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT - __attribute__((warn_unused_result))
|
238
296
|
// supported
|
297
|
+
// V8_HAS_CPP_ATTRIBUTE_NODISCARD - [[nodiscard]] supported
|
298
|
+
// V8_HAS_CPP_ATTRIBUTE_NO_UNIQUE_ADDRESS
|
299
|
+
// - [[no_unique_address]] supported
|
239
300
|
// V8_HAS_BUILTIN_BSWAP16 - __builtin_bswap16() supported
|
240
301
|
// V8_HAS_BUILTIN_BSWAP32 - __builtin_bswap32() supported
|
241
302
|
// V8_HAS_BUILTIN_BSWAP64 - __builtin_bswap64() supported
|
@@ -259,6 +320,12 @@
|
|
259
320
|
// ...
|
260
321
|
// #endif
|
261
322
|
|
323
|
+
#if defined(__has_cpp_attribute)
|
324
|
+
#define V8_HAS_CPP_ATTRIBUTE(FEATURE) __has_cpp_attribute(FEATURE)
|
325
|
+
#else
|
326
|
+
#define V8_HAS_CPP_ATTRIBUTE(FEATURE) 0
|
327
|
+
#endif
|
328
|
+
|
262
329
|
#if defined(__clang__)
|
263
330
|
|
264
331
|
#if defined(__GNUC__) // Clang in gcc mode.
|
@@ -273,6 +340,10 @@
|
|
273
340
|
# define V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT \
|
274
341
|
(__has_attribute(warn_unused_result))
|
275
342
|
|
343
|
+
# define V8_HAS_CPP_ATTRIBUTE_NODISCARD (V8_HAS_CPP_ATTRIBUTE(nodiscard))
|
344
|
+
# define V8_HAS_CPP_ATTRIBUTE_NO_UNIQUE_ADDRESS \
|
345
|
+
(V8_HAS_CPP_ATTRIBUTE(no_unique_address))
|
346
|
+
|
276
347
|
# define V8_HAS_BUILTIN_ASSUME_ALIGNED (__has_builtin(__builtin_assume_aligned))
|
277
348
|
# define V8_HAS_BUILTIN_BSWAP16 (__has_builtin(__builtin_bswap16))
|
278
349
|
# define V8_HAS_BUILTIN_BSWAP32 (__has_builtin(__builtin_bswap32))
|
@@ -290,10 +361,6 @@
|
|
290
361
|
// GCC doc: https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html
|
291
362
|
# define V8_HAS_COMPUTED_GOTO 1
|
292
363
|
|
293
|
-
// Whether constexpr has full C++14 semantics, in particular that non-constexpr
|
294
|
-
// code is allowed as long as it's not executed for any constexpr instantiation.
|
295
|
-
# define V8_HAS_CXX14_CONSTEXPR 1
|
296
|
-
|
297
364
|
#elif defined(__GNUC__)
|
298
365
|
|
299
366
|
# define V8_CC_GNU 1
|
@@ -317,6 +384,10 @@
|
|
317
384
|
# define V8_HAS_ATTRIBUTE_VISIBILITY 1
|
318
385
|
# define V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT (!V8_CC_INTEL)
|
319
386
|
|
387
|
+
// [[nodiscard]] does not work together with with
|
388
|
+
// __attribute__((visibility(""))) on GCC 7.4 which is why there is no define
|
389
|
+
// for V8_HAS_CPP_ATTRIBUTE_NODISCARD. See https://crbug.com/v8/11707.
|
390
|
+
|
320
391
|
# define V8_HAS_BUILTIN_ASSUME_ALIGNED 1
|
321
392
|
# define V8_HAS_BUILTIN_CLZ 1
|
322
393
|
# define V8_HAS_BUILTIN_CTZ 1
|
@@ -327,11 +398,6 @@
|
|
327
398
|
// GCC doc: https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html
|
328
399
|
#define V8_HAS_COMPUTED_GOTO 1
|
329
400
|
|
330
|
-
// Whether constexpr has full C++14 semantics, in particular that non-constexpr
|
331
|
-
// code is allowed as long as it's not executed for any constexpr instantiation.
|
332
|
-
// GCC only supports this since version 6.
|
333
|
-
# define V8_HAS_CXX14_CONSTEXPR (V8_GNUC_PREREQ(6, 0, 0))
|
334
|
-
|
335
401
|
#endif
|
336
402
|
|
337
403
|
#if defined(_MSC_VER)
|
@@ -433,6 +499,41 @@
|
|
433
499
|
#define V8_WARN_UNUSED_RESULT /* NOT SUPPORTED */
|
434
500
|
#endif
|
435
501
|
|
502
|
+
|
503
|
+
// Annotate a class or constructor indicating the caller must assign the
|
504
|
+
// constructed instances.
|
505
|
+
// Apply to the whole class like:
|
506
|
+
// class V8_NODISCARD Foo() { ... };
|
507
|
+
// or apply to just one constructor like:
|
508
|
+
// V8_NODISCARD Foo() { ... };
|
509
|
+
// [[nodiscard]] comes in C++17 but supported in clang with -std >= c++11.
|
510
|
+
#if V8_HAS_CPP_ATTRIBUTE_NODISCARD
|
511
|
+
#define V8_NODISCARD [[nodiscard]]
|
512
|
+
#else
|
513
|
+
#define V8_NODISCARD /* NOT SUPPORTED */
|
514
|
+
#endif
|
515
|
+
|
516
|
+
// The no_unique_address attribute allows tail padding in a non-static data
|
517
|
+
// member to overlap other members of the enclosing class (and in the special
|
518
|
+
// case when the type is empty, permits it to fully overlap other members). The
|
519
|
+
// field is laid out as if a base class were encountered at the corresponding
|
520
|
+
// point within the class (except that it does not share a vptr with the
|
521
|
+
// enclosing object).
|
522
|
+
//
|
523
|
+
// Apply to a data member like:
|
524
|
+
//
|
525
|
+
// class Foo {
|
526
|
+
// V8_NO_UNIQUE_ADDRESS Bar bar_;
|
527
|
+
// };
|
528
|
+
//
|
529
|
+
// [[no_unique_address]] comes in C++20 but supported in clang with
|
530
|
+
// -std >= c++11.
|
531
|
+
#if V8_HAS_CPP_ATTRIBUTE_NO_UNIQUE_ADDRESS
|
532
|
+
#define V8_NO_UNIQUE_ADDRESS [[no_unique_address]]
|
533
|
+
#else
|
534
|
+
#define V8_NO_UNIQUE_ADDRESS /* NOT SUPPORTED */
|
535
|
+
#endif
|
536
|
+
|
436
537
|
// Helper macro to define no_sanitize attributes only with clang.
|
437
538
|
#if defined(__clang__) && defined(__has_attribute)
|
438
539
|
#if __has_attribute(no_sanitize)
|
@@ -479,6 +580,26 @@ V8 shared library set USING_V8_SHARED.
|
|
479
580
|
|
480
581
|
#endif // V8_OS_WIN
|
481
582
|
|
583
|
+
// The sandbox is available (i.e. defined) when pointer compression
|
584
|
+
// is enabled, but it is only used when V8_SANDBOX is enabled as
|
585
|
+
// well. This allows better test coverage of the sandbox.
|
586
|
+
#if defined(V8_COMPRESS_POINTERS)
|
587
|
+
#define V8_SANDBOX_IS_AVAILABLE
|
588
|
+
#endif
|
589
|
+
|
590
|
+
#if defined(V8_SANDBOX) && !defined(V8_SANDBOX_IS_AVAILABLE)
|
591
|
+
#error Inconsistent configuration: sandbox is enabled but not available
|
592
|
+
#endif
|
593
|
+
|
594
|
+
// From C++17 onwards, static constexpr member variables are defined to be
|
595
|
+
// "inline", and adding a separate definition for them can trigger deprecation
|
596
|
+
// warnings. For C++14 and below, however, these definitions are required.
|
597
|
+
#if __cplusplus < 201703L && (!defined(_MSVC_LANG) || _MSVC_LANG < 201703L)
|
598
|
+
#define V8_STATIC_CONSTEXPR_VARIABLES_NEED_DEFINITIONS
|
599
|
+
#endif
|
600
|
+
|
482
601
|
// clang-format on
|
483
602
|
|
603
|
+
#undef V8_HAS_CPP_ATTRIBUTE
|
604
|
+
|
484
605
|
#endif // V8CONFIG_H_
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: libv8-node
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 18.8.0.0
|
5
5
|
platform: aarch64-linux-musl
|
6
6
|
authors:
|
7
7
|
- ''
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-08-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -51,11 +51,18 @@ files:
|
|
51
51
|
- lib/libv8-node.rb
|
52
52
|
- lib/libv8/node.rb
|
53
53
|
- lib/libv8/node/version.rb
|
54
|
+
- vendor/v8/aarch64-linux-musl/libv8/obj/libv8_monolith.a
|
54
55
|
- vendor/v8/include/cppgc/allocation.h
|
55
56
|
- vendor/v8/include/cppgc/common.h
|
57
|
+
- vendor/v8/include/cppgc/cross-thread-persistent.h
|
56
58
|
- vendor/v8/include/cppgc/custom-space.h
|
57
59
|
- vendor/v8/include/cppgc/default-platform.h
|
60
|
+
- vendor/v8/include/cppgc/ephemeron-pair.h
|
61
|
+
- vendor/v8/include/cppgc/explicit-management.h
|
58
62
|
- vendor/v8/include/cppgc/garbage-collected.h
|
63
|
+
- vendor/v8/include/cppgc/heap-consistency.h
|
64
|
+
- vendor/v8/include/cppgc/heap-state.h
|
65
|
+
- vendor/v8/include/cppgc/heap-statistics.h
|
59
66
|
- vendor/v8/include/cppgc/heap.h
|
60
67
|
- vendor/v8/include/cppgc/internal/api-constants.h
|
61
68
|
- vendor/v8/include/cppgc/internal/atomic-entry-flag.h
|
@@ -64,46 +71,93 @@ files:
|
|
64
71
|
- vendor/v8/include/cppgc/internal/finalizer-trait.h
|
65
72
|
- vendor/v8/include/cppgc/internal/gc-info.h
|
66
73
|
- vendor/v8/include/cppgc/internal/logging.h
|
74
|
+
- vendor/v8/include/cppgc/internal/name-trait.h
|
67
75
|
- vendor/v8/include/cppgc/internal/persistent-node.h
|
68
76
|
- vendor/v8/include/cppgc/internal/pointer-policies.h
|
69
|
-
- vendor/v8/include/cppgc/internal/prefinalizer-handler.h
|
70
|
-
- vendor/v8/include/cppgc/internal/process-heap.h
|
71
77
|
- vendor/v8/include/cppgc/internal/write-barrier.h
|
72
78
|
- vendor/v8/include/cppgc/liveness-broker.h
|
73
79
|
- vendor/v8/include/cppgc/macros.h
|
74
80
|
- vendor/v8/include/cppgc/member.h
|
81
|
+
- vendor/v8/include/cppgc/name-provider.h
|
82
|
+
- vendor/v8/include/cppgc/object-size-trait.h
|
75
83
|
- vendor/v8/include/cppgc/persistent.h
|
76
84
|
- vendor/v8/include/cppgc/platform.h
|
77
85
|
- vendor/v8/include/cppgc/prefinalizer.h
|
86
|
+
- vendor/v8/include/cppgc/process-heap-statistics.h
|
87
|
+
- vendor/v8/include/cppgc/sentinel-pointer.h
|
78
88
|
- vendor/v8/include/cppgc/source-location.h
|
89
|
+
- vendor/v8/include/cppgc/testing.h
|
79
90
|
- vendor/v8/include/cppgc/trace-trait.h
|
80
91
|
- vendor/v8/include/cppgc/type-traits.h
|
81
92
|
- vendor/v8/include/cppgc/visitor.h
|
82
93
|
- vendor/v8/include/libplatform/libplatform-export.h
|
83
94
|
- vendor/v8/include/libplatform/libplatform.h
|
84
95
|
- vendor/v8/include/libplatform/v8-tracing.h
|
96
|
+
- vendor/v8/include/v8-array-buffer.h
|
97
|
+
- vendor/v8/include/v8-callbacks.h
|
98
|
+
- vendor/v8/include/v8-container.h
|
99
|
+
- vendor/v8/include/v8-context.h
|
85
100
|
- vendor/v8/include/v8-cppgc.h
|
101
|
+
- vendor/v8/include/v8-data.h
|
102
|
+
- vendor/v8/include/v8-date.h
|
103
|
+
- vendor/v8/include/v8-debug.h
|
104
|
+
- vendor/v8/include/v8-embedder-heap.h
|
105
|
+
- vendor/v8/include/v8-embedder-state-scope.h
|
106
|
+
- vendor/v8/include/v8-exception.h
|
107
|
+
- vendor/v8/include/v8-extension.h
|
108
|
+
- vendor/v8/include/v8-external.h
|
86
109
|
- vendor/v8/include/v8-fast-api-calls.h
|
110
|
+
- vendor/v8/include/v8-forward.h
|
111
|
+
- vendor/v8/include/v8-function-callback.h
|
112
|
+
- vendor/v8/include/v8-function.h
|
113
|
+
- vendor/v8/include/v8-initialization.h
|
87
114
|
- vendor/v8/include/v8-inspector-protocol.h
|
88
115
|
- vendor/v8/include/v8-inspector.h
|
89
116
|
- vendor/v8/include/v8-internal.h
|
117
|
+
- vendor/v8/include/v8-isolate.h
|
118
|
+
- vendor/v8/include/v8-json.h
|
119
|
+
- vendor/v8/include/v8-local-handle.h
|
120
|
+
- vendor/v8/include/v8-locker.h
|
121
|
+
- vendor/v8/include/v8-maybe.h
|
122
|
+
- vendor/v8/include/v8-memory-span.h
|
123
|
+
- vendor/v8/include/v8-message.h
|
90
124
|
- vendor/v8/include/v8-metrics.h
|
125
|
+
- vendor/v8/include/v8-microtask-queue.h
|
126
|
+
- vendor/v8/include/v8-microtask.h
|
127
|
+
- vendor/v8/include/v8-object.h
|
128
|
+
- vendor/v8/include/v8-persistent-handle.h
|
91
129
|
- vendor/v8/include/v8-platform.h
|
130
|
+
- vendor/v8/include/v8-primitive-object.h
|
131
|
+
- vendor/v8/include/v8-primitive.h
|
92
132
|
- vendor/v8/include/v8-profiler.h
|
133
|
+
- vendor/v8/include/v8-promise.h
|
134
|
+
- vendor/v8/include/v8-proxy.h
|
135
|
+
- vendor/v8/include/v8-regexp.h
|
136
|
+
- vendor/v8/include/v8-script.h
|
137
|
+
- vendor/v8/include/v8-snapshot.h
|
138
|
+
- vendor/v8/include/v8-statistics.h
|
139
|
+
- vendor/v8/include/v8-template.h
|
140
|
+
- vendor/v8/include/v8-traced-handle.h
|
141
|
+
- vendor/v8/include/v8-typed-array.h
|
142
|
+
- vendor/v8/include/v8-unwinder-state.h
|
143
|
+
- vendor/v8/include/v8-unwinder.h
|
93
144
|
- vendor/v8/include/v8-util.h
|
94
145
|
- vendor/v8/include/v8-value-serializer-version.h
|
146
|
+
- vendor/v8/include/v8-value-serializer.h
|
147
|
+
- vendor/v8/include/v8-value.h
|
95
148
|
- vendor/v8/include/v8-version-string.h
|
96
149
|
- vendor/v8/include/v8-version.h
|
97
150
|
- vendor/v8/include/v8-wasm-trap-handler-posix.h
|
98
151
|
- vendor/v8/include/v8-wasm-trap-handler-win.h
|
152
|
+
- vendor/v8/include/v8-wasm.h
|
153
|
+
- vendor/v8/include/v8-weak-callback-info.h
|
99
154
|
- vendor/v8/include/v8.h
|
100
155
|
- vendor/v8/include/v8config.h
|
101
|
-
|
102
|
-
homepage: https://github.com/sqreen/libv8-node
|
156
|
+
homepage: https://github.com/rubyjs/libv8-node
|
103
157
|
licenses:
|
104
158
|
- MIT
|
105
159
|
metadata: {}
|
106
|
-
post_install_message:
|
160
|
+
post_install_message:
|
107
161
|
rdoc_options: []
|
108
162
|
require_paths:
|
109
163
|
- lib
|
@@ -119,8 +173,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
119
173
|
- !ruby/object:Gem::Version
|
120
174
|
version: '0'
|
121
175
|
requirements: []
|
122
|
-
rubygems_version: 3.0.3
|
123
|
-
signing_key:
|
176
|
+
rubygems_version: 3.0.3.1
|
177
|
+
signing_key:
|
124
178
|
specification_version: 4
|
125
179
|
summary: Node.JS's V8 JavaScript engine
|
126
180
|
test_files: []
|
@@ -1,30 +0,0 @@
|
|
1
|
-
// Copyright 2020 the V8 project authors. All rights reserved.
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
3
|
-
// found in the LICENSE file.
|
4
|
-
|
5
|
-
#ifndef INCLUDE_CPPGC_INTERNAL_PREFINALIZER_HANDLER_H_
|
6
|
-
#define INCLUDE_CPPGC_INTERNAL_PREFINALIZER_HANDLER_H_
|
7
|
-
|
8
|
-
#include "cppgc/heap.h"
|
9
|
-
#include "cppgc/liveness-broker.h"
|
10
|
-
|
11
|
-
namespace cppgc {
|
12
|
-
namespace internal {
|
13
|
-
|
14
|
-
class V8_EXPORT PreFinalizerRegistrationDispatcher final {
|
15
|
-
public:
|
16
|
-
using PreFinalizerCallback = bool (*)(const LivenessBroker&, void*);
|
17
|
-
struct PreFinalizer {
|
18
|
-
void* object;
|
19
|
-
PreFinalizerCallback callback;
|
20
|
-
|
21
|
-
bool operator==(const PreFinalizer& other);
|
22
|
-
};
|
23
|
-
|
24
|
-
static void RegisterPrefinalizer(PreFinalizer pre_finalizer);
|
25
|
-
};
|
26
|
-
|
27
|
-
} // namespace internal
|
28
|
-
} // namespace cppgc
|
29
|
-
|
30
|
-
#endif // INCLUDE_CPPGC_INTERNAL_PREFINALIZER_HANDLER_H_
|
@@ -1,34 +0,0 @@
|
|
1
|
-
// Copyright 2020 the V8 project authors. All rights reserved.
|
2
|
-
// Use of this source code is governed by a BSD-style license that can be
|
3
|
-
// found in the LICENSE file.
|
4
|
-
|
5
|
-
#ifndef INCLUDE_CPPGC_INTERNAL_PROCESS_HEAP_H_
|
6
|
-
#define INCLUDE_CPPGC_INTERNAL_PROCESS_HEAP_H_
|
7
|
-
|
8
|
-
#include "cppgc/internal/atomic-entry-flag.h"
|
9
|
-
#include "v8config.h" // NOLINT(build/include_directory)
|
10
|
-
|
11
|
-
namespace cppgc {
|
12
|
-
namespace internal {
|
13
|
-
|
14
|
-
class V8_EXPORT ProcessHeap final {
|
15
|
-
public:
|
16
|
-
static void EnterIncrementalOrConcurrentMarking() {
|
17
|
-
concurrent_marking_flag_.Enter();
|
18
|
-
}
|
19
|
-
static void ExitIncrementalOrConcurrentMarking() {
|
20
|
-
concurrent_marking_flag_.Exit();
|
21
|
-
}
|
22
|
-
|
23
|
-
static bool IsAnyIncrementalOrConcurrentMarking() {
|
24
|
-
return concurrent_marking_flag_.MightBeEntered();
|
25
|
-
}
|
26
|
-
|
27
|
-
private:
|
28
|
-
static AtomicEntryFlag concurrent_marking_flag_;
|
29
|
-
};
|
30
|
-
|
31
|
-
} // namespace internal
|
32
|
-
} // namespace cppgc
|
33
|
-
|
34
|
-
#endif // INCLUDE_CPPGC_INTERNAL_PROCESS_HEAP_H_
|