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
@@ -20,12 +20,15 @@
20
20
  */
21
21
  namespace v8 {
22
22
 
23
+ enum class EmbedderStateTag : uint8_t;
23
24
  class HeapGraphNode;
24
25
  struct HeapStatsUpdate;
25
26
  class Object;
27
+ enum StateTag : int;
26
28
 
27
29
  using NativeObject = void*;
28
30
  using SnapshotObjectId = uint32_t;
31
+ using ProfilerId = uint32_t;
29
32
 
30
33
  struct CpuProfileDeoptFrame {
31
34
  int script_id;
@@ -210,6 +213,16 @@ class V8_EXPORT CpuProfile {
210
213
  */
211
214
  int64_t GetStartTime() const;
212
215
 
216
+ /**
217
+ * Returns state of the vm when sample was captured.
218
+ */
219
+ StateTag GetSampleState(int index) const;
220
+
221
+ /**
222
+ * Returns state of the embedder when sample was captured.
223
+ */
224
+ EmbedderStateTag GetSampleEmbedderState(int index) const;
225
+
213
226
  /**
214
227
  * Returns time when the profile recording was stopped (in microseconds)
215
228
  * since some unspecified starting point.
@@ -261,15 +274,33 @@ enum class CpuProfilingStatus {
261
274
  kErrorTooManyProfilers
262
275
  };
263
276
 
277
+ /**
278
+ * Result from StartProfiling returning the Profiling Status, and
279
+ * id of the started profiler, or 0 if profiler is not started
280
+ */
281
+ struct CpuProfilingResult {
282
+ const ProfilerId id;
283
+ const CpuProfilingStatus status;
284
+ };
285
+
264
286
  /**
265
287
  * Delegate for when max samples reached and samples are discarded.
266
288
  */
267
289
  class V8_EXPORT DiscardedSamplesDelegate {
268
290
  public:
269
- DiscardedSamplesDelegate() {}
291
+ DiscardedSamplesDelegate() = default;
270
292
 
271
293
  virtual ~DiscardedSamplesDelegate() = default;
272
294
  virtual void Notify() = 0;
295
+
296
+ ProfilerId GetId() const { return profiler_id_; }
297
+
298
+ private:
299
+ friend internal::CpuProfile;
300
+
301
+ void SetId(ProfilerId id) { profiler_id_ = id; }
302
+
303
+ ProfilerId profiler_id_;
273
304
  };
274
305
 
275
306
  /**
@@ -359,6 +390,45 @@ class V8_EXPORT CpuProfiler {
359
390
  */
360
391
  void SetUsePreciseSampling(bool);
361
392
 
393
+ /**
394
+ * Starts collecting a CPU profile. Several profiles may be collected at once.
395
+ * Generates an anonymous profiler, without a String identifier.
396
+ */
397
+ CpuProfilingResult Start(
398
+ CpuProfilingOptions options,
399
+ std::unique_ptr<DiscardedSamplesDelegate> delegate = nullptr);
400
+
401
+ /**
402
+ * Starts collecting a CPU profile. Title may be an empty string. Several
403
+ * profiles may be collected at once. Attempts to start collecting several
404
+ * profiles with the same title are silently ignored.
405
+ */
406
+ CpuProfilingResult Start(
407
+ Local<String> title, CpuProfilingOptions options,
408
+ std::unique_ptr<DiscardedSamplesDelegate> delegate = nullptr);
409
+
410
+ /**
411
+ * Starts profiling with the same semantics as above, except with expanded
412
+ * parameters.
413
+ *
414
+ * |record_samples| parameter controls whether individual samples should
415
+ * be recorded in addition to the aggregated tree.
416
+ *
417
+ * |max_samples| controls the maximum number of samples that should be
418
+ * recorded by the profiler. Samples obtained after this limit will be
419
+ * discarded.
420
+ */
421
+ CpuProfilingResult Start(
422
+ Local<String> title, CpuProfilingMode mode, bool record_samples = false,
423
+ unsigned max_samples = CpuProfilingOptions::kNoSampleLimit);
424
+
425
+ /**
426
+ * The same as StartProfiling above, but the CpuProfilingMode defaults to
427
+ * kLeafNodeLineNumbers mode, which was the previous default behavior of the
428
+ * profiler.
429
+ */
430
+ CpuProfilingResult Start(Local<String> title, bool record_samples = false);
431
+
362
432
  /**
363
433
  * Starts collecting a CPU profile. Title may be an empty string. Several
364
434
  * profiles may be collected at once. Attempts to start collecting several
@@ -382,6 +452,7 @@ class V8_EXPORT CpuProfiler {
382
452
  CpuProfilingStatus StartProfiling(
383
453
  Local<String> title, CpuProfilingMode mode, bool record_samples = false,
384
454
  unsigned max_samples = CpuProfilingOptions::kNoSampleLimit);
455
+
385
456
  /**
386
457
  * The same as StartProfiling above, but the CpuProfilingMode defaults to
387
458
  * kLeafNodeLineNumbers mode, which was the previous default behavior of the
@@ -390,6 +461,11 @@ class V8_EXPORT CpuProfiler {
390
461
  CpuProfilingStatus StartProfiling(Local<String> title,
391
462
  bool record_samples = false);
392
463
 
464
+ /**
465
+ * Stops collecting CPU profile with a given id and returns it.
466
+ */
467
+ CpuProfile* Stop(ProfilerId id);
468
+
393
469
  /**
394
470
  * Stops collecting CPU profile with a given title and returns it.
395
471
  * If the title given is empty, finishes the last profile started.
@@ -603,7 +679,7 @@ class V8_EXPORT ActivityControl {
603
679
  * Notify about current progress. The activity can be stopped by
604
680
  * returning kAbort as the callback result.
605
681
  */
606
- virtual ControlOption ReportProgressValue(int done, int total) = 0;
682
+ virtual ControlOption ReportProgressValue(uint32_t done, uint32_t total) = 0;
607
683
  };
608
684
 
609
685
  /**
@@ -47,7 +47,9 @@ class V8_EXPORT ScriptOrModule {
47
47
  * The options that were passed by the embedder as HostDefinedOptions to
48
48
  * the ScriptOrigin.
49
49
  */
50
+ V8_DEPRECATED("Use HostDefinedOptions")
50
51
  Local<PrimitiveArray> GetHostDefinedOptions();
52
+ Local<Data> HostDefinedOptions();
51
53
  };
52
54
 
53
55
  /**
@@ -170,29 +172,6 @@ class V8_EXPORT Module : public Data {
170
172
  */
171
173
  Local<Value> GetException() const;
172
174
 
173
- /**
174
- * Returns the number of modules requested by this module.
175
- */
176
- V8_DEPRECATE_SOON("Use Module::GetModuleRequests() and FixedArray::Length().")
177
- int GetModuleRequestsLength() const;
178
-
179
- /**
180
- * Returns the ith module specifier in this module.
181
- * i must be < GetModuleRequestsLength() and >= 0.
182
- */
183
- V8_DEPRECATE_SOON(
184
- "Use Module::GetModuleRequests() and ModuleRequest::GetSpecifier().")
185
- Local<String> GetModuleRequest(int i) const;
186
-
187
- /**
188
- * Returns the source location (line number and column number) of the ith
189
- * module specifier's first occurrence in this module.
190
- */
191
- V8_DEPRECATE_SOON(
192
- "Use Module::GetModuleRequests(), ModuleRequest::GetSourceOffset(), and "
193
- "Module::SourceOffsetToLocation().")
194
- Location GetModuleRequestLocation(int i) const;
195
-
196
175
  /**
197
176
  * Returns the ModuleRequests for this module.
198
177
  */
@@ -209,9 +188,6 @@ class V8_EXPORT Module : public Data {
209
188
  */
210
189
  int GetIdentityHash() const;
211
190
 
212
- using ResolveCallback =
213
- MaybeLocal<Module> (*)(Local<Context> context, Local<String> specifier,
214
- Local<Module> referrer);
215
191
  using ResolveModuleCallback = MaybeLocal<Module> (*)(
216
192
  Local<Context> context, Local<String> specifier,
217
193
  Local<FixedArray> import_assertions, Local<Module> referrer);
@@ -223,11 +199,6 @@ class V8_EXPORT Module : public Data {
223
199
  * instantiation. (In the case where the callback throws an exception, that
224
200
  * exception is propagated.)
225
201
  */
226
- V8_DEPRECATE_SOON(
227
- "Use the version of InstantiateModule that takes a ResolveModuleCallback "
228
- "parameter")
229
- V8_WARN_UNUSED_RESULT Maybe<bool> InstantiateModule(Local<Context> context,
230
- ResolveCallback callback);
231
202
  V8_WARN_UNUSED_RESULT Maybe<bool> InstantiateModule(
232
203
  Local<Context> context, ResolveModuleCallback callback);
233
204
 
@@ -340,11 +311,19 @@ class V8_EXPORT Script {
340
311
  * UnboundScript::BindToCurrentContext()).
341
312
  */
342
313
  V8_WARN_UNUSED_RESULT MaybeLocal<Value> Run(Local<Context> context);
314
+ V8_WARN_UNUSED_RESULT MaybeLocal<Value> Run(Local<Context> context,
315
+ Local<Data> host_defined_options);
343
316
 
344
317
  /**
345
318
  * Returns the corresponding context-unbound script.
346
319
  */
347
320
  Local<UnboundScript> GetUnboundScript();
321
+
322
+ /**
323
+ * The name that was passed by the embedder as ResourceName to the
324
+ * ScriptOrigin. This can be either a v8::String or v8::Undefined.
325
+ */
326
+ Local<Value> GetResourceName();
348
327
  };
349
328
 
350
329
  enum class ScriptType { kClassic, kModule };
@@ -397,6 +376,7 @@ class V8_EXPORT ScriptCompiler {
397
376
  class Source {
398
377
  public:
399
378
  // Source takes ownership of both CachedData and CodeCacheConsumeTask.
379
+ // The caller *must* ensure that the cached data is from a trusted source.
400
380
  V8_INLINE Source(Local<String> source_string, const ScriptOrigin& origin,
401
381
  CachedData* cached_data = nullptr,
402
382
  ConsumeCodeCacheTask* consume_cache_task = nullptr);
@@ -424,7 +404,7 @@ class V8_EXPORT ScriptCompiler {
424
404
  int resource_column_offset;
425
405
  ScriptOriginOptions resource_options;
426
406
  Local<Value> source_map_url;
427
- Local<PrimitiveArray> host_defined_options;
407
+ Local<Data> host_defined_options;
428
408
 
429
409
  // Cached data from previous compilation (if a kConsume*Cache flag is
430
410
  // set), or hold newly generated cache data (kProduce*Cache flags) are
@@ -463,23 +443,6 @@ class V8_EXPORT ScriptCompiler {
463
443
  * V8 has parsed the data it received so far.
464
444
  */
465
445
  virtual size_t GetMoreData(const uint8_t** src) = 0;
466
-
467
- /**
468
- * V8 calls this method to set a 'bookmark' at the current position in
469
- * the source stream, for the purpose of (maybe) later calling
470
- * ResetToBookmark. If ResetToBookmark is called later, then subsequent
471
- * calls to GetMoreData should return the same data as they did when
472
- * SetBookmark was called earlier.
473
- *
474
- * The embedder may return 'false' to indicate it cannot provide this
475
- * functionality.
476
- */
477
- virtual bool SetBookmark();
478
-
479
- /**
480
- * V8 calls this to return to a previously set bookmark.
481
- */
482
- virtual void ResetToBookmark();
483
446
  };
484
447
 
485
448
  /**
@@ -694,6 +657,12 @@ class V8_EXPORT ScriptCompiler {
694
657
  CompileOptions options = kNoCompileOptions,
695
658
  NoCacheReason no_cache_reason = kNoCacheNoReason,
696
659
  Local<ScriptOrModule>* script_or_module_out = nullptr);
660
+ static V8_WARN_UNUSED_RESULT MaybeLocal<Function> CompileFunction(
661
+ Local<Context> context, Source* source, size_t arguments_count = 0,
662
+ Local<String> arguments[] = nullptr, size_t context_extension_count = 0,
663
+ Local<Object> context_extensions[] = nullptr,
664
+ CompileOptions options = kNoCompileOptions,
665
+ NoCacheReason no_cache_reason = kNoCacheNoReason);
697
666
 
698
667
  /**
699
668
  * Creates and returns code cache for the specified unbound_script.
@@ -712,7 +681,7 @@ class V8_EXPORT ScriptCompiler {
712
681
 
713
682
  /**
714
683
  * Creates and returns code cache for the specified function that was
715
- * previously produced by CompileFunctionInContext.
684
+ * previously produced by CompileFunction.
716
685
  * This will return nullptr if the script cannot be serialized. The
717
686
  * CachedData returned by this function should be owned by the caller.
718
687
  */
@@ -722,6 +691,13 @@ class V8_EXPORT ScriptCompiler {
722
691
  static V8_WARN_UNUSED_RESULT MaybeLocal<UnboundScript> CompileUnboundInternal(
723
692
  Isolate* isolate, Source* source, CompileOptions options,
724
693
  NoCacheReason no_cache_reason);
694
+
695
+ static V8_WARN_UNUSED_RESULT MaybeLocal<Function> CompileFunctionInternal(
696
+ Local<Context> context, Source* source, size_t arguments_count,
697
+ Local<String> arguments[], size_t context_extension_count,
698
+ Local<Object> context_extensions[], CompileOptions options,
699
+ NoCacheReason no_cache_reason,
700
+ Local<ScriptOrModule>* script_or_module_out);
725
701
  };
726
702
 
727
703
  ScriptCompiler::Source::Source(Local<String> string, const ScriptOrigin& origin,
@@ -733,7 +709,7 @@ ScriptCompiler::Source::Source(Local<String> string, const ScriptOrigin& origin,
733
709
  resource_column_offset(origin.ColumnOffset()),
734
710
  resource_options(origin.Options()),
735
711
  source_map_url(origin.SourceMapUrl()),
736
- host_defined_options(origin.HostDefinedOptions()),
712
+ host_defined_options(origin.GetHostDefinedOptions()),
737
713
  cached_data(data),
738
714
  consume_cache_task(consume_cache_task) {}
739
715
 
@@ -5,8 +5,6 @@
5
5
  #ifndef INCLUDE_V8_SNAPSHOT_H_
6
6
  #define INCLUDE_V8_SNAPSHOT_H_
7
7
 
8
- #include <vector>
9
-
10
8
  #include "v8-internal.h" // NOLINT(build/include_directory)
11
9
  #include "v8-local-handle.h" // NOLINT(build/include_directory)
12
10
  #include "v8config.h" // NOLINT(build/include_directory)
@@ -201,11 +201,13 @@ class V8_EXPORT HeapCodeStatistics {
201
201
  size_t code_and_metadata_size() { return code_and_metadata_size_; }
202
202
  size_t bytecode_and_metadata_size() { return bytecode_and_metadata_size_; }
203
203
  size_t external_script_source_size() { return external_script_source_size_; }
204
+ size_t cpu_profiler_metadata_size() { return cpu_profiler_metadata_size_; }
204
205
 
205
206
  private:
206
207
  size_t code_and_metadata_size_;
207
208
  size_t bytecode_and_metadata_size_;
208
209
  size_t external_script_source_size_;
210
+ size_t cpu_profiler_metadata_size_;
209
211
 
210
212
  friend class Isolate;
211
213
  };
@@ -89,11 +89,26 @@ class V8_EXPORT Template : public Data {
89
89
  * defined by FunctionTemplate::HasInstance()), an implicit TypeError is
90
90
  * thrown and no callback is invoked.
91
91
  */
92
+ V8_DEPRECATED("Do signature check in accessor")
93
+ void SetNativeDataProperty(
94
+ Local<String> name, AccessorGetterCallback getter,
95
+ AccessorSetterCallback setter, Local<Value> data,
96
+ PropertyAttribute attribute, Local<AccessorSignature> signature,
97
+ AccessControl settings = DEFAULT,
98
+ SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
99
+ SideEffectType setter_side_effect_type = SideEffectType::kHasSideEffect);
100
+ V8_DEPRECATED("Do signature check in accessor")
101
+ void SetNativeDataProperty(
102
+ Local<Name> name, AccessorNameGetterCallback getter,
103
+ AccessorNameSetterCallback setter, Local<Value> data,
104
+ PropertyAttribute attribute, Local<AccessorSignature> signature,
105
+ AccessControl settings = DEFAULT,
106
+ SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
107
+ SideEffectType setter_side_effect_type = SideEffectType::kHasSideEffect);
92
108
  void SetNativeDataProperty(
93
109
  Local<String> name, AccessorGetterCallback getter,
94
110
  AccessorSetterCallback setter = nullptr,
95
111
  Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
96
- Local<AccessorSignature> signature = Local<AccessorSignature>(),
97
112
  AccessControl settings = DEFAULT,
98
113
  SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
99
114
  SideEffectType setter_side_effect_type = SideEffectType::kHasSideEffect);
@@ -101,7 +116,6 @@ class V8_EXPORT Template : public Data {
101
116
  Local<Name> name, AccessorNameGetterCallback getter,
102
117
  AccessorNameSetterCallback setter = nullptr,
103
118
  Local<Value> data = Local<Value>(), PropertyAttribute attribute = None,
104
- Local<AccessorSignature> signature = Local<AccessorSignature>(),
105
119
  AccessControl settings = DEFAULT,
106
120
  SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
107
121
  SideEffectType setter_side_effect_type = SideEffectType::kHasSideEffect);
@@ -813,12 +827,26 @@ class V8_EXPORT ObjectTemplate : public Template {
813
827
  * defined by FunctionTemplate::HasInstance()), an implicit TypeError is
814
828
  * thrown and no callback is invoked.
815
829
  */
830
+ V8_DEPRECATED("Do signature check in accessor")
831
+ void SetAccessor(
832
+ Local<String> name, AccessorGetterCallback getter,
833
+ AccessorSetterCallback setter, Local<Value> data, AccessControl settings,
834
+ PropertyAttribute attribute, Local<AccessorSignature> signature,
835
+ SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
836
+ SideEffectType setter_side_effect_type = SideEffectType::kHasSideEffect);
837
+ V8_DEPRECATED("Do signature check in accessor")
838
+ void SetAccessor(
839
+ Local<Name> name, AccessorNameGetterCallback getter,
840
+ AccessorNameSetterCallback setter, Local<Value> data,
841
+ AccessControl settings, PropertyAttribute attribute,
842
+ Local<AccessorSignature> signature,
843
+ SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
844
+ SideEffectType setter_side_effect_type = SideEffectType::kHasSideEffect);
816
845
  void SetAccessor(
817
846
  Local<String> name, AccessorGetterCallback getter,
818
847
  AccessorSetterCallback setter = nullptr,
819
848
  Local<Value> data = Local<Value>(), AccessControl settings = DEFAULT,
820
849
  PropertyAttribute attribute = None,
821
- Local<AccessorSignature> signature = Local<AccessorSignature>(),
822
850
  SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
823
851
  SideEffectType setter_side_effect_type = SideEffectType::kHasSideEffect);
824
852
  void SetAccessor(
@@ -826,7 +854,6 @@ class V8_EXPORT ObjectTemplate : public Template {
826
854
  AccessorNameSetterCallback setter = nullptr,
827
855
  Local<Value> data = Local<Value>(), AccessControl settings = DEFAULT,
828
856
  PropertyAttribute attribute = None,
829
- Local<AccessorSignature> signature = Local<AccessorSignature>(),
830
857
  SideEffectType getter_side_effect_type = SideEffectType::kHasSideEffect,
831
858
  SideEffectType setter_side_effect_type = SideEffectType::kHasSideEffect);
832
859