libv8-node 15.14.0.1-x86_64-linux → 16.10.0.0-x86_64-linux

Sign up to get free protection for your applications and to get access to all the features.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/ext/libv8-node/location.rb +1 -1
  3. data/ext/libv8-node/paths.rb +1 -1
  4. data/lib/libv8/node/version.rb +3 -3
  5. data/vendor/v8/include/cppgc/allocation.h +104 -45
  6. data/vendor/v8/include/cppgc/common.h +9 -6
  7. data/vendor/v8/include/cppgc/cross-thread-persistent.h +384 -0
  8. data/vendor/v8/include/cppgc/custom-space.h +37 -2
  9. data/vendor/v8/include/cppgc/default-platform.h +47 -48
  10. data/vendor/v8/include/cppgc/ephemeron-pair.h +30 -0
  11. data/vendor/v8/include/cppgc/explicit-management.h +82 -0
  12. data/vendor/v8/include/cppgc/garbage-collected.h +4 -3
  13. data/vendor/v8/include/cppgc/heap-consistency.h +236 -0
  14. data/vendor/v8/include/cppgc/heap-state.h +70 -0
  15. data/vendor/v8/include/cppgc/heap-statistics.h +120 -0
  16. data/vendor/v8/include/cppgc/heap.h +68 -6
  17. data/vendor/v8/include/cppgc/internal/api-constants.h +3 -3
  18. data/vendor/v8/include/cppgc/internal/caged-heap-local-data.h +2 -1
  19. data/vendor/v8/include/cppgc/internal/compiler-specific.h +2 -2
  20. data/vendor/v8/include/cppgc/internal/gc-info.h +44 -13
  21. data/vendor/v8/include/cppgc/internal/name-trait.h +111 -0
  22. data/vendor/v8/include/cppgc/internal/persistent-node.h +57 -1
  23. data/vendor/v8/include/cppgc/internal/pointer-policies.h +69 -28
  24. data/vendor/v8/include/cppgc/internal/prefinalizer-handler.h +1 -1
  25. data/vendor/v8/include/cppgc/internal/write-barrier.h +353 -35
  26. data/vendor/v8/include/cppgc/liveness-broker.h +7 -1
  27. data/vendor/v8/include/cppgc/macros.h +2 -0
  28. data/vendor/v8/include/cppgc/member.h +85 -25
  29. data/vendor/v8/include/cppgc/name-provider.h +65 -0
  30. data/vendor/v8/include/cppgc/object-size-trait.h +58 -0
  31. data/vendor/v8/include/cppgc/persistent.h +33 -9
  32. data/vendor/v8/include/cppgc/platform.h +48 -25
  33. data/vendor/v8/include/cppgc/prefinalizer.h +1 -1
  34. data/vendor/v8/include/cppgc/process-heap-statistics.h +36 -0
  35. data/vendor/v8/include/cppgc/sentinel-pointer.h +32 -0
  36. data/vendor/v8/include/cppgc/source-location.h +2 -1
  37. data/vendor/v8/include/cppgc/testing.h +99 -0
  38. data/vendor/v8/include/cppgc/trace-trait.h +8 -3
  39. data/vendor/v8/include/cppgc/type-traits.h +157 -19
  40. data/vendor/v8/include/cppgc/visitor.h +187 -23
  41. data/vendor/v8/include/libplatform/libplatform.h +11 -0
  42. data/vendor/v8/include/libplatform/v8-tracing.h +2 -0
  43. data/vendor/v8/include/v8-cppgc.h +258 -159
  44. data/vendor/v8/include/v8-fast-api-calls.h +562 -159
  45. data/vendor/v8/include/v8-inspector.h +23 -2
  46. data/vendor/v8/include/v8-internal.h +99 -27
  47. data/vendor/v8/include/v8-metrics.h +77 -8
  48. data/vendor/v8/include/v8-platform.h +47 -22
  49. data/vendor/v8/include/v8-profiler.h +75 -11
  50. data/vendor/v8/include/v8-unwinder-state.h +30 -0
  51. data/vendor/v8/include/v8-util.h +1 -1
  52. data/vendor/v8/include/v8-version.h +4 -4
  53. data/vendor/v8/include/v8.h +1192 -642
  54. data/vendor/v8/include/v8config.h +40 -9
  55. data/vendor/v8/{out.gn → x86_64-linux}/libv8/obj/libv8_monolith.a +0 -0
  56. metadata +17 -5
  57. 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.
@@ -70,6 +78,7 @@
70
78
  // V8_OS_POSIX - POSIX compatible (mostly everything except Windows)
71
79
  // V8_OS_QNX - QNX Neutrino
72
80
  // V8_OS_SOLARIS - Sun Solaris and OpenSolaris
81
+ // V8_OS_STARBOARD - Starboard (platform abstraction for Cobalt)
73
82
  // V8_OS_AIX - AIX
74
83
  // V8_OS_WIN - Microsoft Windows
75
84
 
@@ -93,6 +102,8 @@
93
102
  #elif defined(__sun)
94
103
  # define V8_OS_POSIX 1
95
104
  # define V8_OS_SOLARIS 1
105
+ #elif defined(STARBOARD)
106
+ # define V8_OS_STARBOARD 1
96
107
  #elif defined(_AIX)
97
108
  #define V8_OS_POSIX 1
98
109
  #define V8_OS_AIX 1
@@ -236,6 +247,7 @@
236
247
  // V8_HAS_ATTRIBUTE_VISIBILITY - __attribute__((visibility)) supported
237
248
  // V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT - __attribute__((warn_unused_result))
238
249
  // supported
250
+ // V8_HAS_CPP_ATTRIBUTE_NODISCARD - [[nodiscard]] supported
239
251
  // V8_HAS_BUILTIN_BSWAP16 - __builtin_bswap16() supported
240
252
  // V8_HAS_BUILTIN_BSWAP32 - __builtin_bswap32() supported
241
253
  // V8_HAS_BUILTIN_BSWAP64 - __builtin_bswap64() supported
@@ -259,6 +271,12 @@
259
271
  // ...
260
272
  // #endif
261
273
 
274
+ #if defined(__has_cpp_attribute)
275
+ #define V8_HAS_CPP_ATTRIBUTE(FEATURE) __has_cpp_attribute(FEATURE)
276
+ #else
277
+ #define V8_HAS_CPP_ATTRIBUTE(FEATURE) 0
278
+ #endif
279
+
262
280
  #if defined(__clang__)
263
281
 
264
282
  #if defined(__GNUC__) // Clang in gcc mode.
@@ -273,6 +291,8 @@
273
291
  # define V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT \
274
292
  (__has_attribute(warn_unused_result))
275
293
 
294
+ # define V8_HAS_CPP_ATTRIBUTE_NODISCARD (V8_HAS_CPP_ATTRIBUTE(nodiscard))
295
+
276
296
  # define V8_HAS_BUILTIN_ASSUME_ALIGNED (__has_builtin(__builtin_assume_aligned))
277
297
  # define V8_HAS_BUILTIN_BSWAP16 (__has_builtin(__builtin_bswap16))
278
298
  # define V8_HAS_BUILTIN_BSWAP32 (__has_builtin(__builtin_bswap32))
@@ -290,10 +310,6 @@
290
310
  // GCC doc: https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html
291
311
  # define V8_HAS_COMPUTED_GOTO 1
292
312
 
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
313
  #elif defined(__GNUC__)
298
314
 
299
315
  # define V8_CC_GNU 1
@@ -317,6 +333,10 @@
317
333
  # define V8_HAS_ATTRIBUTE_VISIBILITY 1
318
334
  # define V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT (!V8_CC_INTEL)
319
335
 
336
+ // [[nodiscard]] does not work together with with
337
+ // __attribute__((visibility(""))) on GCC 7.4 which is why there is no define
338
+ // for V8_HAS_CPP_ATTRIBUTE_NODISCARD. See https://crbug.com/v8/11707.
339
+
320
340
  # define V8_HAS_BUILTIN_ASSUME_ALIGNED 1
321
341
  # define V8_HAS_BUILTIN_CLZ 1
322
342
  # define V8_HAS_BUILTIN_CTZ 1
@@ -327,11 +347,6 @@
327
347
  // GCC doc: https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html
328
348
  #define V8_HAS_COMPUTED_GOTO 1
329
349
 
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
350
  #endif
336
351
 
337
352
  #if defined(_MSC_VER)
@@ -433,6 +448,20 @@
433
448
  #define V8_WARN_UNUSED_RESULT /* NOT SUPPORTED */
434
449
  #endif
435
450
 
451
+
452
+ // Annotate a class or constructor indicating the caller must assign the
453
+ // constructed instances.
454
+ // Apply to the whole class like:
455
+ // class V8_NODISCARD Foo() { ... };
456
+ // or apply to just one constructor like:
457
+ // V8_NODISCARD Foo() { ... };
458
+ // [[nodiscard]] comes in C++17 but supported in clang with -std >= c++11.
459
+ #if V8_HAS_CPP_ATTRIBUTE_NODISCARD
460
+ #define V8_NODISCARD [[nodiscard]]
461
+ #else
462
+ #define V8_NODISCARD /* NOT SUPPORTED */
463
+ #endif
464
+
436
465
  // Helper macro to define no_sanitize attributes only with clang.
437
466
  #if defined(__clang__) && defined(__has_attribute)
438
467
  #if __has_attribute(no_sanitize)
@@ -481,4 +510,6 @@ V8 shared library set USING_V8_SHARED.
481
510
 
482
511
  // clang-format on
483
512
 
513
+ #undef V8_HAS_CPP_ATTRIBUTE
514
+
484
515
  #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: 15.14.0.1
4
+ version: 16.10.0.0
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-04-27 00:00:00.000000000 Z
11
+ date: 2021-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -53,9 +53,15 @@ files:
53
53
  - lib/libv8/node/version.rb
54
54
  - vendor/v8/include/cppgc/allocation.h
55
55
  - vendor/v8/include/cppgc/common.h
56
+ - vendor/v8/include/cppgc/cross-thread-persistent.h
56
57
  - vendor/v8/include/cppgc/custom-space.h
57
58
  - vendor/v8/include/cppgc/default-platform.h
59
+ - vendor/v8/include/cppgc/ephemeron-pair.h
60
+ - vendor/v8/include/cppgc/explicit-management.h
58
61
  - vendor/v8/include/cppgc/garbage-collected.h
62
+ - vendor/v8/include/cppgc/heap-consistency.h
63
+ - vendor/v8/include/cppgc/heap-state.h
64
+ - vendor/v8/include/cppgc/heap-statistics.h
59
65
  - vendor/v8/include/cppgc/heap.h
60
66
  - vendor/v8/include/cppgc/internal/api-constants.h
61
67
  - vendor/v8/include/cppgc/internal/atomic-entry-flag.h
@@ -64,18 +70,23 @@ files:
64
70
  - vendor/v8/include/cppgc/internal/finalizer-trait.h
65
71
  - vendor/v8/include/cppgc/internal/gc-info.h
66
72
  - vendor/v8/include/cppgc/internal/logging.h
73
+ - vendor/v8/include/cppgc/internal/name-trait.h
67
74
  - vendor/v8/include/cppgc/internal/persistent-node.h
68
75
  - vendor/v8/include/cppgc/internal/pointer-policies.h
69
76
  - 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
@@ -90,6 +101,7 @@ files:
90
101
  - vendor/v8/include/v8-metrics.h
91
102
  - vendor/v8/include/v8-platform.h
92
103
  - vendor/v8/include/v8-profiler.h
104
+ - vendor/v8/include/v8-unwinder-state.h
93
105
  - vendor/v8/include/v8-util.h
94
106
  - vendor/v8/include/v8-value-serializer-version.h
95
107
  - vendor/v8/include/v8-version-string.h
@@ -98,8 +110,8 @@ files:
98
110
  - vendor/v8/include/v8-wasm-trap-handler-win.h
99
111
  - vendor/v8/include/v8.h
100
112
  - vendor/v8/include/v8config.h
101
- - vendor/v8/out.gn/libv8/obj/libv8_monolith.a
102
- homepage: https://github.com/sqreen/libv8-node
113
+ - vendor/v8/x86_64-linux/libv8/obj/libv8_monolith.a
114
+ homepage: https://github.com/sqreen/ruby-libv8-node
103
115
  licenses:
104
116
  - MIT
105
117
  metadata: {}
@@ -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_