node-linux-arm64 17.9.1 → 18.0.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 (371) hide show
  1. package/CHANGELOG.md +219 -1570
  2. package/LICENSE +111 -9
  3. package/README.md +4 -2
  4. package/bin/node +0 -0
  5. package/include/node/common.gypi +2 -2
  6. package/include/node/config.gypi +233 -228
  7. package/include/node/libplatform/libplatform.h +0 -11
  8. package/include/node/libplatform/v8-tracing.h +0 -1
  9. package/include/node/node.h +7 -3
  10. package/include/node/node_api.h +17 -0
  11. package/include/node/node_version.h +4 -4
  12. package/include/node/openssl/archs/BSD-x86/asm/crypto/buildinf.h +1 -1
  13. package/include/node/openssl/archs/BSD-x86/asm/include/openssl/crypto.h +0 -2
  14. package/include/node/openssl/archs/BSD-x86/asm/include/openssl/opensslv.h +5 -5
  15. package/include/node/openssl/archs/BSD-x86/asm/include/openssl/ssl.h +0 -11
  16. package/include/node/openssl/archs/BSD-x86/asm/include/openssl/x509.h +4 -4
  17. package/include/node/openssl/archs/BSD-x86/asm_avx2/crypto/buildinf.h +1 -1
  18. package/include/node/openssl/archs/BSD-x86/asm_avx2/include/openssl/crypto.h +0 -2
  19. package/include/node/openssl/archs/BSD-x86/asm_avx2/include/openssl/opensslv.h +5 -5
  20. package/include/node/openssl/archs/BSD-x86/asm_avx2/include/openssl/ssl.h +0 -11
  21. package/include/node/openssl/archs/BSD-x86/asm_avx2/include/openssl/x509.h +4 -4
  22. package/include/node/openssl/archs/BSD-x86/no-asm/crypto/buildinf.h +1 -1
  23. package/include/node/openssl/archs/BSD-x86/no-asm/include/openssl/crypto.h +0 -2
  24. package/include/node/openssl/archs/BSD-x86/no-asm/include/openssl/opensslv.h +5 -5
  25. package/include/node/openssl/archs/BSD-x86/no-asm/include/openssl/ssl.h +0 -11
  26. package/include/node/openssl/archs/BSD-x86/no-asm/include/openssl/x509.h +4 -4
  27. package/include/node/openssl/archs/BSD-x86_64/asm/crypto/buildinf.h +1 -1
  28. package/include/node/openssl/archs/BSD-x86_64/asm/include/openssl/crypto.h +0 -2
  29. package/include/node/openssl/archs/BSD-x86_64/asm/include/openssl/opensslv.h +5 -5
  30. package/include/node/openssl/archs/BSD-x86_64/asm/include/openssl/ssl.h +0 -11
  31. package/include/node/openssl/archs/BSD-x86_64/asm/include/openssl/x509.h +4 -4
  32. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/crypto/buildinf.h +1 -1
  33. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/include/openssl/crypto.h +0 -2
  34. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/include/openssl/opensslv.h +5 -5
  35. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/include/openssl/ssl.h +0 -11
  36. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/include/openssl/x509.h +4 -4
  37. package/include/node/openssl/archs/BSD-x86_64/no-asm/crypto/buildinf.h +1 -1
  38. package/include/node/openssl/archs/BSD-x86_64/no-asm/include/openssl/crypto.h +0 -2
  39. package/include/node/openssl/archs/BSD-x86_64/no-asm/include/openssl/opensslv.h +5 -5
  40. package/include/node/openssl/archs/BSD-x86_64/no-asm/include/openssl/ssl.h +0 -11
  41. package/include/node/openssl/archs/BSD-x86_64/no-asm/include/openssl/x509.h +4 -4
  42. package/include/node/openssl/archs/VC-WIN32/asm/crypto/buildinf.h +1 -1
  43. package/include/node/openssl/archs/VC-WIN32/asm/include/openssl/crypto.h +0 -2
  44. package/include/node/openssl/archs/VC-WIN32/asm/include/openssl/opensslv.h +5 -5
  45. package/include/node/openssl/archs/VC-WIN32/asm/include/openssl/ssl.h +0 -11
  46. package/include/node/openssl/archs/VC-WIN32/asm/include/openssl/x509.h +4 -4
  47. package/include/node/openssl/archs/VC-WIN32/asm_avx2/crypto/buildinf.h +1 -1
  48. package/include/node/openssl/archs/VC-WIN32/asm_avx2/include/openssl/crypto.h +0 -2
  49. package/include/node/openssl/archs/VC-WIN32/asm_avx2/include/openssl/opensslv.h +5 -5
  50. package/include/node/openssl/archs/VC-WIN32/asm_avx2/include/openssl/ssl.h +0 -11
  51. package/include/node/openssl/archs/VC-WIN32/asm_avx2/include/openssl/x509.h +4 -4
  52. package/include/node/openssl/archs/VC-WIN32/no-asm/crypto/buildinf.h +1 -1
  53. package/include/node/openssl/archs/VC-WIN32/no-asm/include/openssl/crypto.h +0 -2
  54. package/include/node/openssl/archs/VC-WIN32/no-asm/include/openssl/opensslv.h +5 -5
  55. package/include/node/openssl/archs/VC-WIN32/no-asm/include/openssl/ssl.h +0 -11
  56. package/include/node/openssl/archs/VC-WIN32/no-asm/include/openssl/x509.h +4 -4
  57. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/crypto/buildinf.h +1 -1
  58. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/include/openssl/crypto.h +0 -2
  59. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/include/openssl/opensslv.h +5 -5
  60. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/include/openssl/ssl.h +0 -11
  61. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/include/openssl/x509.h +4 -4
  62. package/include/node/openssl/archs/VC-WIN64A/asm/crypto/buildinf.h +1 -1
  63. package/include/node/openssl/archs/VC-WIN64A/asm/include/openssl/crypto.h +0 -2
  64. package/include/node/openssl/archs/VC-WIN64A/asm/include/openssl/opensslv.h +5 -5
  65. package/include/node/openssl/archs/VC-WIN64A/asm/include/openssl/ssl.h +0 -11
  66. package/include/node/openssl/archs/VC-WIN64A/asm/include/openssl/x509.h +4 -4
  67. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/crypto/buildinf.h +1 -1
  68. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/include/openssl/crypto.h +0 -2
  69. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/include/openssl/opensslv.h +5 -5
  70. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/include/openssl/ssl.h +0 -11
  71. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/include/openssl/x509.h +4 -4
  72. package/include/node/openssl/archs/VC-WIN64A/no-asm/crypto/buildinf.h +1 -1
  73. package/include/node/openssl/archs/VC-WIN64A/no-asm/include/openssl/crypto.h +0 -2
  74. package/include/node/openssl/archs/VC-WIN64A/no-asm/include/openssl/opensslv.h +5 -5
  75. package/include/node/openssl/archs/VC-WIN64A/no-asm/include/openssl/ssl.h +0 -11
  76. package/include/node/openssl/archs/VC-WIN64A/no-asm/include/openssl/x509.h +4 -4
  77. package/include/node/openssl/archs/aix-gcc/asm/crypto/buildinf.h +1 -1
  78. package/include/node/openssl/archs/aix-gcc/asm/include/openssl/crypto.h +0 -2
  79. package/include/node/openssl/archs/aix-gcc/asm/include/openssl/opensslv.h +5 -5
  80. package/include/node/openssl/archs/aix-gcc/asm/include/openssl/ssl.h +0 -11
  81. package/include/node/openssl/archs/aix-gcc/asm/include/openssl/x509.h +4 -4
  82. package/include/node/openssl/archs/aix-gcc/asm_avx2/crypto/buildinf.h +1 -1
  83. package/include/node/openssl/archs/aix-gcc/asm_avx2/include/openssl/crypto.h +0 -2
  84. package/include/node/openssl/archs/aix-gcc/asm_avx2/include/openssl/opensslv.h +5 -5
  85. package/include/node/openssl/archs/aix-gcc/asm_avx2/include/openssl/ssl.h +0 -11
  86. package/include/node/openssl/archs/aix-gcc/asm_avx2/include/openssl/x509.h +4 -4
  87. package/include/node/openssl/archs/aix-gcc/no-asm/crypto/buildinf.h +1 -1
  88. package/include/node/openssl/archs/aix-gcc/no-asm/include/openssl/crypto.h +0 -2
  89. package/include/node/openssl/archs/aix-gcc/no-asm/include/openssl/opensslv.h +5 -5
  90. package/include/node/openssl/archs/aix-gcc/no-asm/include/openssl/ssl.h +0 -11
  91. package/include/node/openssl/archs/aix-gcc/no-asm/include/openssl/x509.h +4 -4
  92. package/include/node/openssl/archs/aix64-gcc-as/asm/crypto/buildinf.h +1 -1
  93. package/include/node/openssl/archs/aix64-gcc-as/asm/include/openssl/crypto.h +0 -2
  94. package/include/node/openssl/archs/aix64-gcc-as/asm/include/openssl/opensslv.h +5 -5
  95. package/include/node/openssl/archs/aix64-gcc-as/asm/include/openssl/ssl.h +0 -11
  96. package/include/node/openssl/archs/aix64-gcc-as/asm/include/openssl/x509.h +4 -4
  97. package/include/node/openssl/archs/aix64-gcc-as/asm_avx2/crypto/buildinf.h +1 -1
  98. package/include/node/openssl/archs/aix64-gcc-as/asm_avx2/include/openssl/crypto.h +0 -2
  99. package/include/node/openssl/archs/aix64-gcc-as/asm_avx2/include/openssl/opensslv.h +5 -5
  100. package/include/node/openssl/archs/aix64-gcc-as/asm_avx2/include/openssl/ssl.h +0 -11
  101. package/include/node/openssl/archs/aix64-gcc-as/asm_avx2/include/openssl/x509.h +4 -4
  102. package/include/node/openssl/archs/aix64-gcc-as/no-asm/crypto/buildinf.h +1 -1
  103. package/include/node/openssl/archs/aix64-gcc-as/no-asm/include/openssl/crypto.h +0 -2
  104. package/include/node/openssl/archs/aix64-gcc-as/no-asm/include/openssl/opensslv.h +5 -5
  105. package/include/node/openssl/archs/aix64-gcc-as/no-asm/include/openssl/ssl.h +0 -11
  106. package/include/node/openssl/archs/aix64-gcc-as/no-asm/include/openssl/x509.h +4 -4
  107. package/include/node/openssl/archs/darwin-i386-cc/asm/crypto/buildinf.h +1 -1
  108. package/include/node/openssl/archs/darwin-i386-cc/asm/include/openssl/crypto.h +0 -2
  109. package/include/node/openssl/archs/darwin-i386-cc/asm/include/openssl/opensslv.h +5 -5
  110. package/include/node/openssl/archs/darwin-i386-cc/asm/include/openssl/ssl.h +0 -11
  111. package/include/node/openssl/archs/darwin-i386-cc/asm/include/openssl/x509.h +4 -4
  112. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/crypto/buildinf.h +1 -1
  113. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/include/openssl/crypto.h +0 -2
  114. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/include/openssl/opensslv.h +5 -5
  115. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/include/openssl/ssl.h +0 -11
  116. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/include/openssl/x509.h +4 -4
  117. package/include/node/openssl/archs/darwin-i386-cc/no-asm/crypto/buildinf.h +1 -1
  118. package/include/node/openssl/archs/darwin-i386-cc/no-asm/include/openssl/crypto.h +0 -2
  119. package/include/node/openssl/archs/darwin-i386-cc/no-asm/include/openssl/opensslv.h +5 -5
  120. package/include/node/openssl/archs/darwin-i386-cc/no-asm/include/openssl/ssl.h +0 -11
  121. package/include/node/openssl/archs/darwin-i386-cc/no-asm/include/openssl/x509.h +4 -4
  122. package/include/node/openssl/archs/darwin64-arm64-cc/asm/crypto/buildinf.h +1 -1
  123. package/include/node/openssl/archs/darwin64-arm64-cc/asm/include/openssl/crypto.h +0 -2
  124. package/include/node/openssl/archs/darwin64-arm64-cc/asm/include/openssl/opensslv.h +5 -5
  125. package/include/node/openssl/archs/darwin64-arm64-cc/asm/include/openssl/ssl.h +0 -11
  126. package/include/node/openssl/archs/darwin64-arm64-cc/asm/include/openssl/x509.h +4 -4
  127. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/crypto/buildinf.h +1 -1
  128. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/include/openssl/crypto.h +0 -2
  129. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/include/openssl/opensslv.h +5 -5
  130. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/include/openssl/ssl.h +0 -11
  131. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/include/openssl/x509.h +4 -4
  132. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/crypto/buildinf.h +1 -1
  133. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/include/openssl/crypto.h +0 -2
  134. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/include/openssl/opensslv.h +5 -5
  135. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/include/openssl/ssl.h +0 -11
  136. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/include/openssl/x509.h +4 -4
  137. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/crypto/buildinf.h +1 -1
  138. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/include/openssl/crypto.h +0 -2
  139. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/include/openssl/opensslv.h +5 -5
  140. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/include/openssl/ssl.h +0 -11
  141. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/include/openssl/x509.h +4 -4
  142. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/crypto/buildinf.h +1 -1
  143. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/include/openssl/crypto.h +0 -2
  144. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/include/openssl/opensslv.h +5 -5
  145. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/include/openssl/ssl.h +0 -11
  146. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/include/openssl/x509.h +4 -4
  147. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/crypto/buildinf.h +1 -1
  148. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/include/openssl/crypto.h +0 -2
  149. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/include/openssl/opensslv.h +5 -5
  150. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/include/openssl/ssl.h +0 -11
  151. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/include/openssl/x509.h +4 -4
  152. package/include/node/openssl/archs/linux-aarch64/asm/crypto/buildinf.h +1 -1
  153. package/include/node/openssl/archs/linux-aarch64/asm/include/openssl/crypto.h +0 -2
  154. package/include/node/openssl/archs/linux-aarch64/asm/include/openssl/opensslv.h +5 -5
  155. package/include/node/openssl/archs/linux-aarch64/asm/include/openssl/ssl.h +0 -11
  156. package/include/node/openssl/archs/linux-aarch64/asm/include/openssl/x509.h +4 -4
  157. package/include/node/openssl/archs/linux-aarch64/asm_avx2/crypto/buildinf.h +1 -1
  158. package/include/node/openssl/archs/linux-aarch64/asm_avx2/include/openssl/crypto.h +0 -2
  159. package/include/node/openssl/archs/linux-aarch64/asm_avx2/include/openssl/opensslv.h +5 -5
  160. package/include/node/openssl/archs/linux-aarch64/asm_avx2/include/openssl/ssl.h +0 -11
  161. package/include/node/openssl/archs/linux-aarch64/asm_avx2/include/openssl/x509.h +4 -4
  162. package/include/node/openssl/archs/linux-aarch64/no-asm/crypto/buildinf.h +1 -1
  163. package/include/node/openssl/archs/linux-aarch64/no-asm/include/openssl/crypto.h +0 -2
  164. package/include/node/openssl/archs/linux-aarch64/no-asm/include/openssl/opensslv.h +5 -5
  165. package/include/node/openssl/archs/linux-aarch64/no-asm/include/openssl/ssl.h +0 -11
  166. package/include/node/openssl/archs/linux-aarch64/no-asm/include/openssl/x509.h +4 -4
  167. package/include/node/openssl/archs/linux-armv4/asm/crypto/buildinf.h +1 -1
  168. package/include/node/openssl/archs/linux-armv4/asm/include/openssl/crypto.h +0 -2
  169. package/include/node/openssl/archs/linux-armv4/asm/include/openssl/opensslv.h +5 -5
  170. package/include/node/openssl/archs/linux-armv4/asm/include/openssl/ssl.h +0 -11
  171. package/include/node/openssl/archs/linux-armv4/asm/include/openssl/x509.h +4 -4
  172. package/include/node/openssl/archs/linux-armv4/asm_avx2/crypto/buildinf.h +1 -1
  173. package/include/node/openssl/archs/linux-armv4/asm_avx2/include/openssl/crypto.h +0 -2
  174. package/include/node/openssl/archs/linux-armv4/asm_avx2/include/openssl/opensslv.h +5 -5
  175. package/include/node/openssl/archs/linux-armv4/asm_avx2/include/openssl/ssl.h +0 -11
  176. package/include/node/openssl/archs/linux-armv4/asm_avx2/include/openssl/x509.h +4 -4
  177. package/include/node/openssl/archs/linux-armv4/no-asm/crypto/buildinf.h +1 -1
  178. package/include/node/openssl/archs/linux-armv4/no-asm/include/openssl/crypto.h +0 -2
  179. package/include/node/openssl/archs/linux-armv4/no-asm/include/openssl/opensslv.h +5 -5
  180. package/include/node/openssl/archs/linux-armv4/no-asm/include/openssl/ssl.h +0 -11
  181. package/include/node/openssl/archs/linux-armv4/no-asm/include/openssl/x509.h +4 -4
  182. package/include/node/openssl/archs/linux-elf/asm/crypto/buildinf.h +1 -1
  183. package/include/node/openssl/archs/linux-elf/asm/include/openssl/crypto.h +0 -2
  184. package/include/node/openssl/archs/linux-elf/asm/include/openssl/opensslv.h +5 -5
  185. package/include/node/openssl/archs/linux-elf/asm/include/openssl/ssl.h +0 -11
  186. package/include/node/openssl/archs/linux-elf/asm/include/openssl/x509.h +4 -4
  187. package/include/node/openssl/archs/linux-elf/asm_avx2/crypto/buildinf.h +1 -1
  188. package/include/node/openssl/archs/linux-elf/asm_avx2/include/openssl/crypto.h +0 -2
  189. package/include/node/openssl/archs/linux-elf/asm_avx2/include/openssl/opensslv.h +5 -5
  190. package/include/node/openssl/archs/linux-elf/asm_avx2/include/openssl/ssl.h +0 -11
  191. package/include/node/openssl/archs/linux-elf/asm_avx2/include/openssl/x509.h +4 -4
  192. package/include/node/openssl/archs/linux-elf/no-asm/crypto/buildinf.h +1 -1
  193. package/include/node/openssl/archs/linux-elf/no-asm/include/openssl/crypto.h +0 -2
  194. package/include/node/openssl/archs/linux-elf/no-asm/include/openssl/opensslv.h +5 -5
  195. package/include/node/openssl/archs/linux-elf/no-asm/include/openssl/ssl.h +0 -11
  196. package/include/node/openssl/archs/linux-elf/no-asm/include/openssl/x509.h +4 -4
  197. package/include/node/openssl/archs/linux-ppc/asm/crypto/buildinf.h +1 -1
  198. package/include/node/openssl/archs/linux-ppc/asm/include/openssl/crypto.h +0 -2
  199. package/include/node/openssl/archs/linux-ppc/asm/include/openssl/opensslv.h +5 -5
  200. package/include/node/openssl/archs/linux-ppc/asm/include/openssl/ssl.h +0 -11
  201. package/include/node/openssl/archs/linux-ppc/asm/include/openssl/x509.h +4 -4
  202. package/include/node/openssl/archs/linux-ppc/asm_avx2/crypto/buildinf.h +1 -1
  203. package/include/node/openssl/archs/linux-ppc/asm_avx2/include/openssl/crypto.h +0 -2
  204. package/include/node/openssl/archs/linux-ppc/asm_avx2/include/openssl/opensslv.h +5 -5
  205. package/include/node/openssl/archs/linux-ppc/asm_avx2/include/openssl/ssl.h +0 -11
  206. package/include/node/openssl/archs/linux-ppc/asm_avx2/include/openssl/x509.h +4 -4
  207. package/include/node/openssl/archs/linux-ppc/no-asm/crypto/buildinf.h +1 -1
  208. package/include/node/openssl/archs/linux-ppc/no-asm/include/openssl/crypto.h +0 -2
  209. package/include/node/openssl/archs/linux-ppc/no-asm/include/openssl/opensslv.h +5 -5
  210. package/include/node/openssl/archs/linux-ppc/no-asm/include/openssl/ssl.h +0 -11
  211. package/include/node/openssl/archs/linux-ppc/no-asm/include/openssl/x509.h +4 -4
  212. package/include/node/openssl/archs/linux-ppc64/asm/crypto/buildinf.h +1 -1
  213. package/include/node/openssl/archs/linux-ppc64/asm/include/openssl/crypto.h +0 -2
  214. package/include/node/openssl/archs/linux-ppc64/asm/include/openssl/opensslv.h +5 -5
  215. package/include/node/openssl/archs/linux-ppc64/asm/include/openssl/ssl.h +0 -11
  216. package/include/node/openssl/archs/linux-ppc64/asm/include/openssl/x509.h +4 -4
  217. package/include/node/openssl/archs/linux-ppc64/asm_avx2/crypto/buildinf.h +1 -1
  218. package/include/node/openssl/archs/linux-ppc64/asm_avx2/include/openssl/crypto.h +0 -2
  219. package/include/node/openssl/archs/linux-ppc64/asm_avx2/include/openssl/opensslv.h +5 -5
  220. package/include/node/openssl/archs/linux-ppc64/asm_avx2/include/openssl/ssl.h +0 -11
  221. package/include/node/openssl/archs/linux-ppc64/asm_avx2/include/openssl/x509.h +4 -4
  222. package/include/node/openssl/archs/linux-ppc64/no-asm/crypto/buildinf.h +1 -1
  223. package/include/node/openssl/archs/linux-ppc64/no-asm/include/openssl/crypto.h +0 -2
  224. package/include/node/openssl/archs/linux-ppc64/no-asm/include/openssl/opensslv.h +5 -5
  225. package/include/node/openssl/archs/linux-ppc64/no-asm/include/openssl/ssl.h +0 -11
  226. package/include/node/openssl/archs/linux-ppc64/no-asm/include/openssl/x509.h +4 -4
  227. package/include/node/openssl/archs/linux-ppc64le/asm/crypto/buildinf.h +1 -1
  228. package/include/node/openssl/archs/linux-ppc64le/asm/include/openssl/crypto.h +0 -2
  229. package/include/node/openssl/archs/linux-ppc64le/asm/include/openssl/opensslv.h +5 -5
  230. package/include/node/openssl/archs/linux-ppc64le/asm/include/openssl/ssl.h +0 -11
  231. package/include/node/openssl/archs/linux-ppc64le/asm/include/openssl/x509.h +4 -4
  232. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/crypto/buildinf.h +1 -1
  233. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/include/openssl/crypto.h +0 -2
  234. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/include/openssl/opensslv.h +5 -5
  235. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/include/openssl/ssl.h +0 -11
  236. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/include/openssl/x509.h +4 -4
  237. package/include/node/openssl/archs/linux-ppc64le/no-asm/crypto/buildinf.h +1 -1
  238. package/include/node/openssl/archs/linux-ppc64le/no-asm/include/openssl/crypto.h +0 -2
  239. package/include/node/openssl/archs/linux-ppc64le/no-asm/include/openssl/opensslv.h +5 -5
  240. package/include/node/openssl/archs/linux-ppc64le/no-asm/include/openssl/ssl.h +0 -11
  241. package/include/node/openssl/archs/linux-ppc64le/no-asm/include/openssl/x509.h +4 -4
  242. package/include/node/openssl/archs/linux-x86_64/asm/crypto/buildinf.h +1 -1
  243. package/include/node/openssl/archs/linux-x86_64/asm/include/openssl/crypto.h +0 -2
  244. package/include/node/openssl/archs/linux-x86_64/asm/include/openssl/opensslv.h +5 -5
  245. package/include/node/openssl/archs/linux-x86_64/asm/include/openssl/ssl.h +0 -11
  246. package/include/node/openssl/archs/linux-x86_64/asm/include/openssl/x509.h +4 -4
  247. package/include/node/openssl/archs/linux-x86_64/asm_avx2/crypto/buildinf.h +1 -1
  248. package/include/node/openssl/archs/linux-x86_64/asm_avx2/include/openssl/crypto.h +0 -2
  249. package/include/node/openssl/archs/linux-x86_64/asm_avx2/include/openssl/opensslv.h +5 -5
  250. package/include/node/openssl/archs/linux-x86_64/asm_avx2/include/openssl/ssl.h +0 -11
  251. package/include/node/openssl/archs/linux-x86_64/asm_avx2/include/openssl/x509.h +4 -4
  252. package/include/node/openssl/archs/linux-x86_64/no-asm/crypto/buildinf.h +1 -1
  253. package/include/node/openssl/archs/linux-x86_64/no-asm/include/openssl/crypto.h +0 -2
  254. package/include/node/openssl/archs/linux-x86_64/no-asm/include/openssl/opensslv.h +5 -5
  255. package/include/node/openssl/archs/linux-x86_64/no-asm/include/openssl/ssl.h +0 -11
  256. package/include/node/openssl/archs/linux-x86_64/no-asm/include/openssl/x509.h +4 -4
  257. package/include/node/openssl/archs/linux32-s390x/asm/crypto/buildinf.h +1 -1
  258. package/include/node/openssl/archs/linux32-s390x/asm/include/openssl/crypto.h +0 -2
  259. package/include/node/openssl/archs/linux32-s390x/asm/include/openssl/opensslv.h +5 -5
  260. package/include/node/openssl/archs/linux32-s390x/asm/include/openssl/ssl.h +0 -11
  261. package/include/node/openssl/archs/linux32-s390x/asm/include/openssl/x509.h +4 -4
  262. package/include/node/openssl/archs/linux32-s390x/asm_avx2/crypto/buildinf.h +1 -1
  263. package/include/node/openssl/archs/linux32-s390x/asm_avx2/include/openssl/crypto.h +0 -2
  264. package/include/node/openssl/archs/linux32-s390x/asm_avx2/include/openssl/opensslv.h +5 -5
  265. package/include/node/openssl/archs/linux32-s390x/asm_avx2/include/openssl/ssl.h +0 -11
  266. package/include/node/openssl/archs/linux32-s390x/asm_avx2/include/openssl/x509.h +4 -4
  267. package/include/node/openssl/archs/linux32-s390x/no-asm/crypto/buildinf.h +1 -1
  268. package/include/node/openssl/archs/linux32-s390x/no-asm/include/openssl/crypto.h +0 -2
  269. package/include/node/openssl/archs/linux32-s390x/no-asm/include/openssl/opensslv.h +5 -5
  270. package/include/node/openssl/archs/linux32-s390x/no-asm/include/openssl/ssl.h +0 -11
  271. package/include/node/openssl/archs/linux32-s390x/no-asm/include/openssl/x509.h +4 -4
  272. package/include/node/openssl/archs/linux64-mips64/asm/crypto/buildinf.h +1 -1
  273. package/include/node/openssl/archs/linux64-mips64/asm/include/openssl/crypto.h +0 -2
  274. package/include/node/openssl/archs/linux64-mips64/asm/include/openssl/opensslv.h +5 -5
  275. package/include/node/openssl/archs/linux64-mips64/asm/include/openssl/ssl.h +0 -11
  276. package/include/node/openssl/archs/linux64-mips64/asm/include/openssl/x509.h +4 -4
  277. package/include/node/openssl/archs/linux64-mips64/asm_avx2/crypto/buildinf.h +1 -1
  278. package/include/node/openssl/archs/linux64-mips64/asm_avx2/include/openssl/crypto.h +0 -2
  279. package/include/node/openssl/archs/linux64-mips64/asm_avx2/include/openssl/opensslv.h +5 -5
  280. package/include/node/openssl/archs/linux64-mips64/asm_avx2/include/openssl/ssl.h +0 -11
  281. package/include/node/openssl/archs/linux64-mips64/asm_avx2/include/openssl/x509.h +4 -4
  282. package/include/node/openssl/archs/linux64-mips64/no-asm/crypto/buildinf.h +1 -1
  283. package/include/node/openssl/archs/linux64-mips64/no-asm/include/openssl/crypto.h +0 -2
  284. package/include/node/openssl/archs/linux64-mips64/no-asm/include/openssl/opensslv.h +5 -5
  285. package/include/node/openssl/archs/linux64-mips64/no-asm/include/openssl/ssl.h +0 -11
  286. package/include/node/openssl/archs/linux64-mips64/no-asm/include/openssl/x509.h +4 -4
  287. package/include/node/openssl/archs/linux64-riscv64/no-asm/crypto/buildinf.h +1 -1
  288. package/include/node/openssl/archs/linux64-riscv64/no-asm/include/openssl/crypto.h +0 -2
  289. package/include/node/openssl/archs/linux64-riscv64/no-asm/include/openssl/opensslv.h +5 -5
  290. package/include/node/openssl/archs/linux64-riscv64/no-asm/include/openssl/ssl.h +0 -11
  291. package/include/node/openssl/archs/linux64-riscv64/no-asm/include/openssl/x509.h +4 -4
  292. package/include/node/openssl/archs/linux64-s390x/asm/crypto/buildinf.h +1 -1
  293. package/include/node/openssl/archs/linux64-s390x/asm/include/openssl/crypto.h +0 -2
  294. package/include/node/openssl/archs/linux64-s390x/asm/include/openssl/opensslv.h +5 -5
  295. package/include/node/openssl/archs/linux64-s390x/asm/include/openssl/ssl.h +0 -11
  296. package/include/node/openssl/archs/linux64-s390x/asm/include/openssl/x509.h +4 -4
  297. package/include/node/openssl/archs/linux64-s390x/asm_avx2/crypto/buildinf.h +1 -1
  298. package/include/node/openssl/archs/linux64-s390x/asm_avx2/include/openssl/crypto.h +0 -2
  299. package/include/node/openssl/archs/linux64-s390x/asm_avx2/include/openssl/opensslv.h +5 -5
  300. package/include/node/openssl/archs/linux64-s390x/asm_avx2/include/openssl/ssl.h +0 -11
  301. package/include/node/openssl/archs/linux64-s390x/asm_avx2/include/openssl/x509.h +4 -4
  302. package/include/node/openssl/archs/linux64-s390x/no-asm/crypto/buildinf.h +1 -1
  303. package/include/node/openssl/archs/linux64-s390x/no-asm/include/openssl/crypto.h +0 -2
  304. package/include/node/openssl/archs/linux64-s390x/no-asm/include/openssl/opensslv.h +5 -5
  305. package/include/node/openssl/archs/linux64-s390x/no-asm/include/openssl/ssl.h +0 -11
  306. package/include/node/openssl/archs/linux64-s390x/no-asm/include/openssl/x509.h +4 -4
  307. package/include/node/openssl/archs/solaris-x86-gcc/asm/crypto/buildinf.h +1 -1
  308. package/include/node/openssl/archs/solaris-x86-gcc/asm/include/openssl/crypto.h +0 -2
  309. package/include/node/openssl/archs/solaris-x86-gcc/asm/include/openssl/opensslv.h +5 -5
  310. package/include/node/openssl/archs/solaris-x86-gcc/asm/include/openssl/ssl.h +0 -11
  311. package/include/node/openssl/archs/solaris-x86-gcc/asm/include/openssl/x509.h +4 -4
  312. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/crypto/buildinf.h +1 -1
  313. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/include/openssl/crypto.h +0 -2
  314. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/include/openssl/opensslv.h +5 -5
  315. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/include/openssl/ssl.h +0 -11
  316. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/include/openssl/x509.h +4 -4
  317. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/crypto/buildinf.h +1 -1
  318. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/include/openssl/crypto.h +0 -2
  319. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/include/openssl/opensslv.h +5 -5
  320. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/include/openssl/ssl.h +0 -11
  321. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/include/openssl/x509.h +4 -4
  322. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/crypto/buildinf.h +1 -1
  323. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/include/openssl/crypto.h +0 -2
  324. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/include/openssl/opensslv.h +5 -5
  325. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/include/openssl/ssl.h +0 -11
  326. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/include/openssl/x509.h +4 -4
  327. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/crypto/buildinf.h +1 -1
  328. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/include/openssl/crypto.h +0 -2
  329. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/include/openssl/opensslv.h +5 -5
  330. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/include/openssl/ssl.h +0 -11
  331. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/include/openssl/x509.h +4 -4
  332. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/crypto/buildinf.h +1 -1
  333. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/include/openssl/crypto.h +0 -2
  334. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/include/openssl/opensslv.h +5 -5
  335. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/include/openssl/ssl.h +0 -11
  336. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/include/openssl/x509.h +4 -4
  337. package/include/node/openssl/ecerr.h +1 -2
  338. package/include/node/v8-array-buffer.h +2 -2
  339. package/include/node/v8-callbacks.h +26 -6
  340. package/include/node/v8-context.h +3 -14
  341. package/include/node/v8-data.h +15 -0
  342. package/include/node/v8-debug.h +21 -4
  343. package/include/node/v8-embedder-heap.h +10 -30
  344. package/include/node/v8-embedder-state-scope.h +51 -0
  345. package/include/node/v8-exception.h +0 -7
  346. package/include/node/v8-function.h +3 -0
  347. package/include/node/v8-initialization.h +64 -31
  348. package/include/node/v8-internal.h +189 -102
  349. package/include/node/v8-isolate.h +49 -2
  350. package/include/node/v8-local-handle.h +0 -4
  351. package/include/node/v8-locker.h +2 -1
  352. package/include/node/v8-message.h +19 -44
  353. package/include/node/v8-object.h +11 -6
  354. package/include/node/v8-platform.h +365 -6
  355. package/include/node/v8-primitive.h +14 -6
  356. package/include/node/v8-profiler.h +78 -2
  357. package/include/node/v8-script.h +27 -51
  358. package/include/node/v8-snapshot.h +0 -2
  359. package/include/node/v8-statistics.h +2 -0
  360. package/include/node/v8-template.h +31 -4
  361. package/include/node/v8-traced-handle.h +39 -224
  362. package/include/node/v8-unwinder.h +10 -7
  363. package/include/node/v8-value-serializer.h +32 -2
  364. package/include/node/v8-version.h +4 -4
  365. package/include/node/v8-wasm.h +13 -1
  366. package/include/node/v8-weak-callback-info.h +20 -6
  367. package/include/node/v8.h +0 -1
  368. package/include/node/v8config.h +56 -11
  369. package/package.json +1 -1
  370. package/share/doc/node/gdbinit +14 -6
  371. package/share/man/man1/node.1 +7 -3
@@ -46,8 +46,6 @@ class String;
46
46
  template <class F>
47
47
  class Traced;
48
48
  template <class F>
49
- class TracedGlobal;
50
- template <class F>
51
49
  class TracedReference;
52
50
  class TracedReferenceBase;
53
51
  class Utils;
@@ -312,8 +310,6 @@ class Local {
312
310
  template <class F>
313
311
  friend class Traced;
314
312
  template <class F>
315
- friend class TracedGlobal;
316
- template <class F>
317
313
  friend class BasicTracedReference;
318
314
  template <class F>
319
315
  friend class TracedReference;
@@ -127,8 +127,9 @@ class V8_EXPORT Locker {
127
127
  * The current implementation is quite confusing and leads to unexpected
128
128
  * results if anybody uses v8::Locker in the current process.
129
129
  */
130
+ V8_DEPRECATE_SOON("This method will be removed.")
130
131
  static bool WasEverUsed();
131
- V8_DEPRECATE_SOON("Use WasEverUsed instead")
132
+ V8_DEPRECATED("Use WasEverUsed instead")
132
133
  static bool IsActive();
133
134
 
134
135
  // Disallow copying and assigning.
@@ -11,6 +11,7 @@
11
11
 
12
12
  #include "v8-local-handle.h" // NOLINT(build/include_directory)
13
13
  #include "v8-maybe.h" // NOLINT(build/include_directory)
14
+ #include "v8-primitive.h" // NOLINT(build/include_directory)
14
15
  #include "v8config.h" // NOLINT(build/include_directory)
15
16
 
16
17
  namespace v8 {
@@ -60,38 +61,15 @@ class ScriptOriginOptions {
60
61
  */
61
62
  class V8_EXPORT ScriptOrigin {
62
63
  public:
63
- #if defined(_MSC_VER) && _MSC_VER >= 1910 /* Disable on VS2015 */
64
- V8_DEPRECATE_SOON("Use constructor with primitive C++ types")
65
- #endif
66
- ScriptOrigin(
67
- Local<Value> resource_name, Local<Integer> resource_line_offset,
68
- Local<Integer> resource_column_offset,
69
- Local<Boolean> resource_is_shared_cross_origin = Local<Boolean>(),
70
- Local<Integer> script_id = Local<Integer>(),
71
- Local<Value> source_map_url = Local<Value>(),
72
- Local<Boolean> resource_is_opaque = Local<Boolean>(),
73
- Local<Boolean> is_wasm = Local<Boolean>(),
74
- Local<Boolean> is_module = Local<Boolean>(),
75
- Local<PrimitiveArray> host_defined_options = Local<PrimitiveArray>());
76
- #if defined(_MSC_VER) && _MSC_VER >= 1910 /* Disable on VS2015 */
77
- V8_DEPRECATE_SOON("Use constructor that takes an isolate")
78
- #endif
79
- explicit ScriptOrigin(
80
- Local<Value> resource_name, int resource_line_offset = 0,
81
- int resource_column_offset = 0,
82
- bool resource_is_shared_cross_origin = false, int script_id = -1,
83
- Local<Value> source_map_url = Local<Value>(),
84
- bool resource_is_opaque = false, bool is_wasm = false,
85
- bool is_module = false,
86
- Local<PrimitiveArray> host_defined_options = Local<PrimitiveArray>());
87
- V8_INLINE ScriptOrigin(
88
- Isolate* isolate, Local<Value> resource_name,
89
- int resource_line_offset = 0, int resource_column_offset = 0,
90
- bool resource_is_shared_cross_origin = false, int script_id = -1,
91
- Local<Value> source_map_url = Local<Value>(),
92
- bool resource_is_opaque = false, bool is_wasm = false,
93
- bool is_module = false,
94
- Local<PrimitiveArray> host_defined_options = Local<PrimitiveArray>())
64
+ V8_INLINE ScriptOrigin(Isolate* isolate, Local<Value> resource_name,
65
+ int resource_line_offset = 0,
66
+ int resource_column_offset = 0,
67
+ bool resource_is_shared_cross_origin = false,
68
+ int script_id = -1,
69
+ Local<Value> source_map_url = Local<Value>(),
70
+ bool resource_is_opaque = false, bool is_wasm = false,
71
+ bool is_module = false,
72
+ Local<Data> host_defined_options = Local<Data>())
95
73
  : isolate_(isolate),
96
74
  resource_name_(resource_name),
97
75
  resource_line_offset_(resource_line_offset),
@@ -100,23 +78,22 @@ class V8_EXPORT ScriptOrigin {
100
78
  is_module),
101
79
  script_id_(script_id),
102
80
  source_map_url_(source_map_url),
103
- host_defined_options_(host_defined_options) {}
81
+ host_defined_options_(host_defined_options) {
82
+ VerifyHostDefinedOptions();
83
+ }
104
84
 
105
85
  V8_INLINE Local<Value> ResourceName() const;
106
- V8_DEPRECATE_SOON("Use getter with primitive C++ types.")
107
- V8_INLINE Local<Integer> ResourceLineOffset() const;
108
- V8_DEPRECATE_SOON("Use getter with primitive C++ types.")
109
- V8_INLINE Local<Integer> ResourceColumnOffset() const;
110
- V8_DEPRECATE_SOON("Use getter with primitive C++ types.")
111
- V8_INLINE Local<Integer> ScriptID() const;
112
86
  V8_INLINE int LineOffset() const;
113
87
  V8_INLINE int ColumnOffset() const;
114
88
  V8_INLINE int ScriptId() const;
115
89
  V8_INLINE Local<Value> SourceMapUrl() const;
116
- V8_INLINE Local<PrimitiveArray> HostDefinedOptions() const;
90
+ V8_DEPRECATE_SOON("Use GetHostDefinedOptions")
91
+ Local<PrimitiveArray> HostDefinedOptions() const;
92
+ V8_INLINE Local<Data> GetHostDefinedOptions() const;
117
93
  V8_INLINE ScriptOriginOptions Options() const { return options_; }
118
94
 
119
95
  private:
96
+ void VerifyHostDefinedOptions() const;
120
97
  Isolate* isolate_;
121
98
  Local<Value> resource_name_;
122
99
  int resource_line_offset_;
@@ -124,7 +101,7 @@ class V8_EXPORT ScriptOrigin {
124
101
  ScriptOriginOptions options_;
125
102
  int script_id_;
126
103
  Local<Value> source_map_url_;
127
- Local<PrimitiveArray> host_defined_options_;
104
+ Local<Data> host_defined_options_;
128
105
  };
129
106
 
130
107
  /**
@@ -212,8 +189,6 @@ class V8_EXPORT Message {
212
189
  bool IsSharedCrossOrigin() const;
213
190
  bool IsOpaque() const;
214
191
 
215
- V8_DEPRECATE_SOON("Use the version that takes a std::ostream&.")
216
- static void PrintCurrentStackTrace(Isolate* isolate, FILE* out);
217
192
  static void PrintCurrentStackTrace(Isolate* isolate, std::ostream& out);
218
193
 
219
194
  static const int kNoLineNumberInfo = 0;
@@ -224,7 +199,7 @@ class V8_EXPORT Message {
224
199
 
225
200
  Local<Value> ScriptOrigin::ResourceName() const { return resource_name_; }
226
201
 
227
- Local<PrimitiveArray> ScriptOrigin::HostDefinedOptions() const {
202
+ Local<Data> ScriptOrigin::GetHostDefinedOptions() const {
228
203
  return host_defined_options_;
229
204
  }
230
205
 
@@ -493,7 +493,7 @@ class V8_EXPORT Object : public Value {
493
493
  return object.val_->GetAlignedPointerFromInternalField(index);
494
494
  }
495
495
 
496
- /** Same as above, but works for TracedGlobal. */
496
+ /** Same as above, but works for TracedReference. */
497
497
  V8_INLINE static void* GetAlignedPointerFromInternalField(
498
498
  const BasicTracedReference<Object>& object, int index) {
499
499
  return object->GetAlignedPointerFromInternalField(index);
@@ -594,12 +594,17 @@ class V8_EXPORT Object : public Value {
594
594
  /**
595
595
  * Returns the context in which the object was created.
596
596
  */
597
- V8_DEPRECATE_SOON("Use MaybeLocal<Context> GetCreationContext()")
597
+ V8_DEPRECATED("Use MaybeLocal<Context> GetCreationContext()")
598
598
  Local<Context> CreationContext();
599
599
  MaybeLocal<Context> GetCreationContext();
600
600
 
601
+ /**
602
+ * Shortcut for GetCreationContext().ToLocalChecked().
603
+ **/
604
+ Local<Context> GetCreationContextChecked();
605
+
601
606
  /** Same as above, but works for Persistents */
602
- V8_DEPRECATE_SOON(
607
+ V8_DEPRECATED(
603
608
  "Use MaybeLocal<Context> GetCreationContext(const "
604
609
  "PersistentBase<Object>& object)")
605
610
  static Local<Context> CreationContext(const PersistentBase<Object>& object);
@@ -730,7 +735,7 @@ Local<Value> Object::GetInternalField(int index) {
730
735
  }
731
736
 
732
737
  void* Object::GetAlignedPointerFromInternalField(int index) {
733
- #ifndef V8_ENABLE_CHECKS
738
+ #if !defined(V8_ENABLE_CHECKS)
734
739
  using A = internal::Address;
735
740
  using I = internal::Internals;
736
741
  A obj = *reinterpret_cast<A*>(this);
@@ -739,10 +744,10 @@ void* Object::GetAlignedPointerFromInternalField(int index) {
739
744
  auto instance_type = I::GetInstanceType(obj);
740
745
  if (v8::internal::CanHaveInternalField(instance_type)) {
741
746
  int offset = I::kJSObjectHeaderSize + (I::kEmbedderDataSlotSize * index);
742
- #ifdef V8_HEAP_SANDBOX
747
+ #ifdef V8_SANDBOXED_EXTERNAL_POINTERS
743
748
  offset += I::kEmbedderDataSlotRawPayloadOffset;
744
749
  #endif
745
- internal::Isolate* isolate = I::GetIsolateForHeapSandbox(obj);
750
+ internal::Isolate* isolate = I::GetIsolateForSandbox(obj);
746
751
  A value = I::ReadExternalPointerField(
747
752
  isolate, obj, offset, internal::kEmbedderDataSlotPayloadTag);
748
753
  return reinterpret_cast<void*>(value);
@@ -401,6 +401,8 @@ class PageAllocator {
401
401
  // this is used to set the MAP_JIT flag on Apple Silicon.
402
402
  // TODO(jkummerow): Remove this when Wasm has a platform-independent
403
403
  // w^x implementation.
404
+ // TODO(saelo): Remove this once all JIT pages are allocated through the
405
+ // VirtualAddressSpace API.
404
406
  kNoAccessWillJitLater
405
407
  };
406
408
 
@@ -444,13 +446,7 @@ class PageAllocator {
444
446
  * zero-initialized again. The memory must have been previously allocated by a
445
447
  * call to AllocatePages. Returns true on success, false otherwise.
446
448
  */
447
- #ifdef V8_VIRTUAL_MEMORY_CAGE
448
- // Implementing this API is required when the virtual memory cage is enabled.
449
449
  virtual bool DecommitPages(void* address, size_t size) = 0;
450
- #else
451
- // Otherwise, it is optional for now.
452
- virtual bool DecommitPages(void* address, size_t size) { return false; }
453
- #endif
454
450
 
455
451
  /**
456
452
  * INTERNAL ONLY: This interface has not been stabilised and may change
@@ -516,6 +512,349 @@ class PageAllocator {
516
512
  virtual bool CanAllocateSharedPages() { return false; }
517
513
  };
518
514
 
515
+ // Opaque type representing a handle to a shared memory region.
516
+ using PlatformSharedMemoryHandle = intptr_t;
517
+ static constexpr PlatformSharedMemoryHandle kInvalidSharedMemoryHandle = -1;
518
+
519
+ // Conversion routines from the platform-dependent shared memory identifiers
520
+ // into the opaque PlatformSharedMemoryHandle type. These use the underlying
521
+ // types (e.g. unsigned int) instead of the typedef'd ones (e.g. mach_port_t)
522
+ // to avoid pulling in large OS header files into this header file. Instead,
523
+ // the users of these routines are expected to include the respecitve OS
524
+ // headers in addition to this one.
525
+ #if V8_OS_MACOS
526
+ // Convert between a shared memory handle and a mach_port_t referencing a memory
527
+ // entry object.
528
+ inline PlatformSharedMemoryHandle SharedMemoryHandleFromMachMemoryEntry(
529
+ unsigned int port) {
530
+ return static_cast<PlatformSharedMemoryHandle>(port);
531
+ }
532
+ inline unsigned int MachMemoryEntryFromSharedMemoryHandle(
533
+ PlatformSharedMemoryHandle handle) {
534
+ return static_cast<unsigned int>(handle);
535
+ }
536
+ #elif V8_OS_FUCHSIA
537
+ // Convert between a shared memory handle and a zx_handle_t to a VMO.
538
+ inline PlatformSharedMemoryHandle SharedMemoryHandleFromVMO(uint32_t handle) {
539
+ return static_cast<PlatformSharedMemoryHandle>(handle);
540
+ }
541
+ inline uint32_t VMOFromSharedMemoryHandle(PlatformSharedMemoryHandle handle) {
542
+ return static_cast<uint32_t>(handle);
543
+ }
544
+ #elif V8_OS_WIN
545
+ // Convert between a shared memory handle and a Windows HANDLE to a file mapping
546
+ // object.
547
+ inline PlatformSharedMemoryHandle SharedMemoryHandleFromFileMapping(
548
+ void* handle) {
549
+ return reinterpret_cast<PlatformSharedMemoryHandle>(handle);
550
+ }
551
+ inline void* FileMappingFromSharedMemoryHandle(
552
+ PlatformSharedMemoryHandle handle) {
553
+ return reinterpret_cast<void*>(handle);
554
+ }
555
+ #else
556
+ // Convert between a shared memory handle and a file descriptor.
557
+ inline PlatformSharedMemoryHandle SharedMemoryHandleFromFileDescriptor(int fd) {
558
+ return static_cast<PlatformSharedMemoryHandle>(fd);
559
+ }
560
+ inline int FileDescriptorFromSharedMemoryHandle(
561
+ PlatformSharedMemoryHandle handle) {
562
+ return static_cast<int>(handle);
563
+ }
564
+ #endif
565
+
566
+ /**
567
+ * Possible permissions for memory pages.
568
+ */
569
+ enum class PagePermissions {
570
+ kNoAccess,
571
+ kRead,
572
+ kReadWrite,
573
+ kReadWriteExecute,
574
+ kReadExecute,
575
+ };
576
+
577
+ /**
578
+ * Class to manage a virtual memory address space.
579
+ *
580
+ * This class represents a contiguous region of virtual address space in which
581
+ * sub-spaces and (private or shared) memory pages can be allocated, freed, and
582
+ * modified. This interface is meant to eventually replace the PageAllocator
583
+ * interface, and can be used as an alternative in the meantime.
584
+ *
585
+ * This API is not yet stable and may change without notice!
586
+ */
587
+ class VirtualAddressSpace {
588
+ public:
589
+ using Address = uintptr_t;
590
+
591
+ VirtualAddressSpace(size_t page_size, size_t allocation_granularity,
592
+ Address base, size_t size,
593
+ PagePermissions max_page_permissions)
594
+ : page_size_(page_size),
595
+ allocation_granularity_(allocation_granularity),
596
+ base_(base),
597
+ size_(size),
598
+ max_page_permissions_(max_page_permissions) {}
599
+
600
+ virtual ~VirtualAddressSpace() = default;
601
+
602
+ /**
603
+ * The page size used inside this space. Guaranteed to be a power of two.
604
+ * Used as granularity for all page-related operations except for allocation,
605
+ * which use the allocation_granularity(), see below.
606
+ *
607
+ * \returns the page size in bytes.
608
+ */
609
+ size_t page_size() const { return page_size_; }
610
+
611
+ /**
612
+ * The granularity of page allocations and, by extension, of subspace
613
+ * allocations. This is guaranteed to be a power of two and a multiple of the
614
+ * page_size(). In practice, this is equal to the page size on most OSes, but
615
+ * on Windows it is usually 64KB, while the page size is 4KB.
616
+ *
617
+ * \returns the allocation granularity in bytes.
618
+ */
619
+ size_t allocation_granularity() const { return allocation_granularity_; }
620
+
621
+ /**
622
+ * The base address of the address space managed by this instance.
623
+ *
624
+ * \returns the base address of this address space.
625
+ */
626
+ Address base() const { return base_; }
627
+
628
+ /**
629
+ * The size of the address space managed by this instance.
630
+ *
631
+ * \returns the size of this address space in bytes.
632
+ */
633
+ size_t size() const { return size_; }
634
+
635
+ /**
636
+ * The maximum page permissions that pages allocated inside this space can
637
+ * obtain.
638
+ *
639
+ * \returns the maximum page permissions.
640
+ */
641
+ PagePermissions max_page_permissions() const { return max_page_permissions_; }
642
+
643
+ /**
644
+ * Sets the random seed so that GetRandomPageAddress() will generate
645
+ * repeatable sequences of random addresses.
646
+ *
647
+ * \param The seed for the PRNG.
648
+ */
649
+ virtual void SetRandomSeed(int64_t seed) = 0;
650
+
651
+ /**
652
+ * Returns a random address inside this address space, suitable for page
653
+ * allocations hints.
654
+ *
655
+ * \returns a random address aligned to allocation_granularity().
656
+ */
657
+ virtual Address RandomPageAddress() = 0;
658
+
659
+ /**
660
+ * Allocates private memory pages with the given alignment and permissions.
661
+ *
662
+ * \param hint If nonzero, the allocation is attempted to be placed at the
663
+ * given address first. If that fails, the allocation is attempted to be
664
+ * placed elsewhere, possibly nearby, but that is not guaranteed. Specifying
665
+ * zero for the hint always causes this function to choose a random address.
666
+ * The hint, if specified, must be aligned to the specified alignment.
667
+ *
668
+ * \param size The size of the allocation in bytes. Must be a multiple of the
669
+ * allocation_granularity().
670
+ *
671
+ * \param alignment The alignment of the allocation in bytes. Must be a
672
+ * multiple of the allocation_granularity() and should be a power of two.
673
+ *
674
+ * \param permissions The page permissions of the newly allocated pages.
675
+ *
676
+ * \returns the start address of the allocated pages on success, zero on
677
+ * failure.
678
+ */
679
+ static constexpr Address kNoHint = 0;
680
+ virtual V8_WARN_UNUSED_RESULT Address
681
+ AllocatePages(Address hint, size_t size, size_t alignment,
682
+ PagePermissions permissions) = 0;
683
+
684
+ /**
685
+ * Frees previously allocated pages.
686
+ *
687
+ * This function will terminate the process on failure as this implies a bug
688
+ * in the client. As such, there is no return value.
689
+ *
690
+ * \param address The start address of the pages to free. This address must
691
+ * have been obtained through a call to AllocatePages.
692
+ *
693
+ * \param size The size in bytes of the region to free. This must match the
694
+ * size passed to AllocatePages when the pages were allocated.
695
+ */
696
+ virtual void FreePages(Address address, size_t size) = 0;
697
+
698
+ /**
699
+ * Sets permissions of all allocated pages in the given range.
700
+ *
701
+ * \param address The start address of the range. Must be aligned to
702
+ * page_size().
703
+ *
704
+ * \param size The size in bytes of the range. Must be a multiple
705
+ * of page_size().
706
+ *
707
+ * \param permissions The new permissions for the range.
708
+ *
709
+ * \returns true on success, false otherwise.
710
+ */
711
+ virtual V8_WARN_UNUSED_RESULT bool SetPagePermissions(
712
+ Address address, size_t size, PagePermissions permissions) = 0;
713
+
714
+ /**
715
+ * Creates a guard region at the specified address.
716
+ *
717
+ * Guard regions are guaranteed to cause a fault when accessed and generally
718
+ * do not count towards any memory consumption limits. Further, allocating
719
+ * guard regions can usually not fail in subspaces if the region does not
720
+ * overlap with another region, subspace, or page allocation.
721
+ *
722
+ * \param address The start address of the guard region. Must be aligned to
723
+ * the allocation_granularity().
724
+ *
725
+ * \param size The size of the guard region in bytes. Must be a multiple of
726
+ * the allocation_granularity().
727
+ *
728
+ * \returns true on success, false otherwise.
729
+ */
730
+ virtual V8_WARN_UNUSED_RESULT bool AllocateGuardRegion(Address address,
731
+ size_t size) = 0;
732
+
733
+ /**
734
+ * Frees an existing guard region.
735
+ *
736
+ * This function will terminate the process on failure as this implies a bug
737
+ * in the client. As such, there is no return value.
738
+ *
739
+ * \param address The start address of the guard region to free. This address
740
+ * must have previously been used as address parameter in a successful
741
+ * invocation of AllocateGuardRegion.
742
+ *
743
+ * \param size The size in bytes of the guard region to free. This must match
744
+ * the size passed to AllocateGuardRegion when the region was created.
745
+ */
746
+ virtual void FreeGuardRegion(Address address, size_t size) = 0;
747
+
748
+ /**
749
+ * Allocates shared memory pages with the given permissions.
750
+ *
751
+ * \param hint Placement hint. See AllocatePages.
752
+ *
753
+ * \param size The size of the allocation in bytes. Must be a multiple of the
754
+ * allocation_granularity().
755
+ *
756
+ * \param permissions The page permissions of the newly allocated pages.
757
+ *
758
+ * \param handle A platform-specific handle to a shared memory object. See
759
+ * the SharedMemoryHandleFromX routines above for ways to obtain these.
760
+ *
761
+ * \param offset The offset in the shared memory object at which the mapping
762
+ * should start. Must be a multiple of the allocation_granularity().
763
+ *
764
+ * \returns the start address of the allocated pages on success, zero on
765
+ * failure.
766
+ */
767
+ virtual V8_WARN_UNUSED_RESULT Address
768
+ AllocateSharedPages(Address hint, size_t size, PagePermissions permissions,
769
+ PlatformSharedMemoryHandle handle, uint64_t offset) = 0;
770
+
771
+ /**
772
+ * Frees previously allocated shared pages.
773
+ *
774
+ * This function will terminate the process on failure as this implies a bug
775
+ * in the client. As such, there is no return value.
776
+ *
777
+ * \param address The start address of the pages to free. This address must
778
+ * have been obtained through a call to AllocateSharedPages.
779
+ *
780
+ * \param size The size in bytes of the region to free. This must match the
781
+ * size passed to AllocateSharedPages when the pages were allocated.
782
+ */
783
+ virtual void FreeSharedPages(Address address, size_t size) = 0;
784
+
785
+ /**
786
+ * Whether this instance can allocate subspaces or not.
787
+ *
788
+ * \returns true if subspaces can be allocated, false if not.
789
+ */
790
+ virtual bool CanAllocateSubspaces() = 0;
791
+
792
+ /*
793
+ * Allocate a subspace.
794
+ *
795
+ * The address space of a subspace stays reserved in the parent space for the
796
+ * lifetime of the subspace. As such, it is guaranteed that page allocations
797
+ * on the parent space cannot end up inside a subspace.
798
+ *
799
+ * \param hint Hints where the subspace should be allocated. See
800
+ * AllocatePages() for more details.
801
+ *
802
+ * \param size The size in bytes of the subspace. Must be a multiple of the
803
+ * allocation_granularity().
804
+ *
805
+ * \param alignment The alignment of the subspace in bytes. Must be a multiple
806
+ * of the allocation_granularity() and should be a power of two.
807
+ *
808
+ * \param max_page_permissions The maximum permissions that pages allocated in
809
+ * the subspace can obtain.
810
+ *
811
+ * \returns a new subspace or nullptr on failure.
812
+ */
813
+ virtual std::unique_ptr<VirtualAddressSpace> AllocateSubspace(
814
+ Address hint, size_t size, size_t alignment,
815
+ PagePermissions max_page_permissions) = 0;
816
+
817
+ //
818
+ // TODO(v8) maybe refactor the methods below before stabilizing the API. For
819
+ // example by combining them into some form of page operation method that
820
+ // takes a command enum as parameter.
821
+ //
822
+
823
+ /**
824
+ * Frees memory in the given [address, address + size) range. address and
825
+ * size should be aligned to the page_size(). The next write to this memory
826
+ * area brings the memory transparently back. This should be treated as a
827
+ * hint to the OS that the pages are no longer needed. It does not guarantee
828
+ * that the pages will be discarded immediately or at all.
829
+ *
830
+ * \returns true on success, false otherwise. Since this method is only a
831
+ * hint, a successful invocation does not imply that pages have been removed.
832
+ */
833
+ virtual V8_WARN_UNUSED_RESULT bool DiscardSystemPages(Address address,
834
+ size_t size) {
835
+ return true;
836
+ }
837
+ /**
838
+ * Decommits any wired memory pages in the given range, allowing the OS to
839
+ * reclaim them, and marks the region as inacessible (kNoAccess). The address
840
+ * range stays reserved and can be accessed again later by changing its
841
+ * permissions. However, in that case the memory content is guaranteed to be
842
+ * zero-initialized again. The memory must have been previously allocated by a
843
+ * call to AllocatePages.
844
+ *
845
+ * \returns true on success, false otherwise.
846
+ */
847
+ virtual V8_WARN_UNUSED_RESULT bool DecommitPages(Address address,
848
+ size_t size) = 0;
849
+
850
+ private:
851
+ const size_t page_size_;
852
+ const size_t allocation_granularity_;
853
+ const Address base_;
854
+ const size_t size_;
855
+ const PagePermissions max_page_permissions_;
856
+ };
857
+
519
858
  /**
520
859
  * V8 Allocator used for allocating zone backings.
521
860
  */
@@ -528,6 +867,16 @@ class ZoneBackingAllocator {
528
867
  virtual FreeFn GetFreeFn() const { return ::free; }
529
868
  };
530
869
 
870
+ /**
871
+ * Observer used by V8 to notify the embedder about entering/leaving sections
872
+ * with high throughput of malloc/free operations.
873
+ */
874
+ class HighAllocationThroughputObserver {
875
+ public:
876
+ virtual void EnterSection() {}
877
+ virtual void LeaveSection() {}
878
+ };
879
+
531
880
  /**
532
881
  * V8 Platform abstraction layer.
533
882
  *
@@ -719,6 +1068,16 @@ class Platform {
719
1068
  */
720
1069
  virtual void DumpWithoutCrashing() {}
721
1070
 
1071
+ /**
1072
+ * Allows the embedder to observe sections with high throughput allocation
1073
+ * operations.
1074
+ */
1075
+ virtual HighAllocationThroughputObserver*
1076
+ GetHighAllocationThroughputObserver() {
1077
+ static HighAllocationThroughputObserver default_observer;
1078
+ return &default_observer;
1079
+ }
1080
+
722
1081
  protected:
723
1082
  /**
724
1083
  * Default implementation of current wall-clock time in milliseconds
@@ -54,12 +54,22 @@ class V8_EXPORT Boolean : public Primitive {
54
54
  * This is passed back to the embedder as part of
55
55
  * HostImportModuleDynamicallyCallback for module loading.
56
56
  */
57
- class V8_EXPORT PrimitiveArray {
57
+ class V8_EXPORT PrimitiveArray : public Data {
58
58
  public:
59
59
  static Local<PrimitiveArray> New(Isolate* isolate, int length);
60
60
  int Length() const;
61
61
  void Set(Isolate* isolate, int index, Local<Primitive> item);
62
62
  Local<Primitive> Get(Isolate* isolate, int index);
63
+
64
+ V8_INLINE static PrimitiveArray* Cast(Data* data) {
65
+ #ifdef V8_ENABLE_CHECKS
66
+ CheckCast(data);
67
+ #endif
68
+ return reinterpret_cast<PrimitiveArray*>(data);
69
+ }
70
+
71
+ private:
72
+ static void CheckCast(Data* obj);
63
73
  };
64
74
 
65
75
  /**
@@ -575,8 +585,6 @@ class V8_EXPORT Symbol : public Name {
575
585
  /**
576
586
  * Returns the description string of the symbol, or undefined if none.
577
587
  */
578
- V8_DEPRECATE_SOON("Use Symbol::Description(isolate)")
579
- Local<Value> Description() const;
580
588
  Local<Value> Description(Isolate* isolate) const;
581
589
 
582
590
  /**
@@ -777,7 +785,7 @@ String::ExternalStringResource* String::GetExternalStringResource() const {
777
785
 
778
786
  ExternalStringResource* result;
779
787
  if (I::IsExternalTwoByteString(I::GetInstanceType(obj))) {
780
- internal::Isolate* isolate = I::GetIsolateForHeapSandbox(obj);
788
+ internal::Isolate* isolate = I::GetIsolateForSandbox(obj);
781
789
  A value =
782
790
  I::ReadExternalPointerField(isolate, obj, I::kStringResourceOffset,
783
791
  internal::kExternalStringResourceTag);
@@ -796,12 +804,12 @@ String::ExternalStringResourceBase* String::GetExternalStringResourceBase(
796
804
  using A = internal::Address;
797
805
  using I = internal::Internals;
798
806
  A obj = *reinterpret_cast<const A*>(this);
799
- int type = I::GetInstanceType(obj) & I::kFullStringRepresentationMask;
807
+ int type = I::GetInstanceType(obj) & I::kStringRepresentationAndEncodingMask;
800
808
  *encoding_out = static_cast<Encoding>(type & I::kStringEncodingMask);
801
809
  ExternalStringResourceBase* resource;
802
810
  if (type == I::kExternalOneByteRepresentationTag ||
803
811
  type == I::kExternalTwoByteRepresentationTag) {
804
- internal::Isolate* isolate = I::GetIsolateForHeapSandbox(obj);
812
+ internal::Isolate* isolate = I::GetIsolateForSandbox(obj);
805
813
  A value =
806
814
  I::ReadExternalPointerField(isolate, obj, I::kStringResourceOffset,
807
815
  internal::kExternalStringResourceTag);