libv8 6.7.288.46.1-universal-darwin-16 → 7.3.492.27.1-universal-darwin-16

Sign up to get free protection for your applications and to get access to all the features.
@@ -161,14 +161,8 @@
161
161
  //
162
162
  // C++11 feature detection
163
163
  //
164
- // V8_HAS_CXX11_ALIGNAS - alignas specifier supported
165
- // V8_HAS_CXX11_ALIGNOF - alignof(type) operator supported
166
- //
167
164
  // Compiler-specific feature detection
168
165
  //
169
- // V8_HAS___ALIGNOF - __alignof(type) operator supported
170
- // V8_HAS___ALIGNOF__ - __alignof__(type) operator supported
171
- // V8_HAS_ATTRIBUTE_ALIGNED - __attribute__((aligned(n))) supported
172
166
  // V8_HAS_ATTRIBUTE_ALWAYS_INLINE - __attribute__((always_inline))
173
167
  // supported
174
168
  // V8_HAS_ATTRIBUTE_DEPRECATED - __attribute__((deprecated)) supported
@@ -188,7 +182,6 @@
188
182
  // V8_HAS_BUILTIN_SADD_OVERFLOW - __builtin_sadd_overflow() supported
189
183
  // V8_HAS_BUILTIN_SSUB_OVERFLOW - __builtin_ssub_overflow() supported
190
184
  // V8_HAS_BUILTIN_UADD_OVERFLOW - __builtin_uadd_overflow() supported
191
- // V8_HAS_DECLSPEC_ALIGN - __declspec(align(n)) supported
192
185
  // V8_HAS_DECLSPEC_DEPRECATED - __declspec(deprecated) supported
193
186
  // V8_HAS_DECLSPEC_NOINLINE - __declspec(noinline) supported
194
187
  // V8_HAS_DECLSPEC_SELECTANY - __declspec(selectany) supported
@@ -207,13 +200,10 @@
207
200
  # define V8_CC_GNU 1
208
201
  #endif
209
202
 
210
- // Clang defines __alignof__ as alias for __alignof
211
- # define V8_HAS___ALIGNOF 1
212
- # define V8_HAS___ALIGNOF__ V8_HAS___ALIGNOF
213
-
214
- # define V8_HAS_ATTRIBUTE_ALIGNED (__has_attribute(aligned))
215
203
  # define V8_HAS_ATTRIBUTE_ALWAYS_INLINE (__has_attribute(always_inline))
216
204
  # define V8_HAS_ATTRIBUTE_DEPRECATED (__has_attribute(deprecated))
205
+ # define V8_HAS_ATTRIBUTE_DEPRECATED_MESSAGE \
206
+ (__has_extension(attribute_deprecated_with_message))
217
207
  # define V8_HAS_ATTRIBUTE_NOINLINE (__has_attribute(noinline))
218
208
  # define V8_HAS_ATTRIBUTE_UNUSED (__has_attribute(unused))
219
209
  # define V8_HAS_ATTRIBUTE_VISIBILITY (__has_attribute(visibility))
@@ -232,7 +222,9 @@
232
222
  # define V8_HAS_BUILTIN_SSUB_OVERFLOW (__has_builtin(__builtin_ssub_overflow))
233
223
  # define V8_HAS_BUILTIN_UADD_OVERFLOW (__has_builtin(__builtin_uadd_overflow))
234
224
 
235
- # define V8_HAS_CXX11_ALIGNAS (__has_feature(cxx_alignas))
225
+ # if __cplusplus >= 201402L
226
+ # define V8_CAN_HAVE_DCHECK_IN_CONSTEXPR 1
227
+ # endif
236
228
 
237
229
  #elif defined(__GNUC__)
238
230
 
@@ -248,9 +240,6 @@
248
240
  # endif
249
241
  # define V8_CC_MINGW (V8_CC_MINGW32 || V8_CC_MINGW64)
250
242
 
251
- # define V8_HAS___ALIGNOF__ (V8_GNUC_PREREQ(4, 3, 0))
252
-
253
- # define V8_HAS_ATTRIBUTE_ALIGNED (V8_GNUC_PREREQ(2, 95, 0))
254
243
  // always_inline is available in gcc 4.0 but not very reliable until 4.4.
255
244
  // Works around "sorry, unimplemented: inlining failed" build errors with
256
245
  // older compilers.
@@ -269,17 +258,11 @@
269
258
  # define V8_HAS_BUILTIN_FRAME_ADDRESS (V8_GNUC_PREREQ(2, 96, 0))
270
259
  # define V8_HAS_BUILTIN_POPCOUNT (V8_GNUC_PREREQ(3, 4, 0))
271
260
 
272
- # if __cplusplus >= 201103L
273
- # define V8_HAS_CXX11_ALIGNAS (V8_GNUC_PREREQ(4, 8, 0))
274
- # define V8_HAS_CXX11_ALIGNOF (V8_GNUC_PREREQ(4, 8, 0))
275
- # endif
276
261
  #endif
277
262
 
278
263
  #if defined(_MSC_VER)
279
264
  # define V8_CC_MSVC 1
280
- # define V8_HAS___ALIGNOF 1
281
265
 
282
- # define V8_HAS_DECLSPEC_ALIGN 1
283
266
  # define V8_HAS_DECLSPEC_DEPRECATED 1
284
267
  # define V8_HAS_DECLSPEC_NOINLINE 1
285
268
  # define V8_HAS_DECLSPEC_SELECTANY 1
@@ -357,66 +340,44 @@
357
340
  #endif
358
341
 
359
342
 
360
- // This macro allows to specify memory alignment for structs, classes, etc.
343
+ // Annotate a function indicating the caller must examine the return value.
361
344
  // Use like:
362
- // class V8_ALIGNED(16) MyClass { ... };
363
- // V8_ALIGNED(32) int array[42];
364
- #if V8_HAS_CXX11_ALIGNAS
365
- # define V8_ALIGNED(n) alignas(n)
366
- #elif V8_HAS_ATTRIBUTE_ALIGNED
367
- # define V8_ALIGNED(n) __attribute__((aligned(n)))
368
- #elif V8_HAS_DECLSPEC_ALIGN
369
- # define V8_ALIGNED(n) __declspec(align(n))
345
+ // int foo() V8_WARN_UNUSED_RESULT;
346
+ #if V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT
347
+ #define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
370
348
  #else
371
- # define V8_ALIGNED(n) /* NOT SUPPORTED */
349
+ #define V8_WARN_UNUSED_RESULT /* NOT SUPPORTED */
372
350
  #endif
373
351
 
374
-
375
- // This macro is similar to V8_ALIGNED(), but takes a type instead of size
376
- // in bytes. If the compiler does not supports using the alignment of the
377
- // |type|, it will align according to the |alignment| instead. For example,
378
- // Visual Studio C++ cannot combine __declspec(align) and __alignof. The
379
- // |alignment| must be a literal that is used as a kind of worst-case fallback
380
- // alignment.
381
- // Use like:
382
- // struct V8_ALIGNAS(AnotherClass, 16) NewClass { ... };
383
- // V8_ALIGNAS(double, 8) int array[100];
384
- #if V8_HAS_CXX11_ALIGNAS
385
- # define V8_ALIGNAS(type, alignment) alignas(type)
386
- #elif V8_HAS___ALIGNOF__ && V8_HAS_ATTRIBUTE_ALIGNED
387
- # define V8_ALIGNAS(type, alignment) __attribute__((aligned(__alignof__(type))))
352
+ #ifdef V8_OS_WIN
353
+
354
+ // Setup for Windows DLL export/import. When building the V8 DLL the
355
+ // BUILDING_V8_SHARED needs to be defined. When building a program which uses
356
+ // the V8 DLL USING_V8_SHARED needs to be defined. When either building the V8
357
+ // static library or building a program which uses the V8 static library neither
358
+ // BUILDING_V8_SHARED nor USING_V8_SHARED should be defined.
359
+ #ifdef BUILDING_V8_SHARED
360
+ # define V8_EXPORT __declspec(dllexport)
361
+ #elif USING_V8_SHARED
362
+ # define V8_EXPORT __declspec(dllimport)
388
363
  #else
389
- # define V8_ALIGNAS(type, alignment) V8_ALIGNED(alignment)
390
- #endif
364
+ # define V8_EXPORT
365
+ #endif // BUILDING_V8_SHARED
391
366
 
367
+ #else // V8_OS_WIN
392
368
 
393
- // This macro returns alignment in bytes (an integer power of two) required for
394
- // any instance of the given type, which is either complete type, an array type,
395
- // or a reference type.
396
- // Use like:
397
- // size_t alignment = V8_ALIGNOF(double);
398
- #if V8_HAS_CXX11_ALIGNOF
399
- # define V8_ALIGNOF(type) alignof(type)
400
- #elif V8_HAS___ALIGNOF
401
- # define V8_ALIGNOF(type) __alignof(type)
402
- #elif V8_HAS___ALIGNOF__
403
- # define V8_ALIGNOF(type) __alignof__(type)
369
+ // Setup for Linux shared library export.
370
+ #if V8_HAS_ATTRIBUTE_VISIBILITY
371
+ # ifdef BUILDING_V8_SHARED
372
+ # define V8_EXPORT __attribute__ ((visibility("default")))
373
+ # else
374
+ # define V8_EXPORT
375
+ # endif
404
376
  #else
405
- // Note that alignment of a type within a struct can be less than the
406
- // alignment of the type stand-alone (because of ancient ABIs), so this
407
- // should only be used as a last resort.
408
- namespace v8 { template <typename T> class AlignOfHelper { char c; T t; }; }
409
- # define V8_ALIGNOF(type) (sizeof(::v8::AlignOfHelper<type>) - sizeof(type))
377
+ # define V8_EXPORT
410
378
  #endif
411
379
 
412
- // Annotate a function indicating the caller must examine the return value.
413
- // Use like:
414
- // int foo() V8_WARN_UNUSED_RESULT;
415
- #if V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT
416
- #define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
417
- #else
418
- #define V8_WARN_UNUSED_RESULT /* NOT SUPPORTED */
419
- #endif
380
+ #endif // V8_OS_WIN
420
381
 
421
382
  // clang-format on
422
383
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libv8
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.7.288.46.1
4
+ version: 7.3.492.27.1
5
5
  platform: universal-darwin-16
6
6
  authors:
7
7
  - Charles Lowell
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-06 00:00:00.000000000 Z
11
+ date: 2019-04-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -70,6 +70,7 @@ files:
70
70
  - vendor/v8/include/libplatform/v8-tracing.h
71
71
  - vendor/v8/include/v8-inspector-protocol.h
72
72
  - vendor/v8/include/v8-inspector.h
73
+ - vendor/v8/include/v8-internal.h
73
74
  - vendor/v8/include/v8-platform.h
74
75
  - vendor/v8/include/v8-profiler.h
75
76
  - vendor/v8/include/v8-testing.h
@@ -77,6 +78,8 @@ files:
77
78
  - vendor/v8/include/v8-value-serializer-version.h
78
79
  - vendor/v8/include/v8-version-string.h
79
80
  - vendor/v8/include/v8-version.h
81
+ - vendor/v8/include/v8-wasm-trap-handler-posix.h
82
+ - vendor/v8/include/v8-wasm-trap-handler-win.h
80
83
  - vendor/v8/include/v8.h
81
84
  - vendor/v8/include/v8config.h
82
85
  - vendor/v8/out.gn/libv8/obj/libv8_libbase.a
@@ -102,8 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
105
  - !ruby/object:Gem::Version
103
106
  version: '0'
104
107
  requirements: []
105
- rubyforge_project: libv8
106
- rubygems_version: 2.7.7
108
+ rubygems_version: 3.0.3
107
109
  signing_key:
108
110
  specification_version: 4
109
111
  summary: Distribution of the V8 JavaScript engine