node-darwin-x64 24.8.0 → 25.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 (221) hide show
  1. package/CHANGELOG.md +177 -1642
  2. package/README.md +2 -2
  3. package/bin/node +0 -0
  4. package/include/node/common.gypi +1 -13
  5. package/include/node/config.gypi +12 -8
  6. package/include/node/cppgc/allocation.h +3 -3
  7. package/include/node/cppgc/cross-thread-persistent.h +25 -29
  8. package/include/node/cppgc/internal/finalizer-trait.h +1 -1
  9. package/include/node/cppgc/internal/gc-info.h +3 -3
  10. package/include/node/cppgc/internal/logging.h +2 -2
  11. package/include/node/cppgc/internal/name-trait.h +1 -1
  12. package/include/node/cppgc/internal/pointer-policies.h +3 -3
  13. package/include/node/cppgc/member.h +10 -4
  14. package/include/node/cppgc/persistent.h +14 -15
  15. package/include/node/cppgc/platform.h +1 -1
  16. package/include/node/cppgc/trace-trait.h +1 -2
  17. package/include/node/cppgc/visitor.h +14 -9
  18. package/include/node/js_native_api.h +21 -1
  19. package/include/node/node.h +34 -78
  20. package/include/node/node_version.h +3 -3
  21. package/include/node/openssl/archs/BSD-x86/asm/crypto/buildinf.h +1 -1
  22. package/include/node/openssl/archs/BSD-x86/asm/include/openssl/crypto.h +4 -4
  23. package/include/node/openssl/archs/BSD-x86/asm/include/openssl/opensslv.h +8 -13
  24. package/include/node/openssl/archs/BSD-x86/asm_avx2/crypto/buildinf.h +1 -1
  25. package/include/node/openssl/archs/BSD-x86/asm_avx2/include/openssl/crypto.h +4 -4
  26. package/include/node/openssl/archs/BSD-x86/asm_avx2/include/openssl/opensslv.h +8 -13
  27. package/include/node/openssl/archs/BSD-x86/no-asm/crypto/buildinf.h +1 -1
  28. package/include/node/openssl/archs/BSD-x86/no-asm/include/openssl/crypto.h +4 -4
  29. package/include/node/openssl/archs/BSD-x86/no-asm/include/openssl/opensslv.h +8 -13
  30. package/include/node/openssl/archs/BSD-x86_64/asm/crypto/buildinf.h +1 -1
  31. package/include/node/openssl/archs/BSD-x86_64/asm/include/openssl/crypto.h +4 -4
  32. package/include/node/openssl/archs/BSD-x86_64/asm/include/openssl/opensslv.h +8 -13
  33. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/crypto/buildinf.h +1 -1
  34. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/include/openssl/crypto.h +4 -4
  35. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/include/openssl/opensslv.h +8 -13
  36. package/include/node/openssl/archs/BSD-x86_64/no-asm/crypto/buildinf.h +1 -1
  37. package/include/node/openssl/archs/BSD-x86_64/no-asm/include/openssl/crypto.h +4 -4
  38. package/include/node/openssl/archs/BSD-x86_64/no-asm/include/openssl/opensslv.h +8 -13
  39. package/include/node/openssl/archs/VC-WIN32/asm/crypto/buildinf.h +1 -1
  40. package/include/node/openssl/archs/VC-WIN32/asm/include/openssl/crypto.h +4 -4
  41. package/include/node/openssl/archs/VC-WIN32/asm/include/openssl/opensslv.h +8 -13
  42. package/include/node/openssl/archs/VC-WIN32/asm_avx2/crypto/buildinf.h +1 -1
  43. package/include/node/openssl/archs/VC-WIN32/asm_avx2/include/openssl/crypto.h +4 -4
  44. package/include/node/openssl/archs/VC-WIN32/asm_avx2/include/openssl/opensslv.h +8 -13
  45. package/include/node/openssl/archs/VC-WIN32/no-asm/crypto/buildinf.h +1 -1
  46. package/include/node/openssl/archs/VC-WIN32/no-asm/include/openssl/crypto.h +4 -4
  47. package/include/node/openssl/archs/VC-WIN32/no-asm/include/openssl/opensslv.h +8 -13
  48. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/crypto/buildinf.h +1 -1
  49. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/include/openssl/crypto.h +4 -4
  50. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/include/openssl/opensslv.h +8 -13
  51. package/include/node/openssl/archs/VC-WIN64A/asm/crypto/buildinf.h +1 -1
  52. package/include/node/openssl/archs/VC-WIN64A/asm/include/openssl/crypto.h +4 -4
  53. package/include/node/openssl/archs/VC-WIN64A/asm/include/openssl/opensslv.h +8 -13
  54. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/crypto/buildinf.h +1 -1
  55. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/include/openssl/crypto.h +4 -4
  56. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/include/openssl/opensslv.h +8 -13
  57. package/include/node/openssl/archs/VC-WIN64A/no-asm/crypto/buildinf.h +1 -1
  58. package/include/node/openssl/archs/VC-WIN64A/no-asm/include/openssl/crypto.h +4 -4
  59. package/include/node/openssl/archs/VC-WIN64A/no-asm/include/openssl/opensslv.h +8 -13
  60. package/include/node/openssl/archs/aix64-gcc-as/asm/crypto/buildinf.h +1 -1
  61. package/include/node/openssl/archs/aix64-gcc-as/asm/include/openssl/crypto.h +4 -4
  62. package/include/node/openssl/archs/aix64-gcc-as/asm/include/openssl/opensslv.h +8 -13
  63. package/include/node/openssl/archs/aix64-gcc-as/asm_avx2/crypto/buildinf.h +1 -1
  64. package/include/node/openssl/archs/aix64-gcc-as/asm_avx2/include/openssl/crypto.h +4 -4
  65. package/include/node/openssl/archs/aix64-gcc-as/asm_avx2/include/openssl/opensslv.h +8 -13
  66. package/include/node/openssl/archs/aix64-gcc-as/no-asm/crypto/buildinf.h +1 -1
  67. package/include/node/openssl/archs/aix64-gcc-as/no-asm/include/openssl/crypto.h +4 -4
  68. package/include/node/openssl/archs/aix64-gcc-as/no-asm/include/openssl/opensslv.h +8 -13
  69. package/include/node/openssl/archs/darwin-i386-cc/asm/crypto/buildinf.h +1 -1
  70. package/include/node/openssl/archs/darwin-i386-cc/asm/include/openssl/crypto.h +4 -4
  71. package/include/node/openssl/archs/darwin-i386-cc/asm/include/openssl/opensslv.h +8 -13
  72. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/crypto/buildinf.h +1 -1
  73. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/include/openssl/crypto.h +4 -4
  74. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/include/openssl/opensslv.h +8 -13
  75. package/include/node/openssl/archs/darwin-i386-cc/no-asm/crypto/buildinf.h +1 -1
  76. package/include/node/openssl/archs/darwin-i386-cc/no-asm/include/openssl/crypto.h +4 -4
  77. package/include/node/openssl/archs/darwin-i386-cc/no-asm/include/openssl/opensslv.h +8 -13
  78. package/include/node/openssl/archs/darwin64-arm64-cc/asm/crypto/buildinf.h +1 -1
  79. package/include/node/openssl/archs/darwin64-arm64-cc/asm/include/openssl/crypto.h +4 -4
  80. package/include/node/openssl/archs/darwin64-arm64-cc/asm/include/openssl/opensslv.h +8 -13
  81. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/crypto/buildinf.h +1 -1
  82. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/include/openssl/crypto.h +4 -4
  83. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/include/openssl/opensslv.h +8 -13
  84. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/crypto/buildinf.h +1 -1
  85. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/include/openssl/crypto.h +4 -4
  86. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/include/openssl/opensslv.h +8 -13
  87. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/crypto/buildinf.h +1 -1
  88. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/include/openssl/crypto.h +4 -4
  89. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/include/openssl/opensslv.h +8 -13
  90. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/crypto/buildinf.h +1 -1
  91. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/include/openssl/crypto.h +4 -4
  92. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/include/openssl/opensslv.h +8 -13
  93. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/crypto/buildinf.h +1 -1
  94. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/include/openssl/crypto.h +4 -4
  95. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/include/openssl/opensslv.h +8 -13
  96. package/include/node/openssl/archs/linux-aarch64/asm/crypto/buildinf.h +1 -1
  97. package/include/node/openssl/archs/linux-aarch64/asm/include/openssl/crypto.h +4 -4
  98. package/include/node/openssl/archs/linux-aarch64/asm/include/openssl/opensslv.h +8 -13
  99. package/include/node/openssl/archs/linux-aarch64/asm_avx2/crypto/buildinf.h +1 -1
  100. package/include/node/openssl/archs/linux-aarch64/asm_avx2/include/openssl/crypto.h +4 -4
  101. package/include/node/openssl/archs/linux-aarch64/asm_avx2/include/openssl/opensslv.h +8 -13
  102. package/include/node/openssl/archs/linux-aarch64/no-asm/crypto/buildinf.h +1 -1
  103. package/include/node/openssl/archs/linux-aarch64/no-asm/include/openssl/crypto.h +4 -4
  104. package/include/node/openssl/archs/linux-aarch64/no-asm/include/openssl/opensslv.h +8 -13
  105. package/include/node/openssl/archs/linux-armv4/asm/crypto/buildinf.h +1 -1
  106. package/include/node/openssl/archs/linux-armv4/asm/include/openssl/crypto.h +4 -4
  107. package/include/node/openssl/archs/linux-armv4/asm/include/openssl/opensslv.h +8 -13
  108. package/include/node/openssl/archs/linux-armv4/asm_avx2/crypto/buildinf.h +1 -1
  109. package/include/node/openssl/archs/linux-armv4/asm_avx2/include/openssl/crypto.h +4 -4
  110. package/include/node/openssl/archs/linux-armv4/asm_avx2/include/openssl/opensslv.h +8 -13
  111. package/include/node/openssl/archs/linux-armv4/no-asm/crypto/buildinf.h +1 -1
  112. package/include/node/openssl/archs/linux-armv4/no-asm/include/openssl/crypto.h +4 -4
  113. package/include/node/openssl/archs/linux-armv4/no-asm/include/openssl/opensslv.h +8 -13
  114. package/include/node/openssl/archs/linux-elf/asm/crypto/buildinf.h +1 -1
  115. package/include/node/openssl/archs/linux-elf/asm/include/openssl/crypto.h +4 -4
  116. package/include/node/openssl/archs/linux-elf/asm/include/openssl/opensslv.h +8 -13
  117. package/include/node/openssl/archs/linux-elf/asm_avx2/crypto/buildinf.h +1 -1
  118. package/include/node/openssl/archs/linux-elf/asm_avx2/include/openssl/crypto.h +4 -4
  119. package/include/node/openssl/archs/linux-elf/asm_avx2/include/openssl/opensslv.h +8 -13
  120. package/include/node/openssl/archs/linux-elf/no-asm/crypto/buildinf.h +1 -1
  121. package/include/node/openssl/archs/linux-elf/no-asm/include/openssl/crypto.h +4 -4
  122. package/include/node/openssl/archs/linux-elf/no-asm/include/openssl/opensslv.h +8 -13
  123. package/include/node/openssl/archs/linux-ppc64le/asm/crypto/buildinf.h +1 -1
  124. package/include/node/openssl/archs/linux-ppc64le/asm/include/openssl/crypto.h +4 -4
  125. package/include/node/openssl/archs/linux-ppc64le/asm/include/openssl/opensslv.h +8 -13
  126. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/crypto/buildinf.h +1 -1
  127. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/include/openssl/crypto.h +4 -4
  128. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/include/openssl/opensslv.h +8 -13
  129. package/include/node/openssl/archs/linux-ppc64le/no-asm/crypto/buildinf.h +1 -1
  130. package/include/node/openssl/archs/linux-ppc64le/no-asm/include/openssl/crypto.h +4 -4
  131. package/include/node/openssl/archs/linux-ppc64le/no-asm/include/openssl/opensslv.h +8 -13
  132. package/include/node/openssl/archs/linux-x86_64/asm/crypto/buildinf.h +1 -1
  133. package/include/node/openssl/archs/linux-x86_64/asm/include/openssl/crypto.h +4 -4
  134. package/include/node/openssl/archs/linux-x86_64/asm/include/openssl/opensslv.h +8 -13
  135. package/include/node/openssl/archs/linux-x86_64/asm_avx2/crypto/buildinf.h +1 -1
  136. package/include/node/openssl/archs/linux-x86_64/asm_avx2/include/openssl/crypto.h +4 -4
  137. package/include/node/openssl/archs/linux-x86_64/asm_avx2/include/openssl/opensslv.h +8 -13
  138. package/include/node/openssl/archs/linux-x86_64/no-asm/crypto/buildinf.h +1 -1
  139. package/include/node/openssl/archs/linux-x86_64/no-asm/include/openssl/crypto.h +4 -4
  140. package/include/node/openssl/archs/linux-x86_64/no-asm/include/openssl/opensslv.h +8 -13
  141. package/include/node/openssl/archs/linux32-s390x/asm/crypto/buildinf.h +1 -1
  142. package/include/node/openssl/archs/linux32-s390x/asm/include/openssl/crypto.h +4 -4
  143. package/include/node/openssl/archs/linux32-s390x/asm/include/openssl/opensslv.h +8 -13
  144. package/include/node/openssl/archs/linux32-s390x/asm_avx2/crypto/buildinf.h +1 -1
  145. package/include/node/openssl/archs/linux32-s390x/asm_avx2/include/openssl/crypto.h +4 -4
  146. package/include/node/openssl/archs/linux32-s390x/asm_avx2/include/openssl/opensslv.h +8 -13
  147. package/include/node/openssl/archs/linux32-s390x/no-asm/crypto/buildinf.h +1 -1
  148. package/include/node/openssl/archs/linux32-s390x/no-asm/include/openssl/crypto.h +4 -4
  149. package/include/node/openssl/archs/linux32-s390x/no-asm/include/openssl/opensslv.h +8 -13
  150. package/include/node/openssl/archs/linux64-loongarch64/no-asm/crypto/buildinf.h +1 -1
  151. package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/crypto.h +4 -4
  152. package/include/node/openssl/archs/linux64-loongarch64/no-asm/include/openssl/opensslv.h +8 -13
  153. package/include/node/openssl/archs/linux64-mips64/asm/crypto/buildinf.h +1 -1
  154. package/include/node/openssl/archs/linux64-mips64/asm/include/openssl/crypto.h +4 -4
  155. package/include/node/openssl/archs/linux64-mips64/asm/include/openssl/opensslv.h +8 -13
  156. package/include/node/openssl/archs/linux64-mips64/asm_avx2/crypto/buildinf.h +1 -1
  157. package/include/node/openssl/archs/linux64-mips64/asm_avx2/include/openssl/crypto.h +4 -4
  158. package/include/node/openssl/archs/linux64-mips64/asm_avx2/include/openssl/opensslv.h +8 -13
  159. package/include/node/openssl/archs/linux64-mips64/no-asm/crypto/buildinf.h +1 -1
  160. package/include/node/openssl/archs/linux64-mips64/no-asm/include/openssl/crypto.h +4 -4
  161. package/include/node/openssl/archs/linux64-mips64/no-asm/include/openssl/opensslv.h +8 -13
  162. package/include/node/openssl/archs/linux64-riscv64/no-asm/crypto/buildinf.h +1 -1
  163. package/include/node/openssl/archs/linux64-riscv64/no-asm/include/openssl/crypto.h +4 -4
  164. package/include/node/openssl/archs/linux64-riscv64/no-asm/include/openssl/opensslv.h +8 -13
  165. package/include/node/openssl/archs/linux64-s390x/asm/crypto/buildinf.h +1 -1
  166. package/include/node/openssl/archs/linux64-s390x/asm/include/openssl/crypto.h +4 -4
  167. package/include/node/openssl/archs/linux64-s390x/asm/include/openssl/opensslv.h +8 -13
  168. package/include/node/openssl/archs/linux64-s390x/asm_avx2/crypto/buildinf.h +1 -1
  169. package/include/node/openssl/archs/linux64-s390x/asm_avx2/include/openssl/crypto.h +4 -4
  170. package/include/node/openssl/archs/linux64-s390x/asm_avx2/include/openssl/opensslv.h +8 -13
  171. package/include/node/openssl/archs/linux64-s390x/no-asm/crypto/buildinf.h +1 -1
  172. package/include/node/openssl/archs/linux64-s390x/no-asm/include/openssl/crypto.h +4 -4
  173. package/include/node/openssl/archs/linux64-s390x/no-asm/include/openssl/opensslv.h +8 -13
  174. package/include/node/openssl/archs/solaris-x86-gcc/asm/crypto/buildinf.h +1 -1
  175. package/include/node/openssl/archs/solaris-x86-gcc/asm/include/openssl/crypto.h +4 -4
  176. package/include/node/openssl/archs/solaris-x86-gcc/asm/include/openssl/opensslv.h +8 -13
  177. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/crypto/buildinf.h +1 -1
  178. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/include/openssl/crypto.h +4 -4
  179. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/include/openssl/opensslv.h +8 -13
  180. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/crypto/buildinf.h +1 -1
  181. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/include/openssl/crypto.h +4 -4
  182. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/include/openssl/opensslv.h +8 -13
  183. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/crypto/buildinf.h +1 -1
  184. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/include/openssl/crypto.h +4 -4
  185. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/include/openssl/opensslv.h +8 -13
  186. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/crypto/buildinf.h +1 -1
  187. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/include/openssl/crypto.h +4 -4
  188. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/include/openssl/opensslv.h +8 -13
  189. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/crypto/buildinf.h +1 -1
  190. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/include/openssl/crypto.h +4 -4
  191. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/include/openssl/opensslv.h +8 -13
  192. package/include/node/openssl/proverr.h +1 -0
  193. package/include/node/openssl/self_test.h +1 -0
  194. package/include/node/v8-array-buffer.h +1 -1
  195. package/include/node/v8-callbacks.h +3 -4
  196. package/include/node/v8-context.h +15 -5
  197. package/include/node/v8-data.h +5 -0
  198. package/include/node/v8-debug.h +11 -0
  199. package/include/node/v8-function-callback.h +26 -26
  200. package/include/node/v8-internal.h +136 -36
  201. package/include/node/v8-isolate.h +75 -16
  202. package/include/node/v8-json.h +8 -1
  203. package/include/node/v8-local-handle.h +112 -13
  204. package/include/node/v8-maybe.h +34 -10
  205. package/include/node/v8-memory-span.h +9 -4
  206. package/include/node/v8-message.h +3 -0
  207. package/include/node/v8-object.h +87 -24
  208. package/include/node/v8-persistent-handle.h +4 -4
  209. package/include/node/v8-platform.h +92 -28
  210. package/include/node/v8-primitive.h +22 -9
  211. package/include/node/v8-profiler.h +4 -0
  212. package/include/node/v8-sandbox.h +16 -0
  213. package/include/node/v8-source-location.h +19 -26
  214. package/include/node/v8-template.h +37 -15
  215. package/include/node/v8-traced-handle.h +6 -6
  216. package/include/node/v8-unwinder.h +13 -0
  217. package/include/node/v8-version.h +4 -4
  218. package/include/node/v8config.h +65 -5
  219. package/package.json +5 -1
  220. package/share/doc/node/gdbinit +221 -4
  221. package/share/man/man1/node.1 +21 -4
@@ -6,21 +6,12 @@
6
6
  #define INCLUDE_SOURCE_LOCATION_H_
7
7
 
8
8
  #include <cstddef>
9
+ #include <source_location>
9
10
  #include <string>
10
11
 
11
12
  #include "v8config.h" // NOLINT(build/include_directory)
12
13
 
13
- #if defined(__has_builtin)
14
- #define V8_SUPPORTS_SOURCE_LOCATION \
15
- (__has_builtin(__builtin_FUNCTION) && __has_builtin(__builtin_FILE) && \
16
- __has_builtin(__builtin_LINE)) // NOLINT
17
- #elif defined(V8_CC_GNU) && __GNUC__ >= 7
18
14
  #define V8_SUPPORTS_SOURCE_LOCATION 1
19
- #elif defined(V8_CC_INTEL) && __ICC >= 1800
20
- #define V8_SUPPORTS_SOURCE_LOCATION 1
21
- #else
22
- #define V8_SUPPORTS_SOURCE_LOCATION 0
23
- #endif
24
15
 
25
16
  namespace v8 {
26
17
 
@@ -34,15 +25,18 @@ class V8_EXPORT SourceLocation final {
34
25
  * Construct source location information corresponding to the location of the
35
26
  * call site.
36
27
  */
37
- #if V8_SUPPORTS_SOURCE_LOCATION
38
28
  static constexpr SourceLocation Current(
39
- const char* function = __builtin_FUNCTION(),
40
- const char* file = __builtin_FILE(), size_t line = __builtin_LINE()) {
41
- return SourceLocation(function, file, line);
29
+ const std::source_location& loc = std::source_location::current()) {
30
+ return SourceLocation(loc);
31
+ }
32
+ #ifdef DEBUG
33
+ static constexpr SourceLocation CurrentIfDebug(
34
+ const std::source_location& loc = std::source_location::current()) {
35
+ return SourceLocation(loc);
42
36
  }
43
37
  #else
44
- static constexpr SourceLocation Current() { return SourceLocation(); }
45
- #endif // V8_SUPPORTS_SOURCE_LOCATION
38
+ static constexpr SourceLocation CurrentIfDebug() { return {}; }
39
+ #endif
46
40
 
47
41
  /**
48
42
  * Constructs unspecified source location information.
@@ -55,21 +49,21 @@ class V8_EXPORT SourceLocation final {
55
49
  *
56
50
  * \returns the function name as cstring.
57
51
  */
58
- constexpr const char* Function() const { return function_; }
52
+ constexpr const char* Function() const { return loc_.function_name(); }
59
53
 
60
54
  /**
61
55
  * Returns the name of the current source file represented by this object.
62
56
  *
63
57
  * \returns the file name as cstring.
64
58
  */
65
- constexpr const char* FileName() const { return file_; }
59
+ constexpr const char* FileName() const { return loc_.file_name(); }
66
60
 
67
61
  /**
68
62
  * Returns the line number represented by this object.
69
63
  *
70
64
  * \returns the line number.
71
65
  */
72
- constexpr size_t Line() const { return line_; }
66
+ constexpr size_t Line() const { return loc_.line(); }
73
67
 
74
68
  /**
75
69
  * Returns a human-readable string representing this object.
@@ -77,19 +71,18 @@ class V8_EXPORT SourceLocation final {
77
71
  * \returns a human-readable string representing source location information.
78
72
  */
79
73
  std::string ToString() const {
80
- if (!file_) {
74
+ if (loc_.line() == 0) {
81
75
  return {};
82
76
  }
83
- return std::string(function_) + "@" + file_ + ":" + std::to_string(line_);
77
+ return std::string(loc_.function_name()) + "@" + loc_.file_name() + ":" +
78
+ std::to_string(loc_.line());
84
79
  }
85
80
 
86
81
  private:
87
- constexpr SourceLocation(const char* function, const char* file, size_t line)
88
- : function_(function), file_(file), line_(line) {}
82
+ constexpr explicit SourceLocation(const std::source_location& loc)
83
+ : loc_(loc) {}
89
84
 
90
- const char* function_ = nullptr;
91
- const char* file_ = nullptr;
92
- size_t line_ = 0u;
85
+ std::source_location loc_;
93
86
  };
94
87
 
95
88
  } // namespace v8
@@ -188,7 +188,8 @@ using NamedPropertyGetterCallback = Intercepted (*)(
188
188
  // Use `info.GetReturnValue().Set()` to set the return value of the
189
189
  // intercepted get request. If the property does not exist the callback should
190
190
  // not set the result and must not produce side effects.
191
- using GenericNamedPropertyGetterCallback =
191
+ using GenericNamedPropertyGetterCallback V8_DEPRECATE_SOON(
192
+ "Use NamedPropertyGetterCallback instead") =
192
193
  void (*)(Local<Name> property, const PropertyCallbackInfo<Value>& info);
193
194
 
194
195
  /**
@@ -221,7 +222,8 @@ using NamedPropertySetterCallback =
221
222
  // `info.GetReturnValue().Set(value)`. If the setter did not intercept the
222
223
  // request, i.e., if the request should be handled as if no interceptor is
223
224
  // present, do not not call `Set()` and do not produce side effects.
224
- using GenericNamedPropertySetterCallback =
225
+ using GenericNamedPropertySetterCallback V8_DEPRECATE_SOON(
226
+ "Use NamedPropertySetterCallback instead") =
225
227
  void (*)(Local<Name> property, Local<Value> value,
226
228
  const PropertyCallbackInfo<Value>& info);
227
229
 
@@ -259,7 +261,8 @@ using NamedPropertyQueryCallback = Intercepted (*)(
259
261
  // value is an integer encoding a `v8::PropertyAttribute`. If the property does
260
262
  // not exist the callback should not set the result and must not produce side
261
263
  // effects.
262
- using GenericNamedPropertyQueryCallback =
264
+ using GenericNamedPropertyQueryCallback V8_DEPRECATE_SOON(
265
+ "Use NamedPropertyQueryCallback instead") =
263
266
  void (*)(Local<Name> property, const PropertyCallbackInfo<Integer>& info);
264
267
 
265
268
  /**
@@ -296,7 +299,8 @@ using NamedPropertyDeleterCallback = Intercepted (*)(
296
299
  // `info.GetReturnValue().Set(value)` with a boolean `value`. The `value` is
297
300
  // used as the return value of `delete`. If the deleter does not intercept the
298
301
  // request then it should not set the result and must not produce side effects.
299
- using GenericNamedPropertyDeleterCallback =
302
+ using GenericNamedPropertyDeleterCallback V8_DEPRECATE_SOON(
303
+ "Use NamedPropertyDeleterCallback instead") =
300
304
  void (*)(Local<Name> property, const PropertyCallbackInfo<Boolean>& info);
301
305
 
302
306
  /**
@@ -309,7 +313,9 @@ using NamedPropertyEnumeratorCallback =
309
313
  void (*)(const PropertyCallbackInfo<Array>& info);
310
314
  // This variant will be deprecated soon.
311
315
  // This is just a renaming of the typedef.
312
- using GenericNamedPropertyEnumeratorCallback = NamedPropertyEnumeratorCallback;
316
+ using GenericNamedPropertyEnumeratorCallback V8_DEPRECATE_SOON(
317
+ "Use NamedPropertyEnumeratorCallback instead") =
318
+ NamedPropertyEnumeratorCallback;
313
319
 
314
320
  /**
315
321
  * Interceptor for defineProperty requests on an object.
@@ -341,7 +347,8 @@ using NamedPropertyDefinerCallback =
341
347
  // `info.GetReturnValue().Set(value)`. If the definer did not intercept the
342
348
  // request, i.e., if the request should be handled as if no interceptor is
343
349
  // present, do not not call `Set()` and do not produce side effects.
344
- using GenericNamedPropertyDefinerCallback =
350
+ using GenericNamedPropertyDefinerCallback V8_DEPRECATE_SOON(
351
+ "Use NamedPropertyDefinerCallback instead") =
345
352
  void (*)(Local<Name> property, const PropertyDescriptor& desc,
346
353
  const PropertyCallbackInfo<Value>& info);
347
354
 
@@ -377,7 +384,8 @@ using NamedPropertyDescriptorCallback = Intercepted (*)(
377
384
  // intercepted request. The return value must be an object that
378
385
  // can be converted to a PropertyDescriptor, e.g., a `v8::Value` returned from
379
386
  // `v8::Object::getOwnPropertyDescriptor`.
380
- using GenericNamedPropertyDescriptorCallback =
387
+ using GenericNamedPropertyDescriptorCallback V8_DEPRECATE_SOON(
388
+ "Use NamedPropertyDescriptorCallback instead") =
381
389
  void (*)(Local<Name> property, const PropertyCallbackInfo<Value>& info);
382
390
 
383
391
  // TODO(ishell): Rename IndexedPropertyXxxCallbackV2 back to
@@ -390,7 +398,8 @@ using GenericNamedPropertyDescriptorCallback =
390
398
  using IndexedPropertyGetterCallbackV2 =
391
399
  Intercepted (*)(uint32_t index, const PropertyCallbackInfo<Value>& info);
392
400
  // This variant will be deprecated soon.
393
- using IndexedPropertyGetterCallback =
401
+ using IndexedPropertyGetterCallback V8_DEPRECATE_SOON(
402
+ "Use IndexedPropertyGetterCallbackV2 instead") =
394
403
  void (*)(uint32_t index, const PropertyCallbackInfo<Value>& info);
395
404
 
396
405
  /**
@@ -399,7 +408,8 @@ using IndexedPropertyGetterCallback =
399
408
  using IndexedPropertySetterCallbackV2 = Intercepted (*)(
400
409
  uint32_t index, Local<Value> value, const PropertyCallbackInfo<void>& info);
401
410
  // This variant will be deprecated soon.
402
- using IndexedPropertySetterCallback =
411
+ using IndexedPropertySetterCallback V8_DEPRECATE_SOON(
412
+ "Use IndexedPropertySetterCallbackV2 instead") =
403
413
  void (*)(uint32_t index, Local<Value> value,
404
414
  const PropertyCallbackInfo<Value>& info);
405
415
 
@@ -409,7 +419,8 @@ using IndexedPropertySetterCallback =
409
419
  using IndexedPropertyQueryCallbackV2 =
410
420
  Intercepted (*)(uint32_t index, const PropertyCallbackInfo<Integer>& info);
411
421
  // This variant will be deprecated soon.
412
- using IndexedPropertyQueryCallback =
422
+ using IndexedPropertyQueryCallback V8_DEPRECATE_SOON(
423
+ "Use IndexedPropertyQueryCallbackV2 instead") =
413
424
  void (*)(uint32_t index, const PropertyCallbackInfo<Integer>& info);
414
425
 
415
426
  /**
@@ -418,7 +429,8 @@ using IndexedPropertyQueryCallback =
418
429
  using IndexedPropertyDeleterCallbackV2 =
419
430
  Intercepted (*)(uint32_t index, const PropertyCallbackInfo<Boolean>& info);
420
431
  // This variant will be deprecated soon.
421
- using IndexedPropertyDeleterCallback =
432
+ using IndexedPropertyDeleterCallback V8_DEPRECATE_SOON(
433
+ "Use IndexedPropertyDeleterCallbackV2 instead") =
422
434
  void (*)(uint32_t index, const PropertyCallbackInfo<Boolean>& info);
423
435
 
424
436
  /**
@@ -437,7 +449,8 @@ using IndexedPropertyDefinerCallbackV2 =
437
449
  Intercepted (*)(uint32_t index, const PropertyDescriptor& desc,
438
450
  const PropertyCallbackInfo<void>& info);
439
451
  // This variant will be deprecated soon.
440
- using IndexedPropertyDefinerCallback =
452
+ using IndexedPropertyDefinerCallback V8_DEPRECATE_SOON(
453
+ "Use IndexedPropertyDefinerCallbackV2 instead") =
441
454
  void (*)(uint32_t index, const PropertyDescriptor& desc,
442
455
  const PropertyCallbackInfo<Value>& info);
443
456
 
@@ -447,7 +460,8 @@ using IndexedPropertyDefinerCallback =
447
460
  using IndexedPropertyDescriptorCallbackV2 =
448
461
  Intercepted (*)(uint32_t index, const PropertyCallbackInfo<Value>& info);
449
462
  // This variant will be deprecated soon.
450
- using IndexedPropertyDescriptorCallback =
463
+ using IndexedPropertyDescriptorCallback V8_DEPRECATE_SOON(
464
+ "Use IndexedPropertyDescriptorCallbackV2 instead") =
451
465
  void (*)(uint32_t index, const PropertyCallbackInfo<Value>& info);
452
466
 
453
467
  /**
@@ -702,8 +716,8 @@ class V8_EXPORT FunctionTemplate : public Template {
702
716
  bool IsLeafTemplateForApiObject(v8::Local<v8::Value> value) const;
703
717
 
704
718
  /**
705
- * Checks if the object can be promoted to read only space, seals it and
706
- * prepares for promotion.
719
+ * Seal the object and mark it for promotion to read only space during
720
+ * context snapshot creation.
707
721
  *
708
722
  * This is an experimental feature and may still change significantly.
709
723
  */
@@ -1037,6 +1051,14 @@ class V8_EXPORT ObjectTemplate : public Template {
1037
1051
  void SetCodeLike();
1038
1052
  bool IsCodeLike() const;
1039
1053
 
1054
+ /**
1055
+ * Seal the object and mark it for promotion to read only space during
1056
+ * context snapshot creation.
1057
+ *
1058
+ * This is an experimental feature and may still change significantly.
1059
+ */
1060
+ void SealAndPrepareForPromotionToReadOnly();
1061
+
1040
1062
  V8_INLINE static ObjectTemplate* Cast(Data* data);
1041
1063
 
1042
1064
  private:
@@ -181,7 +181,7 @@ class TracedReference : public BasicTracedReference<T> {
181
181
  */
182
182
  template <class S>
183
183
  TracedReference(Isolate* isolate, Local<S> that) : BasicTracedReference<T>() {
184
- static_assert(std::is_base_of<T, S>::value, "type check");
184
+ static_assert(std::is_base_of_v<T, S>, "type check");
185
185
  if (V8_UNLIKELY(that.IsEmpty())) {
186
186
  return;
187
187
  }
@@ -202,7 +202,7 @@ class TracedReference : public BasicTracedReference<T> {
202
202
  template <class S>
203
203
  TracedReference(Isolate* isolate, Local<S> that, IsDroppable)
204
204
  : BasicTracedReference<T>() {
205
- static_assert(std::is_base_of<T, S>::value, "type check");
205
+ static_assert(std::is_base_of_v<T, S>, "type check");
206
206
  if (V8_UNLIKELY(that.IsEmpty())) {
207
207
  return;
208
208
  }
@@ -351,7 +351,7 @@ V8_INLINE bool operator!=(const v8::Local<U>& lhs,
351
351
  template <class T>
352
352
  template <class S>
353
353
  void TracedReference<T>::Reset(Isolate* isolate, const Local<S>& other) {
354
- static_assert(std::is_base_of<T, S>::value, "type check");
354
+ static_assert(std::is_base_of_v<T, S>, "type check");
355
355
  this->Reset();
356
356
  if (V8_UNLIKELY(other.IsEmpty())) {
357
357
  return;
@@ -366,7 +366,7 @@ template <class T>
366
366
  template <class S>
367
367
  void TracedReference<T>::Reset(Isolate* isolate, const Local<S>& other,
368
368
  IsDroppable) {
369
- static_assert(std::is_base_of<T, S>::value, "type check");
369
+ static_assert(std::is_base_of_v<T, S>, "type check");
370
370
  this->Reset();
371
371
  if (V8_UNLIKELY(other.IsEmpty())) {
372
372
  return;
@@ -381,7 +381,7 @@ template <class T>
381
381
  template <class S>
382
382
  TracedReference<T>& TracedReference<T>::operator=(
383
383
  TracedReference<S>&& rhs) noexcept {
384
- static_assert(std::is_base_of<T, S>::value, "type check");
384
+ static_assert(std::is_base_of_v<T, S>, "type check");
385
385
  *this = std::move(rhs.template As<T>());
386
386
  return *this;
387
387
  }
@@ -390,7 +390,7 @@ template <class T>
390
390
  template <class S>
391
391
  TracedReference<T>& TracedReference<T>::operator=(
392
392
  const TracedReference<S>& rhs) {
393
- static_assert(std::is_base_of<T, S>::value, "type check");
393
+ static_assert(std::is_base_of_v<T, S>, "type check");
394
394
  *this = rhs.template As<T>();
395
395
  return *this;
396
396
  }
@@ -33,6 +33,9 @@ struct V8_EXPORT RegisterState {
33
33
  };
34
34
 
35
35
  // A StateTag represents a possible state of the VM.
36
+ // This enum is append-only to preserve compatibility with historical logs.
37
+ // Add new states only at the end and do not reorder or remove existing values.
38
+ // LINT.IfChange
36
39
  enum StateTag : uint16_t {
37
40
  JS,
38
41
  GC,
@@ -44,7 +47,17 @@ enum StateTag : uint16_t {
44
47
  ATOMICS_WAIT,
45
48
  IDLE,
46
49
  LOGGING,
50
+ IDLE_EXTERNAL,
47
51
  };
52
+ // LINT.ThenChange(../tools/profile.mjs, ../tools/tickprocessor.mjs)
53
+
54
+ constexpr bool IsExternal(StateTag state) {
55
+ return state == EXTERNAL || state == IDLE_EXTERNAL;
56
+ }
57
+
58
+ constexpr bool IsIdle(StateTag state) {
59
+ return state == IDLE || state == IDLE_EXTERNAL;
60
+ }
48
61
 
49
62
  // The output structure filled up by GetStackSample API function.
50
63
  struct SampleInfo {
@@ -8,10 +8,10 @@
8
8
  // These macros define the version number for the current version.
9
9
  // NOTE these macros are used by some of the tool scripts and the build
10
10
  // system so their names cannot be changed without changing the scripts.
11
- #define V8_MAJOR_VERSION 13
12
- #define V8_MINOR_VERSION 6
13
- #define V8_BUILD_NUMBER 233
14
- #define V8_PATCH_LEVEL 10
11
+ #define V8_MAJOR_VERSION 14
12
+ #define V8_MINOR_VERSION 1
13
+ #define V8_BUILD_NUMBER 146
14
+ #define V8_PATCH_LEVEL 11
15
15
 
16
16
  // Use 1 for candidates and 0 otherwise.
17
17
  // (Boolean macro values are not supported by all preprocessors.)
@@ -85,6 +85,7 @@ path. Add it with -I<path> to the command line
85
85
  // V8_OS_DARWIN - Darwin (macOS, iOS)
86
86
  // V8_OS_MACOS - macOS
87
87
  // V8_OS_IOS - iOS
88
+ // V8_OS_TVOS - tvOS (also sets V8_OS_IOS)
88
89
  // V8_OS_NETBSD - NetBSD
89
90
  // V8_OS_OPENBSD - OpenBSD
90
91
  // V8_OS_POSIX - POSIX compatible (mostly everything except Windows)
@@ -108,6 +109,9 @@ path. Add it with -I<path> to the command line
108
109
  # if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
109
110
  # define V8_OS_IOS 1
110
111
  # define V8_OS_STRING "ios"
112
+ # if defined(TARGET_OS_TV) && TARGET_OS_TV
113
+ # define V8_OS_TVOS 1
114
+ # endif
111
115
  # else
112
116
  # define V8_OS_MACOS 1
113
117
  # define V8_OS_STRING "macos"
@@ -187,6 +191,7 @@ path. Add it with -I<path> to the command line
187
191
  // V8_TARGET_OS_ANDROID
188
192
  // V8_TARGET_OS_FUCHSIA
189
193
  // V8_TARGET_OS_IOS
194
+ // V8_TARGET_OS_TVOS (also sets V8_TARGET_OS_IOS)
190
195
  // V8_TARGET_OS_LINUX
191
196
  // V8_TARGET_OS_MACOS
192
197
  // V8_TARGET_OS_WIN
@@ -200,6 +205,7 @@ path. Add it with -I<path> to the command line
200
205
  # if !defined(V8_TARGET_OS_ANDROID) \
201
206
  && !defined(V8_TARGET_OS_FUCHSIA) \
202
207
  && !defined(V8_TARGET_OS_IOS) \
208
+ && !defined(V8_TARGET_OS_TVOS) \
203
209
  && !defined(V8_TARGET_OS_LINUX) \
204
210
  && !defined(V8_TARGET_OS_MACOS) \
205
211
  && !defined(V8_TARGET_OS_WIN) \
@@ -212,6 +218,7 @@ path. Add it with -I<path> to the command line
212
218
  # if defined(V8_TARGET_OS_ANDROID) \
213
219
  || defined(V8_TARGET_OS_FUCHSIA) \
214
220
  || defined(V8_TARGET_OS_IOS) \
221
+ || defined(V8_TARGET_OS_TVOS) \
215
222
  || defined(V8_TARGET_OS_LINUX) \
216
223
  || defined(V8_TARGET_OS_MACOS) \
217
224
  || defined(V8_TARGET_OS_WIN) \
@@ -232,6 +239,10 @@ path. Add it with -I<path> to the command line
232
239
  # define V8_TARGET_OS_IOS
233
240
  #endif
234
241
 
242
+ #ifdef V8_OS_TVOS
243
+ # define V8_TARGET_OS_TVOS
244
+ #endif
245
+
235
246
  #ifdef V8_OS_LINUX
236
247
  # define V8_TARGET_OS_LINUX
237
248
  #endif
@@ -322,6 +333,7 @@ path. Add it with -I<path> to the command line
322
333
  // V8_HAS_CPP_ATTRIBUTE_NODISCARD - [[nodiscard]] supported
323
334
  // V8_HAS_CPP_ATTRIBUTE_NO_UNIQUE_ADDRESS
324
335
  // - [[no_unique_address]] supported
336
+ // V8_HAS_CPP_ATTRIBUTE_LIFETIME_BOUND - [[clang::lifetimebound]] supported
325
337
  // V8_HAS_BUILTIN_ADD_OVERFLOW - __builtin_add_overflow() supported
326
338
  // V8_HAS_BUILTIN_BIT_CAST - __builtin_bit_cast() supported
327
339
  // V8_HAS_BUILTIN_BSWAP16 - __builtin_bswap16() supported
@@ -401,6 +413,7 @@ path. Add it with -I<path> to the command line
401
413
  # define V8_HAS_CPP_ATTRIBUTE_NO_UNIQUE_ADDRESS \
402
414
  (V8_HAS_CPP_ATTRIBUTE(no_unique_address))
403
415
  #endif
416
+ # define V8_HAS_CPP_ATTRIBUTE_LIFETIME_BOUND (V8_HAS_CPP_ATTRIBUTE(clang::lifetimebound))
404
417
 
405
418
  # define V8_HAS_BUILTIN_ADD_OVERFLOW (__has_builtin(__builtin_add_overflow))
406
419
  # define V8_HAS_BUILTIN_ASSUME (__has_builtin(__builtin_assume))
@@ -697,6 +710,17 @@ path. Add it with -I<path> to the command line
697
710
  #define V8_NODISCARD /* NOT SUPPORTED */
698
711
  #endif
699
712
 
713
+
714
+ // Annotate a function to ensure the function is retained in the compiled binary
715
+ // even if it appears to be unused to the compiler.
716
+ #if V8_HAS_ATTRIBUTE_USED && V8_HAS_ATTRIBUTE_VISIBILITY
717
+ #define V8_SYMBOL_USED \
718
+ __attribute__((used, visibility("default")))
719
+ #else
720
+ #define V8_SYMBOL_USED /* NOT SUPPORTED */
721
+ #endif
722
+
723
+
700
724
  // The no_unique_address attribute allows tail padding in a non-static data
701
725
  // member to overlap other members of the enclosing class (and in the special
702
726
  // case when the type is empty, permits it to fully overlap other members). The
@@ -726,6 +750,41 @@ path. Add it with -I<path> to the command line
726
750
  #define V8_NO_UNIQUE_ADDRESS /* NOT SUPPORTED */
727
751
  #endif
728
752
 
753
+ // Annotates a pointer or reference parameter or return value for a member
754
+ // function as having lifetime intertwined with the instance on which the
755
+ // function is called. For parameters, the function is assumed to store the
756
+ // value into the called-on object, so if the referred-to object is later
757
+ // destroyed, the called-on object is also considered to be dangling. For return
758
+ // values, the value is assumed to point into the called-on object, so if that
759
+ // object is destroyed, the returned value is also considered to be dangling.
760
+ // Useful to diagnose some cases of lifetime errors.
761
+ //
762
+ // See also:
763
+ // https://clang.llvm.org/docs/AttributeReference.html#lifetimebound
764
+ //
765
+ // Usage:
766
+ // ```
767
+ // struct S {
768
+ // S(int* p V8_LIFETIME_BOUND);
769
+ // int* Get() V8_LIFETIME_BOUND;
770
+ // };
771
+ // S Func1() {
772
+ // int i = 0;
773
+ // // The following return will not compile; diagnosed as returning address
774
+ // // of a stack object.
775
+ // return S(&i);
776
+ // }
777
+ // int* Func2(int* p) {
778
+ // // The following return will not compile; diagnosed as returning address
779
+ // // of a local temporary.
780
+ // return S(p).Get();
781
+ // }
782
+ #if V8_HAS_CPP_ATTRIBUTE_LIFETIME_BOUND
783
+ #define V8_LIFETIME_BOUND [[clang::lifetimebound]]
784
+ #else
785
+ #define V8_LIFETIME_BOUND /* NOT SUPPORTED */
786
+ #endif
787
+
729
788
  // Marks a type as being eligible for the "trivial" ABI despite having a
730
789
  // non-trivial destructor or copy/move constructor. Such types can be relocated
731
790
  // after construction by simply copying their memory, which makes them eligible
@@ -798,7 +857,8 @@ V8 shared library set USING_V8_SHARED.
798
857
  #else // V8_OS_WIN
799
858
 
800
859
  // Setup for Linux shared library export.
801
- #if V8_HAS_ATTRIBUTE_VISIBILITY && (defined(BUILDING_V8_SHARED) || USING_V8_SHARED)
860
+ #if (V8_HAS_ATTRIBUTE_VISIBILITY && \
861
+ (defined(BUILDING_V8_SHARED) || USING_V8_SHARED))
802
862
  # define V8_EXPORT __attribute__((visibility("default")))
803
863
  #else
804
864
  # define V8_EXPORT
@@ -909,8 +969,6 @@ V8 shared library set USING_V8_SHARED.
909
969
  #define V8_TARGET_ARCH_32_BIT 1
910
970
  #elif V8_TARGET_ARCH_ARM64
911
971
  #define V8_TARGET_ARCH_64_BIT 1
912
- #elif V8_TARGET_ARCH_MIPS
913
- #define V8_TARGET_ARCH_32_BIT 1
914
972
  #elif V8_TARGET_ARCH_MIPS64
915
973
  #define V8_TARGET_ARCH_64_BIT 1
916
974
  #elif V8_TARGET_ARCH_LOONG64
@@ -948,8 +1006,10 @@ V8 shared library set USING_V8_SHARED.
948
1006
  #if (V8_TARGET_ARCH_MIPS64 && !(V8_HOST_ARCH_X64 || V8_HOST_ARCH_MIPS64))
949
1007
  #error Target architecture mips64 is only supported on mips64 and x64 host
950
1008
  #endif
951
- #if (V8_TARGET_ARCH_RISCV64 && !(V8_HOST_ARCH_X64 || V8_HOST_ARCH_RISCV64))
952
- #error Target architecture riscv64 is only supported on riscv64 and x64 host
1009
+ #if (V8_TARGET_ARCH_RISCV64 && \
1010
+ !(V8_HOST_ARCH_X64 || V8_HOST_ARCH_ARM64 || V8_HOST_ARCH_RISCV64))
1011
+ #error Target architecture riscv64 is only supported on riscv64, x64, and \
1012
+ arm64 host
953
1013
  #endif
954
1014
  #if (V8_TARGET_ARCH_RISCV32 && !(V8_HOST_ARCH_IA32 || V8_HOST_ARCH_RISCV32))
955
1015
  #error Target architecture riscv32 is only supported on riscv32 and ia32 host
package/package.json CHANGED
@@ -1,10 +1,14 @@
1
1
  {
2
2
  "name": "node-darwin-x64",
3
- "version": "v24.8.0",
3
+ "version": "25.0.0",
4
4
  "description": "node",
5
+ "repository": {
6
+ "url": "git+https://github.com/aredridel/node-bin-gen.git"
7
+ },
5
8
  "bin": {
6
9
  "node": "bin/node"
7
10
  },
11
+ "license": "MIT",
8
12
  "files": [
9
13
  "bin/node",
10
14
  "share",