node-aix-ppc64 16.8.0 → 16.11.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.
Files changed (94) hide show
  1. package/CHANGELOG.md +363 -5
  2. package/LICENSE +11 -0
  3. package/README.md +282 -266
  4. package/bin/node +0 -0
  5. package/include/node/common.gypi +2 -1
  6. package/include/node/config.gypi +1 -0
  7. package/include/node/node.exp +2633 -2062
  8. package/include/node/node.h +12 -1
  9. package/include/node/node_version.h +1 -1
  10. package/include/node/openssl/archs/BSD-x86/asm/crypto/buildinf.h +1 -1
  11. package/include/node/openssl/archs/BSD-x86/asm_avx2/crypto/buildinf.h +1 -1
  12. package/include/node/openssl/archs/BSD-x86/no-asm/crypto/buildinf.h +1 -1
  13. package/include/node/openssl/archs/BSD-x86_64/asm/crypto/buildinf.h +1 -1
  14. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/crypto/buildinf.h +1 -1
  15. package/include/node/openssl/archs/BSD-x86_64/no-asm/crypto/buildinf.h +1 -1
  16. package/include/node/openssl/archs/VC-WIN32/asm/crypto/buildinf.h +1 -1
  17. package/include/node/openssl/archs/VC-WIN32/asm_avx2/crypto/buildinf.h +1 -1
  18. package/include/node/openssl/archs/VC-WIN32/no-asm/crypto/buildinf.h +1 -1
  19. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/crypto/buildinf.h +1 -1
  20. package/include/node/openssl/archs/VC-WIN64A/asm/crypto/buildinf.h +1 -1
  21. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/crypto/buildinf.h +1 -1
  22. package/include/node/openssl/archs/VC-WIN64A/no-asm/crypto/buildinf.h +1 -1
  23. package/include/node/openssl/archs/aix-gcc/asm/crypto/buildinf.h +1 -1
  24. package/include/node/openssl/archs/aix-gcc/asm_avx2/crypto/buildinf.h +1 -1
  25. package/include/node/openssl/archs/aix-gcc/no-asm/crypto/buildinf.h +1 -1
  26. package/include/node/openssl/archs/aix64-gcc/asm/crypto/buildinf.h +1 -1
  27. package/include/node/openssl/archs/aix64-gcc/asm_avx2/crypto/buildinf.h +1 -1
  28. package/include/node/openssl/archs/aix64-gcc/no-asm/crypto/buildinf.h +1 -1
  29. package/include/node/openssl/archs/darwin-i386-cc/asm/crypto/buildinf.h +1 -1
  30. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/crypto/buildinf.h +1 -1
  31. package/include/node/openssl/archs/darwin-i386-cc/no-asm/crypto/buildinf.h +1 -1
  32. package/include/node/openssl/archs/darwin64-arm64-cc/asm/crypto/buildinf.h +1 -1
  33. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/crypto/buildinf.h +1 -1
  34. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/crypto/buildinf.h +1 -1
  35. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/crypto/buildinf.h +1 -1
  36. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/crypto/buildinf.h +1 -1
  37. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/crypto/buildinf.h +1 -1
  38. package/include/node/openssl/archs/linux-aarch64/asm/crypto/buildinf.h +1 -1
  39. package/include/node/openssl/archs/linux-aarch64/asm_avx2/crypto/buildinf.h +1 -1
  40. package/include/node/openssl/archs/linux-aarch64/no-asm/crypto/buildinf.h +1 -1
  41. package/include/node/openssl/archs/linux-armv4/asm/crypto/buildinf.h +1 -1
  42. package/include/node/openssl/archs/linux-armv4/asm_avx2/crypto/buildinf.h +1 -1
  43. package/include/node/openssl/archs/linux-armv4/no-asm/crypto/buildinf.h +1 -1
  44. package/include/node/openssl/archs/linux-elf/asm/crypto/buildinf.h +1 -1
  45. package/include/node/openssl/archs/linux-elf/asm_avx2/crypto/buildinf.h +1 -1
  46. package/include/node/openssl/archs/linux-elf/no-asm/crypto/buildinf.h +1 -1
  47. package/include/node/openssl/archs/linux-ppc/asm/crypto/buildinf.h +1 -1
  48. package/include/node/openssl/archs/linux-ppc/asm_avx2/crypto/buildinf.h +1 -1
  49. package/include/node/openssl/archs/linux-ppc/no-asm/crypto/buildinf.h +1 -1
  50. package/include/node/openssl/archs/linux-ppc64/asm/crypto/buildinf.h +1 -1
  51. package/include/node/openssl/archs/linux-ppc64/asm_avx2/crypto/buildinf.h +1 -1
  52. package/include/node/openssl/archs/linux-ppc64/no-asm/crypto/buildinf.h +1 -1
  53. package/include/node/openssl/archs/linux-ppc64le/asm/crypto/buildinf.h +1 -1
  54. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/crypto/buildinf.h +1 -1
  55. package/include/node/openssl/archs/linux-ppc64le/no-asm/crypto/buildinf.h +1 -1
  56. package/include/node/openssl/archs/linux-x32/asm/crypto/buildinf.h +1 -1
  57. package/include/node/openssl/archs/linux-x32/asm_avx2/crypto/buildinf.h +1 -1
  58. package/include/node/openssl/archs/linux-x32/no-asm/crypto/buildinf.h +1 -1
  59. package/include/node/openssl/archs/linux-x86_64/asm/crypto/buildinf.h +1 -1
  60. package/include/node/openssl/archs/linux-x86_64/asm_avx2/crypto/buildinf.h +1 -1
  61. package/include/node/openssl/archs/linux-x86_64/no-asm/crypto/buildinf.h +1 -1
  62. package/include/node/openssl/archs/linux32-s390x/asm/crypto/buildinf.h +1 -1
  63. package/include/node/openssl/archs/linux32-s390x/asm_avx2/crypto/buildinf.h +1 -1
  64. package/include/node/openssl/archs/linux32-s390x/no-asm/crypto/buildinf.h +1 -1
  65. package/include/node/openssl/archs/linux64-mips64/asm/crypto/buildinf.h +1 -1
  66. package/include/node/openssl/archs/linux64-mips64/asm_avx2/crypto/buildinf.h +1 -1
  67. package/include/node/openssl/archs/linux64-mips64/no-asm/crypto/buildinf.h +1 -1
  68. package/include/node/openssl/archs/linux64-riscv64/no-asm/crypto/buildinf.h +28 -0
  69. package/include/node/openssl/archs/linux64-riscv64/no-asm/crypto/include/internal/bn_conf.h +28 -0
  70. package/include/node/openssl/archs/linux64-riscv64/no-asm/crypto/include/internal/dso_conf.h +17 -0
  71. package/include/node/openssl/archs/linux64-riscv64/no-asm/include/openssl/opensslconf.h +203 -0
  72. package/include/node/openssl/archs/linux64-riscv64/no-asm/include/progs.h +507 -0
  73. package/include/node/openssl/archs/linux64-s390x/asm/crypto/buildinf.h +1 -1
  74. package/include/node/openssl/archs/linux64-s390x/asm_avx2/crypto/buildinf.h +1 -1
  75. package/include/node/openssl/archs/linux64-s390x/no-asm/crypto/buildinf.h +1 -1
  76. package/include/node/openssl/archs/solaris-x86-gcc/asm/crypto/buildinf.h +1 -1
  77. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/crypto/buildinf.h +1 -1
  78. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/crypto/buildinf.h +1 -1
  79. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/crypto/buildinf.h +1 -1
  80. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/crypto/buildinf.h +1 -1
  81. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/crypto/buildinf.h +1 -1
  82. package/include/node/openssl/e_os2.h +3 -2
  83. package/include/node/openssl/opensslv.h +2 -2
  84. package/include/node/openssl/ssl.h +1 -0
  85. package/include/node/openssl/sslerr.h +4 -1
  86. package/include/node/openssl/x509v3err.h +3 -1
  87. package/include/node/v8-internal.h +13 -0
  88. package/include/node/v8-version.h +3 -3
  89. package/include/node/v8.h +53 -14
  90. package/include/node/v8config.h +47 -2
  91. package/package.json +1 -1
  92. package/share/doc/node/gdbinit +5 -1
  93. package/share/doc/node/lldb_commands.py +17 -2
  94. package/share/man/man1/node.1 +8 -0
@@ -1,6 +1,6 @@
1
1
  /*
2
2
  * Generated by util/mkerr.pl DO NOT EDIT
3
- * Copyright 1995-2019 The OpenSSL Project Authors. All Rights Reserved.
3
+ * Copyright 1995-2021 The OpenSSL Project Authors. All Rights Reserved.
4
4
  *
5
5
  * Licensed under the OpenSSL license (the "License"). You may not use
6
6
  * this file except in compliance with the License. You can obtain a copy
@@ -38,6 +38,7 @@ int ERR_load_X509V3_strings(void);
38
38
  # define X509V3_F_I2S_ASN1_IA5STRING 149
39
39
  # define X509V3_F_I2S_ASN1_INTEGER 120
40
40
  # define X509V3_F_I2V_AUTHORITY_INFO_ACCESS 138
41
+ # define X509V3_F_I2V_AUTHORITY_KEYID 173
41
42
  # define X509V3_F_LEVEL_ADD_NODE 168
42
43
  # define X509V3_F_NOTICE_SECTION 132
43
44
  # define X509V3_F_NREF_NOS 133
@@ -78,6 +79,7 @@ int ERR_load_X509V3_strings(void);
78
79
  # define X509V3_F_V2I_TLS_FEATURE 165
79
80
  # define X509V3_F_V3_GENERIC_EXTENSION 116
80
81
  # define X509V3_F_X509V3_ADD1_I2D 140
82
+ # define X509V3_F_X509V3_ADD_LEN_VALUE 174
81
83
  # define X509V3_F_X509V3_ADD_VALUE 105
82
84
  # define X509V3_F_X509V3_EXT_ADD 104
83
85
  # define X509V3_F_X509V3_EXT_ADD_ALIAS 106
@@ -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
 
@@ -145,6 +148,7 @@ enum ExternalPointerTag : uint64_t {
145
148
  kForeignForeignAddressTag = 0x01f7000000000000, // 0b000000111110111
146
149
  kNativeContextMicrotaskQueueTag = 0x01fb000000000000, // 0b000000111111011
147
150
  kEmbedderDataSlotPayloadTag = 0x01fd000000000000, // 0b000000111111101
151
+ kCodeEntryPointTag = 0x01fe000000000000, // 0b000000111111110
148
152
  };
149
153
 
150
154
  constexpr uint64_t kExternalPointerTagMask = 0xffff000000000000;
@@ -493,6 +497,15 @@ V8_INLINE void PerformCastCheck(T* data) {
493
497
  class BackingStoreBase {};
494
498
 
495
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
+
496
509
  } // namespace v8
497
510
 
498
511
  #endif // INCLUDE_V8_INTERNAL_H_
@@ -9,9 +9,9 @@
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 2
13
- #define V8_BUILD_NUMBER 230
14
- #define V8_PATCH_LEVEL 21
12
+ #define V8_MINOR_VERSION 4
13
+ #define V8_BUILD_NUMBER 146
14
+ #define V8_PATCH_LEVEL 19
15
15
 
16
16
  // Use 1 for candidates and 0 otherwise.
17
17
  // (Boolean macro values are not supported by all preprocessors.)
package/include/node/v8.h CHANGED
@@ -50,6 +50,7 @@ class CFunction;
50
50
  class CallHandlerHelper;
51
51
  class Context;
52
52
  class CppHeap;
53
+ class CTypeInfo;
53
54
  class Data;
54
55
  class Date;
55
56
  class EscapableHandleScope;
@@ -885,6 +886,8 @@ class TracedReferenceBase {
885
886
  std::memory_order_relaxed);
886
887
  }
887
888
 
889
+ V8_EXPORT void CheckValue() const;
890
+
888
891
  // val_ points to a GlobalHandles node.
889
892
  internal::Address* val_ = nullptr;
890
893
 
@@ -926,8 +929,18 @@ class BasicTracedReference : public TracedReferenceBase {
926
929
  const_cast<BasicTracedReference<T>&>(*this));
927
930
  }
928
931
 
929
- T* operator->() const { return reinterpret_cast<T*>(val_); }
930
- T* operator*() const { return reinterpret_cast<T*>(val_); }
932
+ T* operator->() const {
933
+ #ifdef V8_ENABLE_CHECKS
934
+ CheckValue();
935
+ #endif // V8_ENABLE_CHECKS
936
+ return reinterpret_cast<T*>(val_);
937
+ }
938
+ T* operator*() const {
939
+ #ifdef V8_ENABLE_CHECKS
940
+ CheckValue();
941
+ #endif // V8_ENABLE_CHECKS
942
+ return reinterpret_cast<T*>(val_);
943
+ }
931
944
 
932
945
  private:
933
946
  enum DestructionMode { kWithDestructor, kWithoutDestructor };
@@ -1428,7 +1441,7 @@ class ScriptOriginOptions {
1428
1441
  class ScriptOrigin {
1429
1442
  public:
1430
1443
  #if defined(_MSC_VER) && _MSC_VER >= 1910 /* Disable on VS2015 */
1431
- V8_DEPRECATE_SOON("Use constructor with primitive C++ types")
1444
+ V8_DEPRECATED("Use constructor with primitive C++ types")
1432
1445
  #endif
1433
1446
  V8_INLINE explicit ScriptOrigin(
1434
1447
  Local<Value> resource_name, Local<Integer> resource_line_offset,
@@ -1441,7 +1454,7 @@ class ScriptOrigin {
1441
1454
  Local<Boolean> is_module = Local<Boolean>(),
1442
1455
  Local<PrimitiveArray> host_defined_options = Local<PrimitiveArray>());
1443
1456
  #if defined(_MSC_VER) && _MSC_VER >= 1910 /* Disable on VS2015 */
1444
- V8_DEPRECATE_SOON("Use constructor that takes an isolate")
1457
+ V8_DEPRECATED("Use constructor that takes an isolate")
1445
1458
  #endif
1446
1459
  V8_INLINE explicit ScriptOrigin(
1447
1460
  Local<Value> resource_name, int resource_line_offset = 0,
@@ -1461,11 +1474,11 @@ class ScriptOrigin {
1461
1474
  Local<PrimitiveArray> host_defined_options = Local<PrimitiveArray>());
1462
1475
 
1463
1476
  V8_INLINE Local<Value> ResourceName() const;
1464
- V8_DEPRECATE_SOON("Use getter with primitvie C++ types.")
1477
+ V8_DEPRECATED("Use getter with primitvie C++ types.")
1465
1478
  V8_INLINE Local<Integer> ResourceLineOffset() const;
1466
- V8_DEPRECATE_SOON("Use getter with primitvie C++ types.")
1479
+ V8_DEPRECATED("Use getter with primitvie C++ types.")
1467
1480
  V8_INLINE Local<Integer> ResourceColumnOffset() const;
1468
- V8_DEPRECATE_SOON("Use getter with primitvie C++ types.")
1481
+ V8_DEPRECATED("Use getter with primitvie C++ types.")
1469
1482
  V8_INLINE Local<Integer> ScriptID() const;
1470
1483
  V8_INLINE int LineOffset() const;
1471
1484
  V8_INLINE int ColumnOffset() const;
@@ -1617,14 +1630,14 @@ class V8_EXPORT Module : public Data {
1617
1630
  /**
1618
1631
  * Returns the number of modules requested by this module.
1619
1632
  */
1620
- V8_DEPRECATE_SOON("Use Module::GetModuleRequests() and FixedArray::Length().")
1633
+ V8_DEPRECATED("Use Module::GetModuleRequests() and FixedArray::Length().")
1621
1634
  int GetModuleRequestsLength() const;
1622
1635
 
1623
1636
  /**
1624
1637
  * Returns the ith module specifier in this module.
1625
1638
  * i must be < GetModuleRequestsLength() and >= 0.
1626
1639
  */
1627
- V8_DEPRECATE_SOON(
1640
+ V8_DEPRECATED(
1628
1641
  "Use Module::GetModuleRequests() and ModuleRequest::GetSpecifier().")
1629
1642
  Local<String> GetModuleRequest(int i) const;
1630
1643
 
@@ -1632,7 +1645,7 @@ class V8_EXPORT Module : public Data {
1632
1645
  * Returns the source location (line number and column number) of the ith
1633
1646
  * module specifier's first occurrence in this module.
1634
1647
  */
1635
- V8_DEPRECATE_SOON(
1648
+ V8_DEPRECATED(
1636
1649
  "Use Module::GetModuleRequests(), ModuleRequest::GetSourceOffset(), and "
1637
1650
  "Module::SourceOffsetToLocation().")
1638
1651
  Location GetModuleRequestLocation(int i) const;
@@ -1667,7 +1680,7 @@ class V8_EXPORT Module : public Data {
1667
1680
  * instantiation. (In the case where the callback throws an exception, that
1668
1681
  * exception is propagated.)
1669
1682
  */
1670
- V8_DEPRECATE_SOON(
1683
+ V8_DEPRECATED(
1671
1684
  "Use the version of InstantiateModule that takes a ResolveModuleCallback "
1672
1685
  "parameter")
1673
1686
  V8_WARN_UNUSED_RESULT Maybe<bool> InstantiateModule(Local<Context> context,
@@ -4298,11 +4311,13 @@ class V8_EXPORT Object : public Value {
4298
4311
  /**
4299
4312
  * Returns the context in which the object was created.
4300
4313
  */
4314
+ // TODO(chromium:1166077): Mark as deprecate once users are updated.
4301
4315
  V8_DEPRECATE_SOON("Use MaybeLocal<Context> GetCreationContext()")
4302
4316
  Local<Context> CreationContext();
4303
4317
  MaybeLocal<Context> GetCreationContext();
4304
4318
 
4305
4319
  /** Same as above, but works for Persistents */
4320
+ // TODO(chromium:1166077): Mark as deprecate once users are updated.
4306
4321
  V8_DEPRECATE_SOON(
4307
4322
  "Use MaybeLocal<Context> GetCreationContext(const "
4308
4323
  "PersistentBase<Object>& object)")
@@ -4427,6 +4442,7 @@ class V8_EXPORT Array : public Object {
4427
4442
  static Local<Array> New(Isolate* isolate, Local<Value>* elements,
4428
4443
  size_t length);
4429
4444
  V8_INLINE static Array* Cast(Value* obj);
4445
+
4430
4446
  private:
4431
4447
  Array();
4432
4448
  static void CheckCast(Value* obj);
@@ -4913,6 +4929,12 @@ class V8_EXPORT Promise : public Object {
4913
4929
  */
4914
4930
  void MarkAsHandled();
4915
4931
 
4932
+ /**
4933
+ * Marks this promise as silent to prevent pausing the debugger when the
4934
+ * promise is rejected.
4935
+ */
4936
+ void MarkAsSilent();
4937
+
4916
4938
  V8_INLINE static Promise* Cast(Value* obj);
4917
4939
 
4918
4940
  static const int kEmbedderFieldCount = V8_PROMISE_INTERNAL_FIELD_COUNT;
@@ -7487,7 +7509,9 @@ using MessageCallback = void (*)(Local<Message> message, Local<Value> data);
7487
7509
 
7488
7510
  // --- Tracing ---
7489
7511
 
7490
- using LogEventCallback = void (*)(const char* name, int event);
7512
+ enum LogEventStatus : int { kStart = 0, kEnd = 1, kStamp = 2 };
7513
+ using LogEventCallback = void (*)(const char* name,
7514
+ int /* LogEventStatus */ status);
7491
7515
 
7492
7516
  /**
7493
7517
  * Create new error objects by calling the corresponding error object
@@ -8811,7 +8835,7 @@ class V8_EXPORT Isolate {
8811
8835
  kDateToLocaleTimeString = 68,
8812
8836
  kAttemptOverrideReadOnlyOnPrototypeSloppy = 69,
8813
8837
  kAttemptOverrideReadOnlyOnPrototypeStrict = 70,
8814
- kOptimizedFunctionWithOneShotBytecode = 71,
8838
+ kOptimizedFunctionWithOneShotBytecode = 71, // Unused.
8815
8839
  kRegExpMatchIsTrueishOnNonJSRegExp = 72,
8816
8840
  kRegExpMatchIsFalseishOnJSRegExp = 73,
8817
8841
  kDateGetTimezoneOffset = 74, // Unused.
@@ -8913,6 +8937,14 @@ class V8_EXPORT Isolate {
8913
8937
  */
8914
8938
  static Isolate* GetCurrent();
8915
8939
 
8940
+ /**
8941
+ * Returns the entered isolate for the current thread or NULL in
8942
+ * case there is no current isolate.
8943
+ *
8944
+ * No checks are performed by this method.
8945
+ */
8946
+ static Isolate* TryGetCurrent();
8947
+
8916
8948
  /**
8917
8949
  * Clears the set of objects held strongly by the heap. This set of
8918
8950
  * objects are originally built when a WeakRef is created or
@@ -8945,7 +8977,7 @@ class V8_EXPORT Isolate {
8945
8977
  * This specifies the callback called by the upcoming dynamic
8946
8978
  * import() language feature to load modules.
8947
8979
  */
8948
- V8_DEPRECATE_SOON(
8980
+ V8_DEPRECATED(
8949
8981
  "Use the version of SetHostImportModuleDynamicallyCallback that takes a "
8950
8982
  "HostImportModuleDynamicallyWithImportAssertionsCallback instead")
8951
8983
  void SetHostImportModuleDynamicallyCallback(
@@ -8979,6 +9011,13 @@ class V8_EXPORT Isolate {
8979
9011
  */
8980
9012
  void MemoryPressureNotification(MemoryPressureLevel level);
8981
9013
 
9014
+ /**
9015
+ * Drop non-essential caches. Should only be called from testing code.
9016
+ * The method can potentially block for a long time and does not necessarily
9017
+ * trigger GC.
9018
+ */
9019
+ void ClearCachesForTesting();
9020
+
8982
9021
  /**
8983
9022
  * Methods below this point require holding a lock (using Locker) in
8984
9023
  * a multi-threaded environment.
@@ -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
  //
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "node-aix-ppc64",
3
- "version": "v16.8.0",
3
+ "version": "v16.11.0",
4
4
  "description": "node",
5
5
  "bin": {
6
6
  "node": "bin/node"
@@ -31,7 +31,11 @@ end
31
31
 
32
32
  # Print Code objects containing given PC.
33
33
  define jco
34
- call (void) _v8_internal_Print_Code((void*)($arg0))
34
+ if $argc == 0
35
+ call (void) _v8_internal_Print_Code((void*)($pc))
36
+ else
37
+ call (void) _v8_internal_Print_Code((void*)($arg0))
38
+ end
35
39
  end
36
40
  document jco
37
41
  Print a v8 Code object from an internal code address
@@ -8,9 +8,11 @@
8
8
  # for py2/py3 compatibility
9
9
  from __future__ import print_function
10
10
 
11
- import lldb
11
+ import os
12
12
  import re
13
13
 
14
+ import lldb
15
+
14
16
  #####################
15
17
  # Helper functions. #
16
18
  #####################
@@ -21,7 +23,8 @@ def current_frame(debugger):
21
23
  return current_thread(debugger).GetSelectedFrame()
22
24
 
23
25
  def no_arg_cmd(debugger, cmd):
24
- evaluate_result = current_frame(debugger).EvaluateExpression(cmd)
26
+ cast_to_void_expr = '(void) {}'.format(cmd)
27
+ evaluate_result = current_frame(debugger).EvaluateExpression(cast_to_void_expr)
25
28
  # When a void function is called the return value type is 0x1001 which
26
29
  # is specified in http://tiny.cc/bigskz. This does not indicate
27
30
  # an error so we check for that value below.
@@ -112,7 +115,19 @@ def bta(debugger, *args):
112
115
  print("%s -> %s %s (%s)\033[0m" % (
113
116
  color, prefix, match.group(2), match.group(1)))
114
117
 
118
+ def setup_source_map_for_relative_paths(debugger):
119
+ # Copied from Chromium's tools/lldb/lldbinit.py.
120
+ # When relative paths are used for debug symbols, lldb cannot find source
121
+ # files. Set up a source map to point to V8's root.
122
+ this_dir = os.path.dirname(os.path.abspath(__file__))
123
+ source_dir = os.path.join(this_dir, os.pardir)
124
+
125
+ debugger.HandleCommand(
126
+ 'settings set target.source-map ../.. ' + source_dir)
127
+
128
+
115
129
  def __lldb_init_module(debugger, dict):
130
+ setup_source_map_for_relative_paths(debugger)
116
131
  debugger.HandleCommand('settings set target.x86-disassembly-flavor intel')
117
132
  for cmd in ('job', 'jlh', 'jco', 'jld', 'jtt', 'jst', 'jss', 'bta'):
118
133
  debugger.HandleCommand(
@@ -277,6 +277,14 @@ Silence deprecation warnings.
277
277
  Disable runtime checks for `async_hooks`.
278
278
  These will still be enabled dynamically when `async_hooks` is enabled.
279
279
  .
280
+ .It Fl -no-addons
281
+ Disable the `node-addons` exports condition as well as disable loading native
282
+ addons. When `--no-addons` is specified, calling `process.dlopen` or requiring
283
+ a native C++ addon will fail and throw an exception.
284
+ .
285
+ .It Fl -no-global-search-paths
286
+ Do not search modules from global paths.
287
+ .
280
288
  .It Fl -no-warnings
281
289
  Silence all process warnings (including deprecations).
282
290
  .