node-darwin-x64 16.10.0 → 16.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1552 -1299
- package/README.md +17 -16
- package/bin/node +0 -0
- package/include/node/common.gypi +1 -1
- package/include/node/config.gypi +1 -1
- package/include/node/node_version.h +3 -3
- package/include/node/v8-internal.h +12 -0
- package/include/node/v8-version.h +2 -2
- package/include/node/v8.h +15 -11
- package/include/node/v8config.h +47 -2
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -34,6 +34,7 @@ The Node.js project uses an [open governance model](./GOVERNANCE.md). The
|
|
|
34
34
|
* [Current project team members](#current-project-team-members)
|
|
35
35
|
* [TSC (Technical Steering Committee)](#tsc-technical-steering-committee)
|
|
36
36
|
* [Collaborators](#collaborators)
|
|
37
|
+
* [Triagers](#triagers)
|
|
37
38
|
* [Release keys](#release-keys)
|
|
38
39
|
* [License](#license)
|
|
39
40
|
|
|
@@ -201,7 +202,7 @@ For information about the governance of the Node.js project, see
|
|
|
201
202
|
* [targos](https://github.com/targos) -
|
|
202
203
|
**Michaël Zasso** \<targos@protonmail.com> (he/him)
|
|
203
204
|
* [tniessen](https://github.com/tniessen) -
|
|
204
|
-
**Tobias Nießen** \<tniessen@tnie.de>
|
|
205
|
+
**Tobias Nießen** \<tniessen@tnie.de> (he/him)
|
|
205
206
|
* [Trott](https://github.com/Trott) -
|
|
206
207
|
**Rich Trott** \<rtrott@gmail.com> (he/him)
|
|
207
208
|
|
|
@@ -286,8 +287,6 @@ For information about the governance of the Node.js project, see
|
|
|
286
287
|
**Beth Griggs** \<bgriggs@redhat.com> (she/her)
|
|
287
288
|
* [bmeck](https://github.com/bmeck) -
|
|
288
289
|
**Bradley Farias** \<bradley.meck@gmail.com>
|
|
289
|
-
* [bmeurer](https://github.com/bmeurer) -
|
|
290
|
-
**Benedikt Meurer** \<benedikt.meurer@gmail.com>
|
|
291
290
|
* [boneskull](https://github.com/boneskull) -
|
|
292
291
|
**Christopher Hiller** \<boneskull@boneskull.com> (he/him)
|
|
293
292
|
* [BridgeAR](https://github.com/BridgeAR) -
|
|
@@ -332,8 +331,6 @@ For information about the governance of the Node.js project, see
|
|
|
332
331
|
**Gerhard Stöbich** \<deb2001-github@yahoo.de> (he/they)
|
|
333
332
|
* [gabrielschulhof](https://github.com/gabrielschulhof) -
|
|
334
333
|
**Gabriel Schulhof** \<gabrielschulhof@gmail.com>
|
|
335
|
-
* [geek](https://github.com/geek) -
|
|
336
|
-
**Wyatt Preul** \<wpreul@gmail.com>
|
|
337
334
|
* [gengjiawen](https://github.com/gengjiawen) -
|
|
338
335
|
**Jiawen Geng** \<technicalcute@gmail.com>
|
|
339
336
|
* [GeoffreyBooth](https://github.com/geoffreybooth) -
|
|
@@ -390,8 +387,6 @@ For information about the governance of the Node.js project, see
|
|
|
390
387
|
**Milad Fa** \<mfarazma@redhat.com> (he/him)
|
|
391
388
|
* [mildsunrise](https://github.com/mildsunrise) -
|
|
392
389
|
**Alba Mendez** \<me@alba.sh> (she/her)
|
|
393
|
-
* [misterdjules](https://github.com/misterdjules) -
|
|
394
|
-
**Julien Gilli** \<jgilli@netflix.com>
|
|
395
390
|
* [mmarchini](https://github.com/mmarchini) -
|
|
396
391
|
**Mary Marchini** \<oss@mmarchini.me> (she/her)
|
|
397
392
|
* [mscdex](https://github.com/mscdex) -
|
|
@@ -410,8 +405,6 @@ For information about the governance of the Node.js project, see
|
|
|
410
405
|
**Stephen Belanger** \<admin@stephenbelanger.com> (he/him)
|
|
411
406
|
* [RaisinTen](https://github.com/RaisinTen) -
|
|
412
407
|
**Darshan Sen** \<raisinten@gmail.com> (he/him)
|
|
413
|
-
* [refack](https://github.com/refack) -
|
|
414
|
-
**Refael Ackermann (רפאל פלחי)** \<refack@gmail.com> (he/him/הוא/אתה)
|
|
415
408
|
* [rexagod](https://github.com/rexagod) -
|
|
416
409
|
**Pranshu Srivastava** \<rexagod@gmail.com> (he/him)
|
|
417
410
|
* [richardlau](https://github.com/richardlau) -
|
|
@@ -426,8 +419,6 @@ For information about the governance of the Node.js project, see
|
|
|
426
419
|
**Rod Vagg** \<rod@vagg.org>
|
|
427
420
|
* [ryzokuken](https://github.com/ryzokuken) -
|
|
428
421
|
**Ujjwal Sharma** \<ryzokuken@disroot.org> (he/him)
|
|
429
|
-
* [saghul](https://github.com/saghul) -
|
|
430
|
-
**Saúl Ibarra Corretgé** \<s@saghul.net>
|
|
431
422
|
* [santigimeno](https://github.com/santigimeno) -
|
|
432
423
|
**Santiago Gimeno** \<santiago.gimeno@gmail.com>
|
|
433
424
|
* [seishun](https://github.com/seishun) -
|
|
@@ -447,7 +438,7 @@ For information about the governance of the Node.js project, see
|
|
|
447
438
|
* [TimothyGu](https://github.com/TimothyGu) -
|
|
448
439
|
**Tiancheng "Timothy" Gu** \<timothygu99@gmail.com> (he/him)
|
|
449
440
|
* [tniessen](https://github.com/tniessen) -
|
|
450
|
-
**Tobias Nießen** \<tniessen@tnie.de>
|
|
441
|
+
**Tobias Nießen** \<tniessen@tnie.de> (he/him)
|
|
451
442
|
* [trivikr](https://github.com/trivikr) -
|
|
452
443
|
**Trivikram Kamat** \<trivikr.dev@gmail.com>
|
|
453
444
|
* [Trott](https://github.com/Trott) -
|
|
@@ -464,8 +455,6 @@ For information about the governance of the Node.js project, see
|
|
|
464
455
|
**Yash Ladha** \<yash@yashladha.in> (he/him)
|
|
465
456
|
* [yhwang](https://github.com/yhwang) -
|
|
466
457
|
**Yihong Wang** \<yh.wang@ibm.com>
|
|
467
|
-
* [yorkie](https://github.com/yorkie) -
|
|
468
|
-
**Yorkie Liu** \<yorkiefixer@gmail.com>
|
|
469
458
|
* [yosuke-furukawa](https://github.com/yosuke-furukawa) -
|
|
470
459
|
**Yosuke Furukawa** \<yosuke.furukawa@gmail.com>
|
|
471
460
|
* [ZYSzys](https://github.com/ZYSzys) -
|
|
@@ -488,6 +477,8 @@ For information about the governance of the Node.js project, see
|
|
|
488
477
|
**Andreas Madsen** \<amwebdk@gmail.com> (he/him)
|
|
489
478
|
* [aqrln](https://github.com/aqrln) -
|
|
490
479
|
**Alexey Orlenko** \<eaglexrlnk@gmail.com> (he/him)
|
|
480
|
+
* [bmeurer](https://github.com/bmeurer) -
|
|
481
|
+
**Benedikt Meurer** \<benedikt.meurer@gmail.com>
|
|
491
482
|
* [bnoordhuis](https://github.com/bnoordhuis) -
|
|
492
483
|
**Ben Noordhuis** \<info@bnoordhuis.nl>
|
|
493
484
|
* [brendanashworth](https://github.com/brendanashworth) -
|
|
@@ -509,7 +500,9 @@ For information about the governance of the Node.js project, see
|
|
|
509
500
|
* [firedfox](https://github.com/firedfox) -
|
|
510
501
|
**Daniel Wang** \<wangyang0123@gmail.com>
|
|
511
502
|
* [gdams](https://github.com/gdams) -
|
|
512
|
-
**George Adams** \<
|
|
503
|
+
**George Adams** \<gadams@microsoft.com> (he/him)
|
|
504
|
+
* [geek](https://github.com/geek) -
|
|
505
|
+
**Wyatt Preul** \<wpreul@gmail.com>
|
|
513
506
|
* [gibfahn](https://github.com/gibfahn) -
|
|
514
507
|
**Gibson Fahnestock** \<gibfahn@gmail.com> (he/him)
|
|
515
508
|
* [glentiki](https://github.com/glentiki) -
|
|
@@ -554,6 +547,8 @@ For information about the governance of the Node.js project, see
|
|
|
554
547
|
**Nicu Micleușanu** \<micnic90@gmail.com> (he/him)
|
|
555
548
|
* [mikeal](https://github.com/mikeal) -
|
|
556
549
|
**Mikeal Rogers** \<mikeal.rogers@gmail.com>
|
|
550
|
+
* [misterdjules](https://github.com/misterdjules) -
|
|
551
|
+
**Julien Gilli** \<jgilli@netflix.com>
|
|
557
552
|
* [monsanto](https://github.com/monsanto) -
|
|
558
553
|
**Christopher Monsanto** \<chris@monsan.to>
|
|
559
554
|
* [MoonBall](https://github.com/MoonBall) -
|
|
@@ -567,7 +562,7 @@ For information about the governance of the Node.js project, see
|
|
|
567
562
|
* [orangemocha](https://github.com/orangemocha) -
|
|
568
563
|
**Alexis Campailla** \<orangemocha@nodejs.org>
|
|
569
564
|
* [othiym23](https://github.com/othiym23) -
|
|
570
|
-
**Forrest L Norvell** \<ogd@aoaioxxysz.net> (
|
|
565
|
+
**Forrest L Norvell** \<ogd@aoaioxxysz.net> (they/them/themself)
|
|
571
566
|
* [petkaantonov](https://github.com/petkaantonov) -
|
|
572
567
|
**Petka Antonov** \<petka_antonov@hotmail.com>
|
|
573
568
|
* [phillipj](https://github.com/phillipj) -
|
|
@@ -580,6 +575,8 @@ For information about the governance of the Node.js project, see
|
|
|
580
575
|
**Prince John Wesley** \<princejohnwesley@gmail.com>
|
|
581
576
|
* [psmarshall](https://github.com/psmarshall) -
|
|
582
577
|
**Peter Marshall** \<petermarshall@chromium.org> (he/him)
|
|
578
|
+
* [refack](https://github.com/refack) -
|
|
579
|
+
**Refael Ackermann (רפאל פלחי)** \<refack@gmail.com> (he/him/הוא/אתה)
|
|
583
580
|
* [rlidwka](https://github.com/rlidwka) -
|
|
584
581
|
**Alex Kocharin** \<alex@kocharin.ru>
|
|
585
582
|
* [rmg](https://github.com/rmg) -
|
|
@@ -594,6 +591,8 @@ For information about the governance of the Node.js project, see
|
|
|
594
591
|
**Ingvar Stepanyan** \<me@rreverser.com>
|
|
595
592
|
* [rubys](https://github.com/rubys) -
|
|
596
593
|
**Sam Ruby** \<rubys@intertwingly.net>
|
|
594
|
+
* [saghul](https://github.com/saghul) -
|
|
595
|
+
**Saúl Ibarra Corretgé** \<s@saghul.net>
|
|
597
596
|
* [sam-github](https://github.com/sam-github) -
|
|
598
597
|
**Sam Roberts** \<vieuxtech@gmail.com>
|
|
599
598
|
* [sebdeckers](https://github.com/sebdeckers) -
|
|
@@ -618,6 +617,8 @@ For information about the governance of the Node.js project, see
|
|
|
618
617
|
**Vse Mozhet Byt** \<vsemozhetbyt@gmail.com> (he/him)
|
|
619
618
|
* [whitlockjc](https://github.com/whitlockjc) -
|
|
620
619
|
**Jeremy Whitlock** \<jwhitlock@apache.org>
|
|
620
|
+
* [yorkie](https://github.com/yorkie) -
|
|
621
|
+
**Yorkie Liu** \<yorkiefixer@gmail.com>
|
|
621
622
|
|
|
622
623
|
</details>
|
|
623
624
|
<!--lint enable prohibited-strings-->
|
package/bin/node
CHANGED
|
Binary file
|
package/include/node/common.gypi
CHANGED
package/include/node/config.gypi
CHANGED
|
@@ -241,9 +241,9 @@
|
|
|
241
241
|
'lib/internal/modules/esm/translators.js',
|
|
242
242
|
'lib/internal/modules/esm/resolve.js',
|
|
243
243
|
'lib/internal/modules/esm/create_dynamic_module.js',
|
|
244
|
+
'lib/internal/modules/esm/load.js',
|
|
244
245
|
'lib/internal/modules/esm/module_map.js',
|
|
245
246
|
'lib/internal/modules/esm/get_format.js',
|
|
246
|
-
'lib/internal/modules/esm/transform_source.js',
|
|
247
247
|
'lib/internal/modules/esm/loader.js',
|
|
248
248
|
'lib/internal/modules/cjs/helpers.js',
|
|
249
249
|
'lib/internal/modules/cjs/loader.js',
|
|
@@ -23,11 +23,11 @@
|
|
|
23
23
|
#define SRC_NODE_VERSION_H_
|
|
24
24
|
|
|
25
25
|
#define NODE_MAJOR_VERSION 16
|
|
26
|
-
#define NODE_MINOR_VERSION
|
|
26
|
+
#define NODE_MINOR_VERSION 13
|
|
27
27
|
#define NODE_PATCH_VERSION 0
|
|
28
28
|
|
|
29
|
-
#define NODE_VERSION_IS_LTS
|
|
30
|
-
#define NODE_VERSION_LTS_CODENAME ""
|
|
29
|
+
#define NODE_VERSION_IS_LTS 1
|
|
30
|
+
#define NODE_VERSION_LTS_CODENAME "Gallium"
|
|
31
31
|
|
|
32
32
|
#define NODE_VERSION_IS_RELEASE 1
|
|
33
33
|
|
|
@@ -15,9 +15,12 @@
|
|
|
15
15
|
|
|
16
16
|
namespace v8 {
|
|
17
17
|
|
|
18
|
+
class Array;
|
|
18
19
|
class Context;
|
|
19
20
|
class Data;
|
|
20
21
|
class Isolate;
|
|
22
|
+
template <typename T>
|
|
23
|
+
class Local;
|
|
21
24
|
|
|
22
25
|
namespace internal {
|
|
23
26
|
|
|
@@ -494,6 +497,15 @@ V8_INLINE void PerformCastCheck(T* data) {
|
|
|
494
497
|
class BackingStoreBase {};
|
|
495
498
|
|
|
496
499
|
} // namespace internal
|
|
500
|
+
|
|
501
|
+
V8_EXPORT bool CopyAndConvertArrayToCppBufferInt32(Local<Array> src,
|
|
502
|
+
int32_t* dst,
|
|
503
|
+
uint32_t max_length);
|
|
504
|
+
|
|
505
|
+
V8_EXPORT bool CopyAndConvertArrayToCppBufferFloat64(Local<Array> src,
|
|
506
|
+
double* dst,
|
|
507
|
+
uint32_t max_length);
|
|
508
|
+
|
|
497
509
|
} // namespace v8
|
|
498
510
|
|
|
499
511
|
#endif // INCLUDE_V8_INTERNAL_H_
|
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
// NOTE these macros are used by some of the tool scripts and the build
|
|
10
10
|
// system so their names cannot be changed without changing the scripts.
|
|
11
11
|
#define V8_MAJOR_VERSION 9
|
|
12
|
-
#define V8_MINOR_VERSION
|
|
13
|
-
#define V8_BUILD_NUMBER
|
|
12
|
+
#define V8_MINOR_VERSION 4
|
|
13
|
+
#define V8_BUILD_NUMBER 146
|
|
14
14
|
#define V8_PATCH_LEVEL 19
|
|
15
15
|
|
|
16
16
|
// Use 1 for candidates and 0 otherwise.
|
package/include/node/v8.h
CHANGED
|
@@ -1441,7 +1441,7 @@ class ScriptOriginOptions {
|
|
|
1441
1441
|
class ScriptOrigin {
|
|
1442
1442
|
public:
|
|
1443
1443
|
#if defined(_MSC_VER) && _MSC_VER >= 1910 /* Disable on VS2015 */
|
|
1444
|
-
|
|
1444
|
+
V8_DEPRECATED("Use constructor with primitive C++ types")
|
|
1445
1445
|
#endif
|
|
1446
1446
|
V8_INLINE explicit ScriptOrigin(
|
|
1447
1447
|
Local<Value> resource_name, Local<Integer> resource_line_offset,
|
|
@@ -1454,7 +1454,7 @@ class ScriptOrigin {
|
|
|
1454
1454
|
Local<Boolean> is_module = Local<Boolean>(),
|
|
1455
1455
|
Local<PrimitiveArray> host_defined_options = Local<PrimitiveArray>());
|
|
1456
1456
|
#if defined(_MSC_VER) && _MSC_VER >= 1910 /* Disable on VS2015 */
|
|
1457
|
-
|
|
1457
|
+
V8_DEPRECATED("Use constructor that takes an isolate")
|
|
1458
1458
|
#endif
|
|
1459
1459
|
V8_INLINE explicit ScriptOrigin(
|
|
1460
1460
|
Local<Value> resource_name, int resource_line_offset = 0,
|
|
@@ -1474,11 +1474,11 @@ class ScriptOrigin {
|
|
|
1474
1474
|
Local<PrimitiveArray> host_defined_options = Local<PrimitiveArray>());
|
|
1475
1475
|
|
|
1476
1476
|
V8_INLINE Local<Value> ResourceName() const;
|
|
1477
|
-
|
|
1477
|
+
V8_DEPRECATED("Use getter with primitvie C++ types.")
|
|
1478
1478
|
V8_INLINE Local<Integer> ResourceLineOffset() const;
|
|
1479
|
-
|
|
1479
|
+
V8_DEPRECATED("Use getter with primitvie C++ types.")
|
|
1480
1480
|
V8_INLINE Local<Integer> ResourceColumnOffset() const;
|
|
1481
|
-
|
|
1481
|
+
V8_DEPRECATED("Use getter with primitvie C++ types.")
|
|
1482
1482
|
V8_INLINE Local<Integer> ScriptID() const;
|
|
1483
1483
|
V8_INLINE int LineOffset() const;
|
|
1484
1484
|
V8_INLINE int ColumnOffset() const;
|
|
@@ -1630,14 +1630,14 @@ class V8_EXPORT Module : public Data {
|
|
|
1630
1630
|
/**
|
|
1631
1631
|
* Returns the number of modules requested by this module.
|
|
1632
1632
|
*/
|
|
1633
|
-
|
|
1633
|
+
V8_DEPRECATED("Use Module::GetModuleRequests() and FixedArray::Length().")
|
|
1634
1634
|
int GetModuleRequestsLength() const;
|
|
1635
1635
|
|
|
1636
1636
|
/**
|
|
1637
1637
|
* Returns the ith module specifier in this module.
|
|
1638
1638
|
* i must be < GetModuleRequestsLength() and >= 0.
|
|
1639
1639
|
*/
|
|
1640
|
-
|
|
1640
|
+
V8_DEPRECATED(
|
|
1641
1641
|
"Use Module::GetModuleRequests() and ModuleRequest::GetSpecifier().")
|
|
1642
1642
|
Local<String> GetModuleRequest(int i) const;
|
|
1643
1643
|
|
|
@@ -1645,7 +1645,7 @@ class V8_EXPORT Module : public Data {
|
|
|
1645
1645
|
* Returns the source location (line number and column number) of the ith
|
|
1646
1646
|
* module specifier's first occurrence in this module.
|
|
1647
1647
|
*/
|
|
1648
|
-
|
|
1648
|
+
V8_DEPRECATED(
|
|
1649
1649
|
"Use Module::GetModuleRequests(), ModuleRequest::GetSourceOffset(), and "
|
|
1650
1650
|
"Module::SourceOffsetToLocation().")
|
|
1651
1651
|
Location GetModuleRequestLocation(int i) const;
|
|
@@ -1680,7 +1680,7 @@ class V8_EXPORT Module : public Data {
|
|
|
1680
1680
|
* instantiation. (In the case where the callback throws an exception, that
|
|
1681
1681
|
* exception is propagated.)
|
|
1682
1682
|
*/
|
|
1683
|
-
|
|
1683
|
+
V8_DEPRECATED(
|
|
1684
1684
|
"Use the version of InstantiateModule that takes a ResolveModuleCallback "
|
|
1685
1685
|
"parameter")
|
|
1686
1686
|
V8_WARN_UNUSED_RESULT Maybe<bool> InstantiateModule(Local<Context> context,
|
|
@@ -4311,11 +4311,13 @@ class V8_EXPORT Object : public Value {
|
|
|
4311
4311
|
/**
|
|
4312
4312
|
* Returns the context in which the object was created.
|
|
4313
4313
|
*/
|
|
4314
|
+
// TODO(chromium:1166077): Mark as deprecate once users are updated.
|
|
4314
4315
|
V8_DEPRECATE_SOON("Use MaybeLocal<Context> GetCreationContext()")
|
|
4315
4316
|
Local<Context> CreationContext();
|
|
4316
4317
|
MaybeLocal<Context> GetCreationContext();
|
|
4317
4318
|
|
|
4318
4319
|
/** Same as above, but works for Persistents */
|
|
4320
|
+
// TODO(chromium:1166077): Mark as deprecate once users are updated.
|
|
4319
4321
|
V8_DEPRECATE_SOON(
|
|
4320
4322
|
"Use MaybeLocal<Context> GetCreationContext(const "
|
|
4321
4323
|
"PersistentBase<Object>& object)")
|
|
@@ -7507,7 +7509,9 @@ using MessageCallback = void (*)(Local<Message> message, Local<Value> data);
|
|
|
7507
7509
|
|
|
7508
7510
|
// --- Tracing ---
|
|
7509
7511
|
|
|
7510
|
-
|
|
7512
|
+
enum LogEventStatus : int { kStart = 0, kEnd = 1, kStamp = 2 };
|
|
7513
|
+
using LogEventCallback = void (*)(const char* name,
|
|
7514
|
+
int /* LogEventStatus */ status);
|
|
7511
7515
|
|
|
7512
7516
|
/**
|
|
7513
7517
|
* Create new error objects by calling the corresponding error object
|
|
@@ -8973,7 +8977,7 @@ class V8_EXPORT Isolate {
|
|
|
8973
8977
|
* This specifies the callback called by the upcoming dynamic
|
|
8974
8978
|
* import() language feature to load modules.
|
|
8975
8979
|
*/
|
|
8976
|
-
|
|
8980
|
+
V8_DEPRECATED(
|
|
8977
8981
|
"Use the version of SetHostImportModuleDynamicallyCallback that takes a "
|
|
8978
8982
|
"HostImportModuleDynamicallyWithImportAssertionsCallback instead")
|
|
8979
8983
|
void SetHostImportModuleDynamicallyCallback(
|
package/include/node/v8config.h
CHANGED
|
@@ -86,51 +86,80 @@ path. Add it with -I<path> to the command line
|
|
|
86
86
|
# define V8_OS_ANDROID 1
|
|
87
87
|
# define V8_OS_LINUX 1
|
|
88
88
|
# define V8_OS_POSIX 1
|
|
89
|
+
# define V8_OS_STRING "android"
|
|
90
|
+
|
|
89
91
|
#elif defined(__APPLE__)
|
|
90
92
|
# define V8_OS_BSD 1
|
|
91
93
|
# define V8_OS_MACOSX 1
|
|
92
94
|
# define V8_OS_POSIX 1
|
|
93
95
|
# if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
|
|
94
96
|
# define V8_OS_IOS 1
|
|
97
|
+
# define V8_OS_STRING "ios"
|
|
98
|
+
# else
|
|
99
|
+
# define V8_OS_STRING "macos"
|
|
95
100
|
# endif // defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
|
|
101
|
+
|
|
96
102
|
#elif defined(__CYGWIN__)
|
|
97
103
|
# define V8_OS_CYGWIN 1
|
|
98
104
|
# define V8_OS_POSIX 1
|
|
105
|
+
# define V8_OS_STRING "cygwin"
|
|
106
|
+
|
|
99
107
|
#elif defined(__linux__)
|
|
100
108
|
# define V8_OS_LINUX 1
|
|
101
109
|
# define V8_OS_POSIX 1
|
|
110
|
+
# define V8_OS_STRING "linux"
|
|
111
|
+
|
|
102
112
|
#elif defined(__sun)
|
|
103
113
|
# define V8_OS_POSIX 1
|
|
104
114
|
# define V8_OS_SOLARIS 1
|
|
115
|
+
# define V8_OS_STRING "sun"
|
|
116
|
+
|
|
105
117
|
#elif defined(STARBOARD)
|
|
106
118
|
# define V8_OS_STARBOARD 1
|
|
119
|
+
# define V8_OS_STRING "starboard"
|
|
120
|
+
|
|
107
121
|
#elif defined(_AIX)
|
|
108
|
-
#define V8_OS_POSIX 1
|
|
109
|
-
#define V8_OS_AIX 1
|
|
122
|
+
# define V8_OS_POSIX 1
|
|
123
|
+
# define V8_OS_AIX 1
|
|
124
|
+
# define V8_OS_STRING "aix"
|
|
125
|
+
|
|
110
126
|
#elif defined(__FreeBSD__)
|
|
111
127
|
# define V8_OS_BSD 1
|
|
112
128
|
# define V8_OS_FREEBSD 1
|
|
113
129
|
# define V8_OS_POSIX 1
|
|
130
|
+
# define V8_OS_STRING "freebsd"
|
|
131
|
+
|
|
114
132
|
#elif defined(__Fuchsia__)
|
|
115
133
|
# define V8_OS_FUCHSIA 1
|
|
116
134
|
# define V8_OS_POSIX 1
|
|
135
|
+
# define V8_OS_STRING "fuchsia"
|
|
136
|
+
|
|
117
137
|
#elif defined(__DragonFly__)
|
|
118
138
|
# define V8_OS_BSD 1
|
|
119
139
|
# define V8_OS_DRAGONFLYBSD 1
|
|
120
140
|
# define V8_OS_POSIX 1
|
|
141
|
+
# define V8_OS_STRING "dragonflybsd"
|
|
142
|
+
|
|
121
143
|
#elif defined(__NetBSD__)
|
|
122
144
|
# define V8_OS_BSD 1
|
|
123
145
|
# define V8_OS_NETBSD 1
|
|
124
146
|
# define V8_OS_POSIX 1
|
|
147
|
+
# define V8_OS_STRING "netbsd"
|
|
148
|
+
|
|
125
149
|
#elif defined(__OpenBSD__)
|
|
126
150
|
# define V8_OS_BSD 1
|
|
127
151
|
# define V8_OS_OPENBSD 1
|
|
128
152
|
# define V8_OS_POSIX 1
|
|
153
|
+
# define V8_OS_STRING "openbsd"
|
|
154
|
+
|
|
129
155
|
#elif defined(__QNXNTO__)
|
|
130
156
|
# define V8_OS_POSIX 1
|
|
131
157
|
# define V8_OS_QNX 1
|
|
158
|
+
# define V8_OS_STRING "qnx"
|
|
159
|
+
|
|
132
160
|
#elif defined(_WIN32)
|
|
133
161
|
# define V8_OS_WIN 1
|
|
162
|
+
# define V8_OS_STRING "windows"
|
|
134
163
|
#endif
|
|
135
164
|
|
|
136
165
|
// -----------------------------------------------------------------------------
|
|
@@ -195,6 +224,22 @@ path. Add it with -I<path> to the command line
|
|
|
195
224
|
|
|
196
225
|
#endif // V8_HAVE_TARGET_OS
|
|
197
226
|
|
|
227
|
+
#if defined(V8_TARGET_OS_ANDROID)
|
|
228
|
+
# define V8_TARGET_OS_STRING "android"
|
|
229
|
+
#elif defined(V8_TARGET_OS_FUCHSIA)
|
|
230
|
+
# define V8_TARGET_OS_STRING "fuchsia"
|
|
231
|
+
#elif defined(V8_TARGET_OS_IOS)
|
|
232
|
+
# define V8_TARGET_OS_STRING "ios"
|
|
233
|
+
#elif defined(V8_TARGET_OS_LINUX)
|
|
234
|
+
# define V8_TARGET_OS_STRING "linux"
|
|
235
|
+
#elif defined(V8_TARGET_OS_MACOSX)
|
|
236
|
+
# define V8_TARGET_OS_STRING "macos"
|
|
237
|
+
#elif defined(V8_TARGET_OS_WINDOWS)
|
|
238
|
+
# define V8_TARGET_OS_STRING "windows"
|
|
239
|
+
#else
|
|
240
|
+
# define V8_TARGET_OS_STRING "unknown"
|
|
241
|
+
#endif
|
|
242
|
+
|
|
198
243
|
// -----------------------------------------------------------------------------
|
|
199
244
|
// C library detection
|
|
200
245
|
//
|