libv8-node 15.5.1.0.beta1-x86_64-darwin-19 → 16.10.0.0-x86_64-darwin-19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (58) hide show
  1. checksums.yaml +4 -4
  2. data/ext/libv8-node/.location.yml +0 -1
  3. data/ext/libv8-node/location.rb +23 -38
  4. data/ext/libv8-node/paths.rb +2 -2
  5. data/lib/libv8/node/version.rb +3 -3
  6. data/vendor/v8/include/cppgc/allocation.h +104 -45
  7. data/vendor/v8/include/cppgc/common.h +9 -6
  8. data/vendor/v8/include/cppgc/cross-thread-persistent.h +384 -0
  9. data/vendor/v8/include/cppgc/custom-space.h +37 -2
  10. data/vendor/v8/include/cppgc/default-platform.h +47 -48
  11. data/vendor/v8/include/cppgc/ephemeron-pair.h +30 -0
  12. data/vendor/v8/include/cppgc/explicit-management.h +82 -0
  13. data/vendor/v8/include/cppgc/garbage-collected.h +4 -3
  14. data/vendor/v8/include/cppgc/heap-consistency.h +236 -0
  15. data/vendor/v8/include/cppgc/heap-state.h +70 -0
  16. data/vendor/v8/include/cppgc/heap-statistics.h +120 -0
  17. data/vendor/v8/include/cppgc/heap.h +68 -6
  18. data/vendor/v8/include/cppgc/internal/api-constants.h +3 -3
  19. data/vendor/v8/include/cppgc/internal/caged-heap-local-data.h +2 -1
  20. data/vendor/v8/include/cppgc/internal/compiler-specific.h +2 -2
  21. data/vendor/v8/include/cppgc/internal/gc-info.h +44 -13
  22. data/vendor/v8/include/cppgc/internal/name-trait.h +111 -0
  23. data/vendor/v8/include/cppgc/internal/persistent-node.h +57 -1
  24. data/vendor/v8/include/cppgc/internal/pointer-policies.h +69 -28
  25. data/vendor/v8/include/cppgc/internal/prefinalizer-handler.h +1 -1
  26. data/vendor/v8/include/cppgc/internal/write-barrier.h +353 -35
  27. data/vendor/v8/include/cppgc/liveness-broker.h +7 -1
  28. data/vendor/v8/include/cppgc/macros.h +2 -0
  29. data/vendor/v8/include/cppgc/member.h +85 -25
  30. data/vendor/v8/include/cppgc/name-provider.h +65 -0
  31. data/vendor/v8/include/cppgc/object-size-trait.h +58 -0
  32. data/vendor/v8/include/cppgc/persistent.h +33 -9
  33. data/vendor/v8/include/cppgc/platform.h +48 -25
  34. data/vendor/v8/include/cppgc/prefinalizer.h +1 -1
  35. data/vendor/v8/include/cppgc/process-heap-statistics.h +36 -0
  36. data/vendor/v8/include/cppgc/sentinel-pointer.h +32 -0
  37. data/vendor/v8/include/cppgc/source-location.h +2 -1
  38. data/vendor/v8/include/cppgc/testing.h +99 -0
  39. data/vendor/v8/include/cppgc/trace-trait.h +8 -3
  40. data/vendor/v8/include/cppgc/type-traits.h +157 -19
  41. data/vendor/v8/include/cppgc/visitor.h +187 -23
  42. data/vendor/v8/include/libplatform/libplatform.h +11 -0
  43. data/vendor/v8/include/libplatform/v8-tracing.h +2 -0
  44. data/vendor/v8/include/v8-cppgc.h +258 -159
  45. data/vendor/v8/include/v8-fast-api-calls.h +562 -159
  46. data/vendor/v8/include/v8-inspector.h +23 -2
  47. data/vendor/v8/include/v8-internal.h +99 -27
  48. data/vendor/v8/include/v8-metrics.h +77 -8
  49. data/vendor/v8/include/v8-platform.h +47 -22
  50. data/vendor/v8/include/v8-profiler.h +75 -11
  51. data/vendor/v8/include/v8-unwinder-state.h +30 -0
  52. data/vendor/v8/include/v8-util.h +1 -1
  53. data/vendor/v8/include/v8-version.h +4 -4
  54. data/vendor/v8/include/v8.h +1192 -642
  55. data/vendor/v8/include/v8config.h +40 -9
  56. data/vendor/v8/{out.gn → x86_64-darwin-19}/libv8/obj/libv8_monolith.a +0 -0
  57. metadata +34 -8
  58. 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.5.1.0.beta1
4
+ version: 16.10.0.0
5
5
  platform: x86_64-darwin-19
6
6
  authors:
7
7
  - ''
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-01-18 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
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '12'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rubocop
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: 0.50.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 0.50.0
27
41
  description: Node.JS's V8 JavaScript engine for multiplatform goodness
28
42
  email:
29
43
  - ''
@@ -39,9 +53,15 @@ files:
39
53
  - lib/libv8/node/version.rb
40
54
  - vendor/v8/include/cppgc/allocation.h
41
55
  - vendor/v8/include/cppgc/common.h
56
+ - vendor/v8/include/cppgc/cross-thread-persistent.h
42
57
  - vendor/v8/include/cppgc/custom-space.h
43
58
  - vendor/v8/include/cppgc/default-platform.h
59
+ - vendor/v8/include/cppgc/ephemeron-pair.h
60
+ - vendor/v8/include/cppgc/explicit-management.h
44
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
45
65
  - vendor/v8/include/cppgc/heap.h
46
66
  - vendor/v8/include/cppgc/internal/api-constants.h
47
67
  - vendor/v8/include/cppgc/internal/atomic-entry-flag.h
@@ -50,18 +70,23 @@ files:
50
70
  - vendor/v8/include/cppgc/internal/finalizer-trait.h
51
71
  - vendor/v8/include/cppgc/internal/gc-info.h
52
72
  - vendor/v8/include/cppgc/internal/logging.h
73
+ - vendor/v8/include/cppgc/internal/name-trait.h
53
74
  - vendor/v8/include/cppgc/internal/persistent-node.h
54
75
  - vendor/v8/include/cppgc/internal/pointer-policies.h
55
76
  - vendor/v8/include/cppgc/internal/prefinalizer-handler.h
56
- - vendor/v8/include/cppgc/internal/process-heap.h
57
77
  - vendor/v8/include/cppgc/internal/write-barrier.h
58
78
  - vendor/v8/include/cppgc/liveness-broker.h
59
79
  - vendor/v8/include/cppgc/macros.h
60
80
  - vendor/v8/include/cppgc/member.h
81
+ - vendor/v8/include/cppgc/name-provider.h
82
+ - vendor/v8/include/cppgc/object-size-trait.h
61
83
  - vendor/v8/include/cppgc/persistent.h
62
84
  - vendor/v8/include/cppgc/platform.h
63
85
  - vendor/v8/include/cppgc/prefinalizer.h
86
+ - vendor/v8/include/cppgc/process-heap-statistics.h
87
+ - vendor/v8/include/cppgc/sentinel-pointer.h
64
88
  - vendor/v8/include/cppgc/source-location.h
89
+ - vendor/v8/include/cppgc/testing.h
65
90
  - vendor/v8/include/cppgc/trace-trait.h
66
91
  - vendor/v8/include/cppgc/type-traits.h
67
92
  - vendor/v8/include/cppgc/visitor.h
@@ -76,6 +101,7 @@ files:
76
101
  - vendor/v8/include/v8-metrics.h
77
102
  - vendor/v8/include/v8-platform.h
78
103
  - vendor/v8/include/v8-profiler.h
104
+ - vendor/v8/include/v8-unwinder-state.h
79
105
  - vendor/v8/include/v8-util.h
80
106
  - vendor/v8/include/v8-value-serializer-version.h
81
107
  - vendor/v8/include/v8-version-string.h
@@ -84,8 +110,8 @@ files:
84
110
  - vendor/v8/include/v8-wasm-trap-handler-win.h
85
111
  - vendor/v8/include/v8.h
86
112
  - vendor/v8/include/v8config.h
87
- - vendor/v8/out.gn/libv8/obj/libv8_monolith.a
88
- homepage: https://github.com/sqreen/libv8-node
113
+ - vendor/v8/x86_64-darwin-19/libv8/obj/libv8_monolith.a
114
+ homepage: https://github.com/sqreen/ruby-libv8-node
89
115
  licenses:
90
116
  - MIT
91
117
  metadata: {}
@@ -101,11 +127,11 @@ required_ruby_version: !ruby/object:Gem::Requirement
101
127
  version: '0'
102
128
  required_rubygems_version: !ruby/object:Gem::Requirement
103
129
  requirements:
104
- - - ">"
130
+ - - ">="
105
131
  - !ruby/object:Gem::Version
106
- version: 1.3.1
132
+ version: '0'
107
133
  requirements: []
108
- rubygems_version: 3.2.0
134
+ rubygems_version: 3.2.29
109
135
  signing_key:
110
136
  specification_version: 4
111
137
  summary: Node.JS's V8 JavaScript engine
@@ -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_