node-bin-darwin-arm64 16.13.2

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 (499) hide show
  1. package/CHANGELOG.md +2082 -0
  2. package/LICENSE +1616 -0
  3. package/README.md +738 -0
  4. package/bin/node +0 -0
  5. package/include/node/common.gypi +577 -0
  6. package/include/node/config.gypi +337 -0
  7. package/include/node/cppgc/common.h +29 -0
  8. package/include/node/js_native_api.h +561 -0
  9. package/include/node/js_native_api_types.h +160 -0
  10. package/include/node/libplatform/libplatform-export.h +29 -0
  11. package/include/node/libplatform/libplatform.h +117 -0
  12. package/include/node/libplatform/v8-tracing.h +334 -0
  13. package/include/node/node.h +1132 -0
  14. package/include/node/node_api.h +275 -0
  15. package/include/node/node_api_types.h +50 -0
  16. package/include/node/node_buffer.h +92 -0
  17. package/include/node/node_object_wrap.h +132 -0
  18. package/include/node/node_version.h +98 -0
  19. package/include/node/openssl/aes.h +92 -0
  20. package/include/node/openssl/archs/BSD-x86/asm/crypto/buildinf.h +48 -0
  21. package/include/node/openssl/archs/BSD-x86/asm/crypto/include/internal/bn_conf.h +28 -0
  22. package/include/node/openssl/archs/BSD-x86/asm/crypto/include/internal/dso_conf.h +17 -0
  23. package/include/node/openssl/archs/BSD-x86/asm/include/openssl/opensslconf.h +197 -0
  24. package/include/node/openssl/archs/BSD-x86/asm/include/progs.h +507 -0
  25. package/include/node/openssl/archs/BSD-x86/asm_avx2/crypto/buildinf.h +49 -0
  26. package/include/node/openssl/archs/BSD-x86/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  27. package/include/node/openssl/archs/BSD-x86/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  28. package/include/node/openssl/archs/BSD-x86/asm_avx2/include/openssl/opensslconf.h +197 -0
  29. package/include/node/openssl/archs/BSD-x86/asm_avx2/include/progs.h +507 -0
  30. package/include/node/openssl/archs/BSD-x86/no-asm/crypto/buildinf.h +30 -0
  31. package/include/node/openssl/archs/BSD-x86/no-asm/crypto/include/internal/bn_conf.h +28 -0
  32. package/include/node/openssl/archs/BSD-x86/no-asm/crypto/include/internal/dso_conf.h +17 -0
  33. package/include/node/openssl/archs/BSD-x86/no-asm/include/openssl/opensslconf.h +200 -0
  34. package/include/node/openssl/archs/BSD-x86/no-asm/include/progs.h +507 -0
  35. package/include/node/openssl/archs/BSD-x86_64/asm/crypto/buildinf.h +46 -0
  36. package/include/node/openssl/archs/BSD-x86_64/asm/crypto/include/internal/bn_conf.h +28 -0
  37. package/include/node/openssl/archs/BSD-x86_64/asm/crypto/include/internal/dso_conf.h +17 -0
  38. package/include/node/openssl/archs/BSD-x86_64/asm/include/openssl/opensslconf.h +197 -0
  39. package/include/node/openssl/archs/BSD-x86_64/asm/include/progs.h +507 -0
  40. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/crypto/buildinf.h +47 -0
  41. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  42. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  43. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/include/openssl/opensslconf.h +197 -0
  44. package/include/node/openssl/archs/BSD-x86_64/asm_avx2/include/progs.h +507 -0
  45. package/include/node/openssl/archs/BSD-x86_64/no-asm/crypto/buildinf.h +29 -0
  46. package/include/node/openssl/archs/BSD-x86_64/no-asm/crypto/include/internal/bn_conf.h +28 -0
  47. package/include/node/openssl/archs/BSD-x86_64/no-asm/crypto/include/internal/dso_conf.h +17 -0
  48. package/include/node/openssl/archs/BSD-x86_64/no-asm/include/openssl/opensslconf.h +200 -0
  49. package/include/node/openssl/archs/BSD-x86_64/no-asm/include/progs.h +507 -0
  50. package/include/node/openssl/archs/VC-WIN32/asm/crypto/buildinf.h +45 -0
  51. package/include/node/openssl/archs/VC-WIN32/asm/crypto/include/internal/bn_conf.h +28 -0
  52. package/include/node/openssl/archs/VC-WIN32/asm/crypto/include/internal/dso_conf.h +16 -0
  53. package/include/node/openssl/archs/VC-WIN32/asm/include/openssl/opensslconf.h +203 -0
  54. package/include/node/openssl/archs/VC-WIN32/asm/include/progs.h +507 -0
  55. package/include/node/openssl/archs/VC-WIN32/asm_avx2/crypto/buildinf.h +45 -0
  56. package/include/node/openssl/archs/VC-WIN32/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  57. package/include/node/openssl/archs/VC-WIN32/asm_avx2/crypto/include/internal/dso_conf.h +16 -0
  58. package/include/node/openssl/archs/VC-WIN32/asm_avx2/include/openssl/opensslconf.h +203 -0
  59. package/include/node/openssl/archs/VC-WIN32/asm_avx2/include/progs.h +507 -0
  60. package/include/node/openssl/archs/VC-WIN32/no-asm/crypto/buildinf.h +45 -0
  61. package/include/node/openssl/archs/VC-WIN32/no-asm/crypto/include/internal/bn_conf.h +28 -0
  62. package/include/node/openssl/archs/VC-WIN32/no-asm/crypto/include/internal/dso_conf.h +16 -0
  63. package/include/node/openssl/archs/VC-WIN32/no-asm/include/openssl/opensslconf.h +206 -0
  64. package/include/node/openssl/archs/VC-WIN32/no-asm/include/progs.h +507 -0
  65. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/crypto/buildinf.h +29 -0
  66. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/crypto/include/internal/bn_conf.h +28 -0
  67. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/crypto/include/internal/dso_conf.h +16 -0
  68. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/include/openssl/opensslconf.h +203 -0
  69. package/include/node/openssl/archs/VC-WIN64-ARM/no-asm/include/progs.h +507 -0
  70. package/include/node/openssl/archs/VC-WIN64A/asm/crypto/buildinf.h +23 -0
  71. package/include/node/openssl/archs/VC-WIN64A/asm/crypto/include/internal/bn_conf.h +28 -0
  72. package/include/node/openssl/archs/VC-WIN64A/asm/crypto/include/internal/dso_conf.h +16 -0
  73. package/include/node/openssl/archs/VC-WIN64A/asm/include/openssl/opensslconf.h +203 -0
  74. package/include/node/openssl/archs/VC-WIN64A/asm/include/progs.h +507 -0
  75. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/crypto/buildinf.h +23 -0
  76. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  77. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/crypto/include/internal/dso_conf.h +16 -0
  78. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/include/openssl/opensslconf.h +203 -0
  79. package/include/node/openssl/archs/VC-WIN64A/asm_avx2/include/progs.h +507 -0
  80. package/include/node/openssl/archs/VC-WIN64A/no-asm/crypto/buildinf.h +23 -0
  81. package/include/node/openssl/archs/VC-WIN64A/no-asm/crypto/include/internal/bn_conf.h +28 -0
  82. package/include/node/openssl/archs/VC-WIN64A/no-asm/crypto/include/internal/dso_conf.h +16 -0
  83. package/include/node/openssl/archs/VC-WIN64A/no-asm/include/openssl/opensslconf.h +206 -0
  84. package/include/node/openssl/archs/VC-WIN64A/no-asm/include/progs.h +507 -0
  85. package/include/node/openssl/archs/aix-gcc/asm/crypto/buildinf.h +35 -0
  86. package/include/node/openssl/archs/aix-gcc/asm/crypto/include/internal/bn_conf.h +28 -0
  87. package/include/node/openssl/archs/aix-gcc/asm/crypto/include/internal/dso_conf.h +17 -0
  88. package/include/node/openssl/archs/aix-gcc/asm/include/openssl/opensslconf.h +203 -0
  89. package/include/node/openssl/archs/aix-gcc/asm/include/progs.h +507 -0
  90. package/include/node/openssl/archs/aix-gcc/asm_avx2/crypto/buildinf.h +36 -0
  91. package/include/node/openssl/archs/aix-gcc/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  92. package/include/node/openssl/archs/aix-gcc/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  93. package/include/node/openssl/archs/aix-gcc/asm_avx2/include/openssl/opensslconf.h +203 -0
  94. package/include/node/openssl/archs/aix-gcc/asm_avx2/include/progs.h +507 -0
  95. package/include/node/openssl/archs/aix-gcc/no-asm/crypto/buildinf.h +26 -0
  96. package/include/node/openssl/archs/aix-gcc/no-asm/crypto/include/internal/bn_conf.h +28 -0
  97. package/include/node/openssl/archs/aix-gcc/no-asm/crypto/include/internal/dso_conf.h +17 -0
  98. package/include/node/openssl/archs/aix-gcc/no-asm/include/openssl/opensslconf.h +206 -0
  99. package/include/node/openssl/archs/aix-gcc/no-asm/include/progs.h +507 -0
  100. package/include/node/openssl/archs/aix64-gcc/asm/crypto/buildinf.h +38 -0
  101. package/include/node/openssl/archs/aix64-gcc/asm/crypto/include/internal/bn_conf.h +28 -0
  102. package/include/node/openssl/archs/aix64-gcc/asm/crypto/include/internal/dso_conf.h +17 -0
  103. package/include/node/openssl/archs/aix64-gcc/asm/include/openssl/opensslconf.h +203 -0
  104. package/include/node/openssl/archs/aix64-gcc/asm/include/progs.h +507 -0
  105. package/include/node/openssl/archs/aix64-gcc/asm_avx2/crypto/buildinf.h +39 -0
  106. package/include/node/openssl/archs/aix64-gcc/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  107. package/include/node/openssl/archs/aix64-gcc/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  108. package/include/node/openssl/archs/aix64-gcc/asm_avx2/include/openssl/opensslconf.h +203 -0
  109. package/include/node/openssl/archs/aix64-gcc/asm_avx2/include/progs.h +507 -0
  110. package/include/node/openssl/archs/aix64-gcc/no-asm/crypto/buildinf.h +27 -0
  111. package/include/node/openssl/archs/aix64-gcc/no-asm/crypto/include/internal/bn_conf.h +28 -0
  112. package/include/node/openssl/archs/aix64-gcc/no-asm/crypto/include/internal/dso_conf.h +17 -0
  113. package/include/node/openssl/archs/aix64-gcc/no-asm/include/openssl/opensslconf.h +206 -0
  114. package/include/node/openssl/archs/aix64-gcc/no-asm/include/progs.h +507 -0
  115. package/include/node/openssl/archs/darwin-i386-cc/asm/crypto/buildinf.h +47 -0
  116. package/include/node/openssl/archs/darwin-i386-cc/asm/crypto/include/internal/bn_conf.h +28 -0
  117. package/include/node/openssl/archs/darwin-i386-cc/asm/crypto/include/internal/dso_conf.h +17 -0
  118. package/include/node/openssl/archs/darwin-i386-cc/asm/include/openssl/opensslconf.h +203 -0
  119. package/include/node/openssl/archs/darwin-i386-cc/asm/include/progs.h +507 -0
  120. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/crypto/buildinf.h +48 -0
  121. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  122. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  123. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/include/openssl/opensslconf.h +203 -0
  124. package/include/node/openssl/archs/darwin-i386-cc/asm_avx2/include/progs.h +507 -0
  125. package/include/node/openssl/archs/darwin-i386-cc/no-asm/crypto/buildinf.h +29 -0
  126. package/include/node/openssl/archs/darwin-i386-cc/no-asm/crypto/include/internal/bn_conf.h +28 -0
  127. package/include/node/openssl/archs/darwin-i386-cc/no-asm/crypto/include/internal/dso_conf.h +17 -0
  128. package/include/node/openssl/archs/darwin-i386-cc/no-asm/include/openssl/opensslconf.h +206 -0
  129. package/include/node/openssl/archs/darwin-i386-cc/no-asm/include/progs.h +507 -0
  130. package/include/node/openssl/archs/darwin64-arm64-cc/asm/crypto/buildinf.h +38 -0
  131. package/include/node/openssl/archs/darwin64-arm64-cc/asm/crypto/include/internal/bn_conf.h +28 -0
  132. package/include/node/openssl/archs/darwin64-arm64-cc/asm/crypto/include/internal/dso_conf.h +17 -0
  133. package/include/node/openssl/archs/darwin64-arm64-cc/asm/include/openssl/opensslconf.h +203 -0
  134. package/include/node/openssl/archs/darwin64-arm64-cc/asm/include/progs.h +507 -0
  135. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/crypto/buildinf.h +39 -0
  136. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  137. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  138. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/include/openssl/opensslconf.h +203 -0
  139. package/include/node/openssl/archs/darwin64-arm64-cc/asm_avx2/include/progs.h +507 -0
  140. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/crypto/buildinf.h +28 -0
  141. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/crypto/include/internal/bn_conf.h +28 -0
  142. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/crypto/include/internal/dso_conf.h +17 -0
  143. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/include/openssl/opensslconf.h +206 -0
  144. package/include/node/openssl/archs/darwin64-arm64-cc/no-asm/include/progs.h +507 -0
  145. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/crypto/buildinf.h +46 -0
  146. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/crypto/include/internal/bn_conf.h +28 -0
  147. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/crypto/include/internal/dso_conf.h +17 -0
  148. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/include/openssl/opensslconf.h +203 -0
  149. package/include/node/openssl/archs/darwin64-x86_64-cc/asm/include/progs.h +507 -0
  150. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/crypto/buildinf.h +47 -0
  151. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  152. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  153. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/include/openssl/opensslconf.h +203 -0
  154. package/include/node/openssl/archs/darwin64-x86_64-cc/asm_avx2/include/progs.h +507 -0
  155. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/crypto/buildinf.h +28 -0
  156. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/crypto/include/internal/bn_conf.h +28 -0
  157. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/crypto/include/internal/dso_conf.h +17 -0
  158. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/include/openssl/opensslconf.h +206 -0
  159. package/include/node/openssl/archs/darwin64-x86_64-cc/no-asm/include/progs.h +507 -0
  160. package/include/node/openssl/archs/linux-aarch64/asm/crypto/buildinf.h +38 -0
  161. package/include/node/openssl/archs/linux-aarch64/asm/crypto/include/internal/bn_conf.h +28 -0
  162. package/include/node/openssl/archs/linux-aarch64/asm/crypto/include/internal/dso_conf.h +17 -0
  163. package/include/node/openssl/archs/linux-aarch64/asm/include/openssl/opensslconf.h +200 -0
  164. package/include/node/openssl/archs/linux-aarch64/asm/include/progs.h +507 -0
  165. package/include/node/openssl/archs/linux-aarch64/asm_avx2/crypto/buildinf.h +39 -0
  166. package/include/node/openssl/archs/linux-aarch64/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  167. package/include/node/openssl/archs/linux-aarch64/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  168. package/include/node/openssl/archs/linux-aarch64/asm_avx2/include/openssl/opensslconf.h +200 -0
  169. package/include/node/openssl/archs/linux-aarch64/asm_avx2/include/progs.h +507 -0
  170. package/include/node/openssl/archs/linux-aarch64/no-asm/crypto/buildinf.h +28 -0
  171. package/include/node/openssl/archs/linux-aarch64/no-asm/crypto/include/internal/bn_conf.h +28 -0
  172. package/include/node/openssl/archs/linux-aarch64/no-asm/crypto/include/internal/dso_conf.h +17 -0
  173. package/include/node/openssl/archs/linux-aarch64/no-asm/include/openssl/opensslconf.h +203 -0
  174. package/include/node/openssl/archs/linux-aarch64/no-asm/include/progs.h +507 -0
  175. package/include/node/openssl/archs/linux-armv4/asm/crypto/buildinf.h +40 -0
  176. package/include/node/openssl/archs/linux-armv4/asm/crypto/include/internal/bn_conf.h +28 -0
  177. package/include/node/openssl/archs/linux-armv4/asm/crypto/include/internal/dso_conf.h +17 -0
  178. package/include/node/openssl/archs/linux-armv4/asm/include/openssl/opensslconf.h +200 -0
  179. package/include/node/openssl/archs/linux-armv4/asm/include/progs.h +507 -0
  180. package/include/node/openssl/archs/linux-armv4/asm_avx2/crypto/buildinf.h +42 -0
  181. package/include/node/openssl/archs/linux-armv4/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  182. package/include/node/openssl/archs/linux-armv4/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  183. package/include/node/openssl/archs/linux-armv4/asm_avx2/include/openssl/opensslconf.h +200 -0
  184. package/include/node/openssl/archs/linux-armv4/asm_avx2/include/progs.h +507 -0
  185. package/include/node/openssl/archs/linux-armv4/no-asm/crypto/buildinf.h +28 -0
  186. package/include/node/openssl/archs/linux-armv4/no-asm/crypto/include/internal/bn_conf.h +28 -0
  187. package/include/node/openssl/archs/linux-armv4/no-asm/crypto/include/internal/dso_conf.h +17 -0
  188. package/include/node/openssl/archs/linux-armv4/no-asm/include/openssl/opensslconf.h +203 -0
  189. package/include/node/openssl/archs/linux-armv4/no-asm/include/progs.h +507 -0
  190. package/include/node/openssl/archs/linux-elf/asm/crypto/buildinf.h +48 -0
  191. package/include/node/openssl/archs/linux-elf/asm/crypto/include/internal/bn_conf.h +28 -0
  192. package/include/node/openssl/archs/linux-elf/asm/crypto/include/internal/dso_conf.h +17 -0
  193. package/include/node/openssl/archs/linux-elf/asm/include/openssl/opensslconf.h +200 -0
  194. package/include/node/openssl/archs/linux-elf/asm/include/progs.h +507 -0
  195. package/include/node/openssl/archs/linux-elf/asm_avx2/crypto/buildinf.h +49 -0
  196. package/include/node/openssl/archs/linux-elf/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  197. package/include/node/openssl/archs/linux-elf/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  198. package/include/node/openssl/archs/linux-elf/asm_avx2/include/openssl/opensslconf.h +200 -0
  199. package/include/node/openssl/archs/linux-elf/asm_avx2/include/progs.h +507 -0
  200. package/include/node/openssl/archs/linux-elf/no-asm/crypto/buildinf.h +30 -0
  201. package/include/node/openssl/archs/linux-elf/no-asm/crypto/include/internal/bn_conf.h +28 -0
  202. package/include/node/openssl/archs/linux-elf/no-asm/crypto/include/internal/dso_conf.h +17 -0
  203. package/include/node/openssl/archs/linux-elf/no-asm/include/openssl/opensslconf.h +203 -0
  204. package/include/node/openssl/archs/linux-elf/no-asm/include/progs.h +507 -0
  205. package/include/node/openssl/archs/linux-ppc/asm/crypto/buildinf.h +37 -0
  206. package/include/node/openssl/archs/linux-ppc/asm/crypto/include/internal/bn_conf.h +28 -0
  207. package/include/node/openssl/archs/linux-ppc/asm/crypto/include/internal/dso_conf.h +17 -0
  208. package/include/node/openssl/archs/linux-ppc/asm/include/openssl/opensslconf.h +200 -0
  209. package/include/node/openssl/archs/linux-ppc/asm/include/progs.h +507 -0
  210. package/include/node/openssl/archs/linux-ppc/asm_avx2/crypto/buildinf.h +38 -0
  211. package/include/node/openssl/archs/linux-ppc/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  212. package/include/node/openssl/archs/linux-ppc/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  213. package/include/node/openssl/archs/linux-ppc/asm_avx2/include/openssl/opensslconf.h +200 -0
  214. package/include/node/openssl/archs/linux-ppc/asm_avx2/include/progs.h +507 -0
  215. package/include/node/openssl/archs/linux-ppc/no-asm/crypto/buildinf.h +28 -0
  216. package/include/node/openssl/archs/linux-ppc/no-asm/crypto/include/internal/bn_conf.h +28 -0
  217. package/include/node/openssl/archs/linux-ppc/no-asm/crypto/include/internal/dso_conf.h +17 -0
  218. package/include/node/openssl/archs/linux-ppc/no-asm/include/openssl/opensslconf.h +203 -0
  219. package/include/node/openssl/archs/linux-ppc/no-asm/include/progs.h +507 -0
  220. package/include/node/openssl/archs/linux-ppc64/asm/crypto/buildinf.h +40 -0
  221. package/include/node/openssl/archs/linux-ppc64/asm/crypto/include/internal/bn_conf.h +28 -0
  222. package/include/node/openssl/archs/linux-ppc64/asm/crypto/include/internal/dso_conf.h +17 -0
  223. package/include/node/openssl/archs/linux-ppc64/asm/include/openssl/opensslconf.h +200 -0
  224. package/include/node/openssl/archs/linux-ppc64/asm/include/progs.h +507 -0
  225. package/include/node/openssl/archs/linux-ppc64/asm_avx2/crypto/buildinf.h +41 -0
  226. package/include/node/openssl/archs/linux-ppc64/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  227. package/include/node/openssl/archs/linux-ppc64/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  228. package/include/node/openssl/archs/linux-ppc64/asm_avx2/include/openssl/opensslconf.h +200 -0
  229. package/include/node/openssl/archs/linux-ppc64/asm_avx2/include/progs.h +507 -0
  230. package/include/node/openssl/archs/linux-ppc64/no-asm/crypto/buildinf.h +29 -0
  231. package/include/node/openssl/archs/linux-ppc64/no-asm/crypto/include/internal/bn_conf.h +28 -0
  232. package/include/node/openssl/archs/linux-ppc64/no-asm/crypto/include/internal/dso_conf.h +17 -0
  233. package/include/node/openssl/archs/linux-ppc64/no-asm/include/openssl/opensslconf.h +203 -0
  234. package/include/node/openssl/archs/linux-ppc64/no-asm/include/progs.h +507 -0
  235. package/include/node/openssl/archs/linux-ppc64le/asm/crypto/buildinf.h +40 -0
  236. package/include/node/openssl/archs/linux-ppc64le/asm/crypto/include/internal/bn_conf.h +28 -0
  237. package/include/node/openssl/archs/linux-ppc64le/asm/crypto/include/internal/dso_conf.h +17 -0
  238. package/include/node/openssl/archs/linux-ppc64le/asm/include/openssl/opensslconf.h +200 -0
  239. package/include/node/openssl/archs/linux-ppc64le/asm/include/progs.h +507 -0
  240. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/crypto/buildinf.h +41 -0
  241. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  242. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  243. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/include/openssl/opensslconf.h +200 -0
  244. package/include/node/openssl/archs/linux-ppc64le/asm_avx2/include/progs.h +507 -0
  245. package/include/node/openssl/archs/linux-ppc64le/no-asm/crypto/buildinf.h +29 -0
  246. package/include/node/openssl/archs/linux-ppc64le/no-asm/crypto/include/internal/bn_conf.h +28 -0
  247. package/include/node/openssl/archs/linux-ppc64le/no-asm/crypto/include/internal/dso_conf.h +17 -0
  248. package/include/node/openssl/archs/linux-ppc64le/no-asm/include/openssl/opensslconf.h +203 -0
  249. package/include/node/openssl/archs/linux-ppc64le/no-asm/include/progs.h +507 -0
  250. package/include/node/openssl/archs/linux-x32/asm/crypto/buildinf.h +46 -0
  251. package/include/node/openssl/archs/linux-x32/asm/crypto/include/internal/bn_conf.h +28 -0
  252. package/include/node/openssl/archs/linux-x32/asm/crypto/include/internal/dso_conf.h +17 -0
  253. package/include/node/openssl/archs/linux-x32/asm/include/openssl/opensslconf.h +200 -0
  254. package/include/node/openssl/archs/linux-x32/asm/include/progs.h +507 -0
  255. package/include/node/openssl/archs/linux-x32/asm_avx2/crypto/buildinf.h +48 -0
  256. package/include/node/openssl/archs/linux-x32/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  257. package/include/node/openssl/archs/linux-x32/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  258. package/include/node/openssl/archs/linux-x32/asm_avx2/include/openssl/opensslconf.h +200 -0
  259. package/include/node/openssl/archs/linux-x32/asm_avx2/include/progs.h +507 -0
  260. package/include/node/openssl/archs/linux-x32/no-asm/crypto/buildinf.h +29 -0
  261. package/include/node/openssl/archs/linux-x32/no-asm/crypto/include/internal/bn_conf.h +28 -0
  262. package/include/node/openssl/archs/linux-x32/no-asm/crypto/include/internal/dso_conf.h +17 -0
  263. package/include/node/openssl/archs/linux-x32/no-asm/include/openssl/opensslconf.h +203 -0
  264. package/include/node/openssl/archs/linux-x32/no-asm/include/progs.h +507 -0
  265. package/include/node/openssl/archs/linux-x86_64/asm/crypto/buildinf.h +46 -0
  266. package/include/node/openssl/archs/linux-x86_64/asm/crypto/include/internal/bn_conf.h +28 -0
  267. package/include/node/openssl/archs/linux-x86_64/asm/crypto/include/internal/dso_conf.h +17 -0
  268. package/include/node/openssl/archs/linux-x86_64/asm/include/openssl/opensslconf.h +200 -0
  269. package/include/node/openssl/archs/linux-x86_64/asm/include/progs.h +507 -0
  270. package/include/node/openssl/archs/linux-x86_64/asm_avx2/crypto/buildinf.h +47 -0
  271. package/include/node/openssl/archs/linux-x86_64/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  272. package/include/node/openssl/archs/linux-x86_64/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  273. package/include/node/openssl/archs/linux-x86_64/asm_avx2/include/openssl/opensslconf.h +200 -0
  274. package/include/node/openssl/archs/linux-x86_64/asm_avx2/include/progs.h +507 -0
  275. package/include/node/openssl/archs/linux-x86_64/no-asm/crypto/buildinf.h +29 -0
  276. package/include/node/openssl/archs/linux-x86_64/no-asm/crypto/include/internal/bn_conf.h +28 -0
  277. package/include/node/openssl/archs/linux-x86_64/no-asm/crypto/include/internal/dso_conf.h +17 -0
  278. package/include/node/openssl/archs/linux-x86_64/no-asm/include/openssl/opensslconf.h +203 -0
  279. package/include/node/openssl/archs/linux-x86_64/no-asm/include/progs.h +507 -0
  280. package/include/node/openssl/archs/linux32-s390x/asm/crypto/buildinf.h +43 -0
  281. package/include/node/openssl/archs/linux32-s390x/asm/crypto/include/internal/bn_conf.h +28 -0
  282. package/include/node/openssl/archs/linux32-s390x/asm/crypto/include/internal/dso_conf.h +17 -0
  283. package/include/node/openssl/archs/linux32-s390x/asm/include/openssl/opensslconf.h +200 -0
  284. package/include/node/openssl/archs/linux32-s390x/asm/include/progs.h +507 -0
  285. package/include/node/openssl/archs/linux32-s390x/asm_avx2/crypto/buildinf.h +44 -0
  286. package/include/node/openssl/archs/linux32-s390x/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  287. package/include/node/openssl/archs/linux32-s390x/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  288. package/include/node/openssl/archs/linux32-s390x/asm_avx2/include/openssl/opensslconf.h +200 -0
  289. package/include/node/openssl/archs/linux32-s390x/asm_avx2/include/progs.h +507 -0
  290. package/include/node/openssl/archs/linux32-s390x/no-asm/crypto/buildinf.h +29 -0
  291. package/include/node/openssl/archs/linux32-s390x/no-asm/crypto/include/internal/bn_conf.h +28 -0
  292. package/include/node/openssl/archs/linux32-s390x/no-asm/crypto/include/internal/dso_conf.h +17 -0
  293. package/include/node/openssl/archs/linux32-s390x/no-asm/include/openssl/opensslconf.h +203 -0
  294. package/include/node/openssl/archs/linux32-s390x/no-asm/include/progs.h +507 -0
  295. package/include/node/openssl/archs/linux64-mips64/asm/crypto/buildinf.h +35 -0
  296. package/include/node/openssl/archs/linux64-mips64/asm/crypto/include/internal/bn_conf.h +28 -0
  297. package/include/node/openssl/archs/linux64-mips64/asm/crypto/include/internal/dso_conf.h +17 -0
  298. package/include/node/openssl/archs/linux64-mips64/asm/include/openssl/opensslconf.h +200 -0
  299. package/include/node/openssl/archs/linux64-mips64/asm/include/progs.h +507 -0
  300. package/include/node/openssl/archs/linux64-mips64/asm_avx2/crypto/buildinf.h +36 -0
  301. package/include/node/openssl/archs/linux64-mips64/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  302. package/include/node/openssl/archs/linux64-mips64/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  303. package/include/node/openssl/archs/linux64-mips64/asm_avx2/include/openssl/opensslconf.h +200 -0
  304. package/include/node/openssl/archs/linux64-mips64/asm_avx2/include/progs.h +507 -0
  305. package/include/node/openssl/archs/linux64-mips64/no-asm/crypto/buildinf.h +28 -0
  306. package/include/node/openssl/archs/linux64-mips64/no-asm/crypto/include/internal/bn_conf.h +28 -0
  307. package/include/node/openssl/archs/linux64-mips64/no-asm/crypto/include/internal/dso_conf.h +17 -0
  308. package/include/node/openssl/archs/linux64-mips64/no-asm/include/openssl/opensslconf.h +203 -0
  309. package/include/node/openssl/archs/linux64-mips64/no-asm/include/progs.h +507 -0
  310. package/include/node/openssl/archs/linux64-riscv64/no-asm/crypto/buildinf.h +28 -0
  311. package/include/node/openssl/archs/linux64-riscv64/no-asm/crypto/include/internal/bn_conf.h +28 -0
  312. package/include/node/openssl/archs/linux64-riscv64/no-asm/crypto/include/internal/dso_conf.h +17 -0
  313. package/include/node/openssl/archs/linux64-riscv64/no-asm/include/openssl/opensslconf.h +203 -0
  314. package/include/node/openssl/archs/linux64-riscv64/no-asm/include/progs.h +507 -0
  315. package/include/node/openssl/archs/linux64-s390x/asm/crypto/buildinf.h +42 -0
  316. package/include/node/openssl/archs/linux64-s390x/asm/crypto/include/internal/bn_conf.h +28 -0
  317. package/include/node/openssl/archs/linux64-s390x/asm/crypto/include/internal/dso_conf.h +17 -0
  318. package/include/node/openssl/archs/linux64-s390x/asm/include/openssl/opensslconf.h +200 -0
  319. package/include/node/openssl/archs/linux64-s390x/asm/include/progs.h +507 -0
  320. package/include/node/openssl/archs/linux64-s390x/asm_avx2/crypto/buildinf.h +43 -0
  321. package/include/node/openssl/archs/linux64-s390x/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  322. package/include/node/openssl/archs/linux64-s390x/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  323. package/include/node/openssl/archs/linux64-s390x/asm_avx2/include/openssl/opensslconf.h +200 -0
  324. package/include/node/openssl/archs/linux64-s390x/asm_avx2/include/progs.h +507 -0
  325. package/include/node/openssl/archs/linux64-s390x/no-asm/crypto/buildinf.h +29 -0
  326. package/include/node/openssl/archs/linux64-s390x/no-asm/crypto/include/internal/bn_conf.h +28 -0
  327. package/include/node/openssl/archs/linux64-s390x/no-asm/crypto/include/internal/dso_conf.h +17 -0
  328. package/include/node/openssl/archs/linux64-s390x/no-asm/include/openssl/opensslconf.h +203 -0
  329. package/include/node/openssl/archs/linux64-s390x/no-asm/include/progs.h +507 -0
  330. package/include/node/openssl/archs/solaris-x86-gcc/asm/crypto/buildinf.h +47 -0
  331. package/include/node/openssl/archs/solaris-x86-gcc/asm/crypto/include/internal/bn_conf.h +28 -0
  332. package/include/node/openssl/archs/solaris-x86-gcc/asm/crypto/include/internal/dso_conf.h +17 -0
  333. package/include/node/openssl/archs/solaris-x86-gcc/asm/include/openssl/opensslconf.h +200 -0
  334. package/include/node/openssl/archs/solaris-x86-gcc/asm/include/progs.h +507 -0
  335. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/crypto/buildinf.h +48 -0
  336. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  337. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  338. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/include/openssl/opensslconf.h +200 -0
  339. package/include/node/openssl/archs/solaris-x86-gcc/asm_avx2/include/progs.h +507 -0
  340. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/crypto/buildinf.h +29 -0
  341. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/crypto/include/internal/bn_conf.h +28 -0
  342. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/crypto/include/internal/dso_conf.h +17 -0
  343. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/include/openssl/opensslconf.h +203 -0
  344. package/include/node/openssl/archs/solaris-x86-gcc/no-asm/include/progs.h +507 -0
  345. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/crypto/buildinf.h +46 -0
  346. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/crypto/include/internal/bn_conf.h +28 -0
  347. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/crypto/include/internal/dso_conf.h +17 -0
  348. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/include/openssl/opensslconf.h +200 -0
  349. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm/include/progs.h +507 -0
  350. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/crypto/buildinf.h +47 -0
  351. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/crypto/include/internal/bn_conf.h +28 -0
  352. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/crypto/include/internal/dso_conf.h +17 -0
  353. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/include/openssl/opensslconf.h +200 -0
  354. package/include/node/openssl/archs/solaris64-x86_64-gcc/asm_avx2/include/progs.h +507 -0
  355. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/crypto/buildinf.h +28 -0
  356. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/crypto/include/internal/bn_conf.h +28 -0
  357. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/crypto/include/internal/dso_conf.h +17 -0
  358. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/include/openssl/opensslconf.h +203 -0
  359. package/include/node/openssl/archs/solaris64-x86_64-gcc/no-asm/include/progs.h +507 -0
  360. package/include/node/openssl/asn1.h +886 -0
  361. package/include/node/openssl/asn1_mac.h +10 -0
  362. package/include/node/openssl/asn1err.h +256 -0
  363. package/include/node/openssl/asn1t.h +945 -0
  364. package/include/node/openssl/async.h +76 -0
  365. package/include/node/openssl/asyncerr.h +42 -0
  366. package/include/node/openssl/bio.h +801 -0
  367. package/include/node/openssl/bioerr.h +124 -0
  368. package/include/node/openssl/blowfish.h +61 -0
  369. package/include/node/openssl/bn.h +539 -0
  370. package/include/node/openssl/bn_conf.h +5 -0
  371. package/include/node/openssl/bn_conf_asm.h +59 -0
  372. package/include/node/openssl/bn_conf_no-asm.h +61 -0
  373. package/include/node/openssl/bnerr.h +100 -0
  374. package/include/node/openssl/buffer.h +58 -0
  375. package/include/node/openssl/buffererr.h +34 -0
  376. package/include/node/openssl/camellia.h +83 -0
  377. package/include/node/openssl/cast.h +53 -0
  378. package/include/node/openssl/cmac.h +41 -0
  379. package/include/node/openssl/cms.h +339 -0
  380. package/include/node/openssl/cmserr.h +202 -0
  381. package/include/node/openssl/comp.h +53 -0
  382. package/include/node/openssl/comperr.h +44 -0
  383. package/include/node/openssl/conf.h +168 -0
  384. package/include/node/openssl/conf_api.h +40 -0
  385. package/include/node/openssl/conferr.h +76 -0
  386. package/include/node/openssl/crypto.h +449 -0
  387. package/include/node/openssl/cryptoerr.h +57 -0
  388. package/include/node/openssl/ct.h +474 -0
  389. package/include/node/openssl/cterr.h +80 -0
  390. package/include/node/openssl/des.h +174 -0
  391. package/include/node/openssl/dh.h +340 -0
  392. package/include/node/openssl/dherr.h +88 -0
  393. package/include/node/openssl/dsa.h +244 -0
  394. package/include/node/openssl/dsaerr.h +72 -0
  395. package/include/node/openssl/dso_conf.h +5 -0
  396. package/include/node/openssl/dso_conf_asm.h +59 -0
  397. package/include/node/openssl/dso_conf_no-asm.h +61 -0
  398. package/include/node/openssl/dtls1.h +55 -0
  399. package/include/node/openssl/e_os2.h +301 -0
  400. package/include/node/openssl/ebcdic.h +33 -0
  401. package/include/node/openssl/ec.h +1481 -0
  402. package/include/node/openssl/ecdh.h +10 -0
  403. package/include/node/openssl/ecdsa.h +10 -0
  404. package/include/node/openssl/ecerr.h +276 -0
  405. package/include/node/openssl/engine.h +751 -0
  406. package/include/node/openssl/engineerr.h +111 -0
  407. package/include/node/openssl/err.h +274 -0
  408. package/include/node/openssl/evp.h +1670 -0
  409. package/include/node/openssl/evperr.h +204 -0
  410. package/include/node/openssl/hmac.h +51 -0
  411. package/include/node/openssl/idea.h +64 -0
  412. package/include/node/openssl/kdf.h +97 -0
  413. package/include/node/openssl/kdferr.h +55 -0
  414. package/include/node/openssl/lhash.h +241 -0
  415. package/include/node/openssl/md2.h +44 -0
  416. package/include/node/openssl/md4.h +51 -0
  417. package/include/node/openssl/md5.h +50 -0
  418. package/include/node/openssl/mdc2.h +42 -0
  419. package/include/node/openssl/modes.h +208 -0
  420. package/include/node/openssl/obj_mac.h +5198 -0
  421. package/include/node/openssl/objects.h +175 -0
  422. package/include/node/openssl/objectserr.h +42 -0
  423. package/include/node/openssl/ocsp.h +352 -0
  424. package/include/node/openssl/ocsperr.h +78 -0
  425. package/include/node/openssl/opensslconf.h +23 -0
  426. package/include/node/openssl/opensslconf_asm.h +140 -0
  427. package/include/node/openssl/opensslconf_no-asm.h +49 -0
  428. package/include/node/openssl/opensslv.h +101 -0
  429. package/include/node/openssl/ossl_typ.h +199 -0
  430. package/include/node/openssl/pem.h +378 -0
  431. package/include/node/openssl/pem2.h +13 -0
  432. package/include/node/openssl/pemerr.h +105 -0
  433. package/include/node/openssl/pkcs12.h +223 -0
  434. package/include/node/openssl/pkcs12err.h +81 -0
  435. package/include/node/openssl/pkcs7.h +319 -0
  436. package/include/node/openssl/pkcs7err.h +103 -0
  437. package/include/node/openssl/rand.h +77 -0
  438. package/include/node/openssl/rand_drbg.h +130 -0
  439. package/include/node/openssl/randerr.h +94 -0
  440. package/include/node/openssl/rc2.h +51 -0
  441. package/include/node/openssl/rc4.h +36 -0
  442. package/include/node/openssl/rc5.h +63 -0
  443. package/include/node/openssl/ripemd.h +47 -0
  444. package/include/node/openssl/rsa.h +513 -0
  445. package/include/node/openssl/rsaerr.h +167 -0
  446. package/include/node/openssl/safestack.h +207 -0
  447. package/include/node/openssl/seed.h +96 -0
  448. package/include/node/openssl/sha.h +119 -0
  449. package/include/node/openssl/srp.h +135 -0
  450. package/include/node/openssl/srtp.h +50 -0
  451. package/include/node/openssl/ssl.h +2499 -0
  452. package/include/node/openssl/ssl2.h +24 -0
  453. package/include/node/openssl/ssl3.h +342 -0
  454. package/include/node/openssl/sslerr.h +795 -0
  455. package/include/node/openssl/stack.h +83 -0
  456. package/include/node/openssl/store.h +266 -0
  457. package/include/node/openssl/storeerr.h +91 -0
  458. package/include/node/openssl/symhacks.h +37 -0
  459. package/include/node/openssl/tls1.h +1241 -0
  460. package/include/node/openssl/ts.h +559 -0
  461. package/include/node/openssl/tserr.h +132 -0
  462. package/include/node/openssl/txt_db.h +57 -0
  463. package/include/node/openssl/ui.h +368 -0
  464. package/include/node/openssl/uierr.h +65 -0
  465. package/include/node/openssl/whrlpool.h +48 -0
  466. package/include/node/openssl/x509.h +1050 -0
  467. package/include/node/openssl/x509_vfy.h +632 -0
  468. package/include/node/openssl/x509err.h +129 -0
  469. package/include/node/openssl/x509v3.h +938 -0
  470. package/include/node/openssl/x509v3err.h +164 -0
  471. package/include/node/uv/aix.h +32 -0
  472. package/include/node/uv/android-ifaddrs.h +54 -0
  473. package/include/node/uv/bsd.h +34 -0
  474. package/include/node/uv/darwin.h +61 -0
  475. package/include/node/uv/errno.h +460 -0
  476. package/include/node/uv/linux.h +34 -0
  477. package/include/node/uv/os390.h +33 -0
  478. package/include/node/uv/posix.h +31 -0
  479. package/include/node/uv/stdint-msvc2008.h +247 -0
  480. package/include/node/uv/sunos.h +44 -0
  481. package/include/node/uv/threadpool.h +37 -0
  482. package/include/node/uv/tree.h +768 -0
  483. package/include/node/uv/unix.h +507 -0
  484. package/include/node/uv/version.h +43 -0
  485. package/include/node/uv/win.h +691 -0
  486. package/include/node/uv.h +1846 -0
  487. package/include/node/v8-internal.h +511 -0
  488. package/include/node/v8-platform.h +709 -0
  489. package/include/node/v8-profiler.h +1123 -0
  490. package/include/node/v8-version.h +20 -0
  491. package/include/node/v8.h +12652 -0
  492. package/include/node/v8config.h +560 -0
  493. package/include/node/zconf.h +549 -0
  494. package/include/node/zlib.h +1935 -0
  495. package/package.json +17 -0
  496. package/share/doc/node/gdbinit +245 -0
  497. package/share/doc/node/lldb_commands.py +134 -0
  498. package/share/man/man1/node.1 +718 -0
  499. package/share/systemtap/tapset/node.stp +146 -0
@@ -0,0 +1,560 @@
1
+ // Copyright 2013 the V8 project authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style license that can be
3
+ // found in the LICENSE file.
4
+
5
+ #ifndef V8CONFIG_H_
6
+ #define V8CONFIG_H_
7
+
8
+ #ifdef V8_GN_HEADER
9
+ #if __cplusplus >= 201703L && !__has_include("v8-gn.h")
10
+ #error Missing v8-gn.h. The configuration for v8 is missing from the include \
11
+ path. Add it with -I<path> to the command line
12
+ #endif
13
+ #include "v8-gn.h" // NOLINT(build/include_directory)
14
+ #endif
15
+
16
+ // clang-format off
17
+
18
+ // Platform headers for feature detection below.
19
+ #if defined(__ANDROID__)
20
+ # include <sys/cdefs.h>
21
+ #elif defined(__APPLE__)
22
+ # include <TargetConditionals.h>
23
+ #elif defined(__linux__)
24
+ # include <features.h>
25
+ #endif
26
+
27
+
28
+ // This macro allows to test for the version of the GNU C library (or
29
+ // a compatible C library that masquerades as glibc). It evaluates to
30
+ // 0 if libc is not GNU libc or compatible.
31
+ // Use like:
32
+ // #if V8_GLIBC_PREREQ(2, 3)
33
+ // ...
34
+ // #endif
35
+ #if defined(__GLIBC__) && defined(__GLIBC_MINOR__)
36
+ # define V8_GLIBC_PREREQ(major, minor) \
37
+ ((__GLIBC__ * 100 + __GLIBC_MINOR__) >= ((major) * 100 + (minor)))
38
+ #else
39
+ # define V8_GLIBC_PREREQ(major, minor) 0
40
+ #endif
41
+
42
+
43
+ // This macro allows to test for the version of the GNU C++ compiler.
44
+ // Note that this also applies to compilers that masquerade as GCC,
45
+ // for example clang and the Intel C++ compiler for Linux.
46
+ // Use like:
47
+ // #if V8_GNUC_PREREQ(4, 3, 1)
48
+ // ...
49
+ // #endif
50
+ #if defined(__GNUC__) && defined(__GNUC_MINOR__) && defined(__GNUC_PATCHLEVEL__)
51
+ # define V8_GNUC_PREREQ(major, minor, patchlevel) \
52
+ ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) >= \
53
+ ((major) * 10000 + (minor) * 100 + (patchlevel)))
54
+ #elif defined(__GNUC__) && defined(__GNUC_MINOR__)
55
+ # define V8_GNUC_PREREQ(major, minor, patchlevel) \
56
+ ((__GNUC__ * 10000 + __GNUC_MINOR__ * 100) >= \
57
+ ((major) * 10000 + (minor) * 100 + (patchlevel)))
58
+ #else
59
+ # define V8_GNUC_PREREQ(major, minor, patchlevel) 0
60
+ #endif
61
+
62
+
63
+
64
+ // -----------------------------------------------------------------------------
65
+ // Operating system detection (host)
66
+ //
67
+ // V8_OS_ANDROID - Android
68
+ // V8_OS_BSD - BSDish (Mac OS X, Net/Free/Open/DragonFlyBSD)
69
+ // V8_OS_CYGWIN - Cygwin
70
+ // V8_OS_DRAGONFLYBSD - DragonFlyBSD
71
+ // V8_OS_FREEBSD - FreeBSD
72
+ // V8_OS_FUCHSIA - Fuchsia
73
+ // V8_OS_LINUX - Linux
74
+ // V8_OS_MACOSX - Mac OS X
75
+ // V8_OS_IOS - iOS
76
+ // V8_OS_NETBSD - NetBSD
77
+ // V8_OS_OPENBSD - OpenBSD
78
+ // V8_OS_POSIX - POSIX compatible (mostly everything except Windows)
79
+ // V8_OS_QNX - QNX Neutrino
80
+ // V8_OS_SOLARIS - Sun Solaris and OpenSolaris
81
+ // V8_OS_STARBOARD - Starboard (platform abstraction for Cobalt)
82
+ // V8_OS_AIX - AIX
83
+ // V8_OS_WIN - Microsoft Windows
84
+
85
+ #if defined(__ANDROID__)
86
+ # define V8_OS_ANDROID 1
87
+ # define V8_OS_LINUX 1
88
+ # define V8_OS_POSIX 1
89
+ # define V8_OS_STRING "android"
90
+
91
+ #elif defined(__APPLE__)
92
+ # define V8_OS_BSD 1
93
+ # define V8_OS_MACOSX 1
94
+ # define V8_OS_POSIX 1
95
+ # if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
96
+ # define V8_OS_IOS 1
97
+ # define V8_OS_STRING "ios"
98
+ # else
99
+ # define V8_OS_STRING "macos"
100
+ # endif // defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
101
+
102
+ #elif defined(__CYGWIN__)
103
+ # define V8_OS_CYGWIN 1
104
+ # define V8_OS_POSIX 1
105
+ # define V8_OS_STRING "cygwin"
106
+
107
+ #elif defined(__linux__)
108
+ # define V8_OS_LINUX 1
109
+ # define V8_OS_POSIX 1
110
+ # define V8_OS_STRING "linux"
111
+
112
+ #elif defined(__sun)
113
+ # define V8_OS_POSIX 1
114
+ # define V8_OS_SOLARIS 1
115
+ # define V8_OS_STRING "sun"
116
+
117
+ #elif defined(STARBOARD)
118
+ # define V8_OS_STARBOARD 1
119
+ # define V8_OS_STRING "starboard"
120
+
121
+ #elif defined(_AIX)
122
+ # define V8_OS_POSIX 1
123
+ # define V8_OS_AIX 1
124
+ # define V8_OS_STRING "aix"
125
+
126
+ #elif defined(__FreeBSD__)
127
+ # define V8_OS_BSD 1
128
+ # define V8_OS_FREEBSD 1
129
+ # define V8_OS_POSIX 1
130
+ # define V8_OS_STRING "freebsd"
131
+
132
+ #elif defined(__Fuchsia__)
133
+ # define V8_OS_FUCHSIA 1
134
+ # define V8_OS_POSIX 1
135
+ # define V8_OS_STRING "fuchsia"
136
+
137
+ #elif defined(__DragonFly__)
138
+ # define V8_OS_BSD 1
139
+ # define V8_OS_DRAGONFLYBSD 1
140
+ # define V8_OS_POSIX 1
141
+ # define V8_OS_STRING "dragonflybsd"
142
+
143
+ #elif defined(__NetBSD__)
144
+ # define V8_OS_BSD 1
145
+ # define V8_OS_NETBSD 1
146
+ # define V8_OS_POSIX 1
147
+ # define V8_OS_STRING "netbsd"
148
+
149
+ #elif defined(__OpenBSD__)
150
+ # define V8_OS_BSD 1
151
+ # define V8_OS_OPENBSD 1
152
+ # define V8_OS_POSIX 1
153
+ # define V8_OS_STRING "openbsd"
154
+
155
+ #elif defined(__QNXNTO__)
156
+ # define V8_OS_POSIX 1
157
+ # define V8_OS_QNX 1
158
+ # define V8_OS_STRING "qnx"
159
+
160
+ #elif defined(_WIN32)
161
+ # define V8_OS_WIN 1
162
+ # define V8_OS_STRING "windows"
163
+ #endif
164
+
165
+ // -----------------------------------------------------------------------------
166
+ // Operating system detection (target)
167
+ //
168
+ // V8_TARGET_OS_ANDROID
169
+ // V8_TARGET_OS_FUCHSIA
170
+ // V8_TARGET_OS_IOS
171
+ // V8_TARGET_OS_LINUX
172
+ // V8_TARGET_OS_MACOSX
173
+ // V8_TARGET_OS_WIN
174
+ //
175
+ // If not set explicitly, these fall back to corresponding V8_OS_ values.
176
+
177
+ #ifdef V8_HAVE_TARGET_OS
178
+
179
+ // The target OS is provided, just check that at least one known value is set.
180
+ # if !defined(V8_TARGET_OS_ANDROID) \
181
+ && !defined(V8_TARGET_OS_FUCHSIA) \
182
+ && !defined(V8_TARGET_OS_IOS) \
183
+ && !defined(V8_TARGET_OS_LINUX) \
184
+ && !defined(V8_TARGET_OS_MACOSX) \
185
+ && !defined(V8_TARGET_OS_WIN)
186
+ # error No known target OS defined.
187
+ # endif
188
+
189
+ #else // V8_HAVE_TARGET_OS
190
+
191
+ # if defined(V8_TARGET_OS_ANDROID) \
192
+ || defined(V8_TARGET_OS_FUCHSIA) \
193
+ || defined(V8_TARGET_OS_IOS) \
194
+ || defined(V8_TARGET_OS_LINUX) \
195
+ || defined(V8_TARGET_OS_MACOSX) \
196
+ || defined(V8_TARGET_OS_WIN)
197
+ # error A target OS is defined but V8_HAVE_TARGET_OS is unset.
198
+ # endif
199
+
200
+ // Fall back to the detected host OS.
201
+ #ifdef V8_OS_ANDROID
202
+ # define V8_TARGET_OS_ANDROID
203
+ #endif
204
+
205
+ #ifdef V8_OS_FUCHSIA
206
+ # define V8_TARGET_OS_FUCHSIA
207
+ #endif
208
+
209
+ #ifdef V8_OS_IOS
210
+ # define V8_TARGET_OS_IOS
211
+ #endif
212
+
213
+ #ifdef V8_OS_LINUX
214
+ # define V8_TARGET_OS_LINUX
215
+ #endif
216
+
217
+ #ifdef V8_OS_MACOSX
218
+ # define V8_TARGET_OS_MACOSX
219
+ #endif
220
+
221
+ #ifdef V8_OS_WIN
222
+ # define V8_TARGET_OS_WIN
223
+ #endif
224
+
225
+ #endif // V8_HAVE_TARGET_OS
226
+
227
+ #if defined(V8_TARGET_OS_ANDROID)
228
+ # define V8_TARGET_OS_STRING "android"
229
+ #elif defined(V8_TARGET_OS_FUCHSIA)
230
+ # define V8_TARGET_OS_STRING "fuchsia"
231
+ #elif defined(V8_TARGET_OS_IOS)
232
+ # define V8_TARGET_OS_STRING "ios"
233
+ #elif defined(V8_TARGET_OS_LINUX)
234
+ # define V8_TARGET_OS_STRING "linux"
235
+ #elif defined(V8_TARGET_OS_MACOSX)
236
+ # define V8_TARGET_OS_STRING "macos"
237
+ #elif defined(V8_TARGET_OS_WINDOWS)
238
+ # define V8_TARGET_OS_STRING "windows"
239
+ #else
240
+ # define V8_TARGET_OS_STRING "unknown"
241
+ #endif
242
+
243
+ // -----------------------------------------------------------------------------
244
+ // C library detection
245
+ //
246
+ // V8_LIBC_MSVCRT - MSVC libc
247
+ // V8_LIBC_BIONIC - Bionic libc
248
+ // V8_LIBC_BSD - BSD libc derivate
249
+ // V8_LIBC_GLIBC - GNU C library
250
+ // V8_LIBC_UCLIBC - uClibc
251
+ //
252
+ // Note that testing for libc must be done using #if not #ifdef. For example,
253
+ // to test for the GNU C library, use:
254
+ // #if V8_LIBC_GLIBC
255
+ // ...
256
+ // #endif
257
+
258
+ #if defined (_MSC_VER)
259
+ # define V8_LIBC_MSVCRT 1
260
+ #elif defined(__BIONIC__)
261
+ # define V8_LIBC_BIONIC 1
262
+ # define V8_LIBC_BSD 1
263
+ #elif defined(__UCLIBC__)
264
+ // Must test for UCLIBC before GLIBC, as UCLIBC pretends to be GLIBC.
265
+ # define V8_LIBC_UCLIBC 1
266
+ #elif defined(__GLIBC__) || defined(__GNU_LIBRARY__)
267
+ # define V8_LIBC_GLIBC 1
268
+ #else
269
+ # define V8_LIBC_BSD V8_OS_BSD
270
+ #endif
271
+
272
+
273
+ // -----------------------------------------------------------------------------
274
+ // Compiler detection
275
+ //
276
+ // V8_CC_GNU - GCC, or clang in gcc mode
277
+ // V8_CC_INTEL - Intel C++
278
+ // V8_CC_MINGW - Minimalist GNU for Windows
279
+ // V8_CC_MINGW32 - Minimalist GNU for Windows (mingw32)
280
+ // V8_CC_MINGW64 - Minimalist GNU for Windows (mingw-w64)
281
+ // V8_CC_MSVC - Microsoft Visual C/C++, or clang in cl.exe mode
282
+ //
283
+ // C++11 feature detection
284
+ //
285
+ // Compiler-specific feature detection
286
+ //
287
+ // V8_HAS_ATTRIBUTE_ALWAYS_INLINE - __attribute__((always_inline))
288
+ // supported
289
+ // V8_HAS_ATTRIBUTE_NONNULL - __attribute__((nonnull)) supported
290
+ // V8_HAS_ATTRIBUTE_NOINLINE - __attribute__((noinline)) supported
291
+ // V8_HAS_ATTRIBUTE_UNUSED - __attribute__((unused)) supported
292
+ // V8_HAS_ATTRIBUTE_VISIBILITY - __attribute__((visibility)) supported
293
+ // V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT - __attribute__((warn_unused_result))
294
+ // supported
295
+ // V8_HAS_CPP_ATTRIBUTE_NODISCARD - [[nodiscard]] supported
296
+ // V8_HAS_BUILTIN_BSWAP16 - __builtin_bswap16() supported
297
+ // V8_HAS_BUILTIN_BSWAP32 - __builtin_bswap32() supported
298
+ // V8_HAS_BUILTIN_BSWAP64 - __builtin_bswap64() supported
299
+ // V8_HAS_BUILTIN_CLZ - __builtin_clz() supported
300
+ // V8_HAS_BUILTIN_CTZ - __builtin_ctz() supported
301
+ // V8_HAS_BUILTIN_EXPECT - __builtin_expect() supported
302
+ // V8_HAS_BUILTIN_FRAME_ADDRESS - __builtin_frame_address() supported
303
+ // V8_HAS_BUILTIN_POPCOUNT - __builtin_popcount() supported
304
+ // V8_HAS_BUILTIN_SADD_OVERFLOW - __builtin_sadd_overflow() supported
305
+ // V8_HAS_BUILTIN_SSUB_OVERFLOW - __builtin_ssub_overflow() supported
306
+ // V8_HAS_BUILTIN_UADD_OVERFLOW - __builtin_uadd_overflow() supported
307
+ // V8_HAS_COMPUTED_GOTO - computed goto/labels as values
308
+ // supported
309
+ // V8_HAS_DECLSPEC_NOINLINE - __declspec(noinline) supported
310
+ // V8_HAS_DECLSPEC_SELECTANY - __declspec(selectany) supported
311
+ // V8_HAS___FORCEINLINE - __forceinline supported
312
+ //
313
+ // Note that testing for compilers and/or features must be done using #if
314
+ // not #ifdef. For example, to test for Intel C++ Compiler, use:
315
+ // #if V8_CC_INTEL
316
+ // ...
317
+ // #endif
318
+
319
+ #if defined(__has_cpp_attribute)
320
+ #define V8_HAS_CPP_ATTRIBUTE(FEATURE) __has_cpp_attribute(FEATURE)
321
+ #else
322
+ #define V8_HAS_CPP_ATTRIBUTE(FEATURE) 0
323
+ #endif
324
+
325
+ #if defined(__clang__)
326
+
327
+ #if defined(__GNUC__) // Clang in gcc mode.
328
+ # define V8_CC_GNU 1
329
+ #endif
330
+
331
+ # define V8_HAS_ATTRIBUTE_ALWAYS_INLINE (__has_attribute(always_inline))
332
+ # define V8_HAS_ATTRIBUTE_NONNULL (__has_attribute(nonnull))
333
+ # define V8_HAS_ATTRIBUTE_NOINLINE (__has_attribute(noinline))
334
+ # define V8_HAS_ATTRIBUTE_UNUSED (__has_attribute(unused))
335
+ # define V8_HAS_ATTRIBUTE_VISIBILITY (__has_attribute(visibility))
336
+ # define V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT \
337
+ (__has_attribute(warn_unused_result))
338
+
339
+ # define V8_HAS_CPP_ATTRIBUTE_NODISCARD (V8_HAS_CPP_ATTRIBUTE(nodiscard))
340
+
341
+ # define V8_HAS_BUILTIN_ASSUME_ALIGNED (__has_builtin(__builtin_assume_aligned))
342
+ # define V8_HAS_BUILTIN_BSWAP16 (__has_builtin(__builtin_bswap16))
343
+ # define V8_HAS_BUILTIN_BSWAP32 (__has_builtin(__builtin_bswap32))
344
+ # define V8_HAS_BUILTIN_BSWAP64 (__has_builtin(__builtin_bswap64))
345
+ # define V8_HAS_BUILTIN_CLZ (__has_builtin(__builtin_clz))
346
+ # define V8_HAS_BUILTIN_CTZ (__has_builtin(__builtin_ctz))
347
+ # define V8_HAS_BUILTIN_EXPECT (__has_builtin(__builtin_expect))
348
+ # define V8_HAS_BUILTIN_FRAME_ADDRESS (__has_builtin(__builtin_frame_address))
349
+ # define V8_HAS_BUILTIN_POPCOUNT (__has_builtin(__builtin_popcount))
350
+ # define V8_HAS_BUILTIN_SADD_OVERFLOW (__has_builtin(__builtin_sadd_overflow))
351
+ # define V8_HAS_BUILTIN_SSUB_OVERFLOW (__has_builtin(__builtin_ssub_overflow))
352
+ # define V8_HAS_BUILTIN_UADD_OVERFLOW (__has_builtin(__builtin_uadd_overflow))
353
+
354
+ // Clang has no __has_feature for computed gotos.
355
+ // GCC doc: https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html
356
+ # define V8_HAS_COMPUTED_GOTO 1
357
+
358
+ #elif defined(__GNUC__)
359
+
360
+ # define V8_CC_GNU 1
361
+ # if defined(__INTEL_COMPILER) // Intel C++ also masquerades as GCC 3.2.0
362
+ # define V8_CC_INTEL 1
363
+ # endif
364
+ # if defined(__MINGW32__)
365
+ # define V8_CC_MINGW32 1
366
+ # endif
367
+ # if defined(__MINGW64__)
368
+ # define V8_CC_MINGW64 1
369
+ # endif
370
+ # define V8_CC_MINGW (V8_CC_MINGW32 || V8_CC_MINGW64)
371
+
372
+ // always_inline is available in gcc 4.0 but not very reliable until 4.4.
373
+ // Works around "sorry, unimplemented: inlining failed" build errors with
374
+ // older compilers.
375
+ # define V8_HAS_ATTRIBUTE_ALWAYS_INLINE 1
376
+ # define V8_HAS_ATTRIBUTE_NOINLINE 1
377
+ # define V8_HAS_ATTRIBUTE_UNUSED 1
378
+ # define V8_HAS_ATTRIBUTE_VISIBILITY 1
379
+ # define V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT (!V8_CC_INTEL)
380
+
381
+ // [[nodiscard]] does not work together with with
382
+ // __attribute__((visibility(""))) on GCC 7.4 which is why there is no define
383
+ // for V8_HAS_CPP_ATTRIBUTE_NODISCARD. See https://crbug.com/v8/11707.
384
+
385
+ # define V8_HAS_BUILTIN_ASSUME_ALIGNED 1
386
+ # define V8_HAS_BUILTIN_CLZ 1
387
+ # define V8_HAS_BUILTIN_CTZ 1
388
+ # define V8_HAS_BUILTIN_EXPECT 1
389
+ # define V8_HAS_BUILTIN_FRAME_ADDRESS 1
390
+ # define V8_HAS_BUILTIN_POPCOUNT 1
391
+
392
+ // GCC doc: https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html
393
+ #define V8_HAS_COMPUTED_GOTO 1
394
+
395
+ #endif
396
+
397
+ #if defined(_MSC_VER)
398
+ # define V8_CC_MSVC 1
399
+
400
+ # define V8_HAS_DECLSPEC_NOINLINE 1
401
+ # define V8_HAS_DECLSPEC_SELECTANY 1
402
+
403
+ # define V8_HAS___FORCEINLINE 1
404
+
405
+ #endif
406
+
407
+
408
+ // -----------------------------------------------------------------------------
409
+ // Helper macros
410
+
411
+ // A macro used to make better inlining. Don't bother for debug builds.
412
+ // Use like:
413
+ // V8_INLINE int GetZero() { return 0; }
414
+ #if !defined(DEBUG) && V8_HAS_ATTRIBUTE_ALWAYS_INLINE
415
+ # define V8_INLINE inline __attribute__((always_inline))
416
+ #elif !defined(DEBUG) && V8_HAS___FORCEINLINE
417
+ # define V8_INLINE __forceinline
418
+ #else
419
+ # define V8_INLINE inline
420
+ #endif
421
+
422
+ #if V8_HAS_BUILTIN_ASSUME_ALIGNED
423
+ # define V8_ASSUME_ALIGNED(ptr, alignment) \
424
+ __builtin_assume_aligned((ptr), (alignment))
425
+ #else
426
+ # define V8_ASSUME_ALIGNED(ptr, alignment) (ptr)
427
+ #endif
428
+
429
+
430
+ // A macro to mark specific arguments as non-null.
431
+ // Use like:
432
+ // int add(int* x, int y, int* z) V8_NONNULL(1, 3) { return *x + y + *z; }
433
+ #if V8_HAS_ATTRIBUTE_NONNULL
434
+ # define V8_NONNULL(...) __attribute__((nonnull(__VA_ARGS__)))
435
+ #else
436
+ # define V8_NONNULL(...) /* NOT SUPPORTED */
437
+ #endif
438
+
439
+
440
+ // A macro used to tell the compiler to never inline a particular function.
441
+ // Use like:
442
+ // V8_NOINLINE int GetMinusOne() { return -1; }
443
+ #if V8_HAS_ATTRIBUTE_NOINLINE
444
+ # define V8_NOINLINE __attribute__((noinline))
445
+ #elif V8_HAS_DECLSPEC_NOINLINE
446
+ # define V8_NOINLINE __declspec(noinline)
447
+ #else
448
+ # define V8_NOINLINE /* NOT SUPPORTED */
449
+ #endif
450
+
451
+
452
+ // A macro (V8_DEPRECATED) to mark classes or functions as deprecated.
453
+ #if defined(V8_DEPRECATION_WARNINGS)
454
+ # define V8_DEPRECATED(message) [[deprecated(message)]]
455
+ #else
456
+ # define V8_DEPRECATED(message)
457
+ #endif
458
+
459
+
460
+ // A macro (V8_DEPRECATE_SOON) to make it easier to see what will be deprecated.
461
+ #if defined(V8_IMMINENT_DEPRECATION_WARNINGS)
462
+ # define V8_DEPRECATE_SOON(message) [[deprecated(message)]]
463
+ #else
464
+ # define V8_DEPRECATE_SOON(message)
465
+ #endif
466
+
467
+
468
+ #if defined(__GNUC__) && !defined(__clang__) && (__GNUC__ < 6)
469
+ # define V8_ENUM_DEPRECATED(message)
470
+ # define V8_ENUM_DEPRECATE_SOON(message)
471
+ #else
472
+ # define V8_ENUM_DEPRECATED(message) V8_DEPRECATED(message)
473
+ # define V8_ENUM_DEPRECATE_SOON(message) V8_DEPRECATE_SOON(message)
474
+ #endif
475
+
476
+
477
+ // A macro to provide the compiler with branch prediction information.
478
+ #if V8_HAS_BUILTIN_EXPECT
479
+ # define V8_UNLIKELY(condition) (__builtin_expect(!!(condition), 0))
480
+ # define V8_LIKELY(condition) (__builtin_expect(!!(condition), 1))
481
+ #else
482
+ # define V8_UNLIKELY(condition) (condition)
483
+ # define V8_LIKELY(condition) (condition)
484
+ #endif
485
+
486
+
487
+ // Annotate a function indicating the caller must examine the return value.
488
+ // Use like:
489
+ // int foo() V8_WARN_UNUSED_RESULT;
490
+ #if V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT
491
+ #define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
492
+ #else
493
+ #define V8_WARN_UNUSED_RESULT /* NOT SUPPORTED */
494
+ #endif
495
+
496
+
497
+ // Annotate a class or constructor indicating the caller must assign the
498
+ // constructed instances.
499
+ // Apply to the whole class like:
500
+ // class V8_NODISCARD Foo() { ... };
501
+ // or apply to just one constructor like:
502
+ // V8_NODISCARD Foo() { ... };
503
+ // [[nodiscard]] comes in C++17 but supported in clang with -std >= c++11.
504
+ #if V8_HAS_CPP_ATTRIBUTE_NODISCARD
505
+ #define V8_NODISCARD [[nodiscard]]
506
+ #else
507
+ #define V8_NODISCARD /* NOT SUPPORTED */
508
+ #endif
509
+
510
+ // Helper macro to define no_sanitize attributes only with clang.
511
+ #if defined(__clang__) && defined(__has_attribute)
512
+ #if __has_attribute(no_sanitize)
513
+ #define V8_CLANG_NO_SANITIZE(what) __attribute__((no_sanitize(what)))
514
+ #endif
515
+ #endif
516
+ #if !defined(V8_CLANG_NO_SANITIZE)
517
+ #define V8_CLANG_NO_SANITIZE(what)
518
+ #endif
519
+
520
+ #if defined(BUILDING_V8_SHARED) && defined(USING_V8_SHARED)
521
+ #error Inconsistent build configuration: To build the V8 shared library \
522
+ set BUILDING_V8_SHARED, to include its headers for linking against the \
523
+ V8 shared library set USING_V8_SHARED.
524
+ #endif
525
+
526
+ #ifdef V8_OS_WIN
527
+
528
+ // Setup for Windows DLL export/import. When building the V8 DLL the
529
+ // BUILDING_V8_SHARED needs to be defined. When building a program which uses
530
+ // the V8 DLL USING_V8_SHARED needs to be defined. When either building the V8
531
+ // static library or building a program which uses the V8 static library neither
532
+ // BUILDING_V8_SHARED nor USING_V8_SHARED should be defined.
533
+ #ifdef BUILDING_V8_SHARED
534
+ # define V8_EXPORT __declspec(dllexport)
535
+ #elif USING_V8_SHARED
536
+ # define V8_EXPORT __declspec(dllimport)
537
+ #else
538
+ # define V8_EXPORT
539
+ #endif // BUILDING_V8_SHARED
540
+
541
+ #else // V8_OS_WIN
542
+
543
+ // Setup for Linux shared library export.
544
+ #if V8_HAS_ATTRIBUTE_VISIBILITY
545
+ # ifdef BUILDING_V8_SHARED
546
+ # define V8_EXPORT __attribute__ ((visibility("default")))
547
+ # else
548
+ # define V8_EXPORT
549
+ # endif
550
+ #else
551
+ # define V8_EXPORT
552
+ #endif
553
+
554
+ #endif // V8_OS_WIN
555
+
556
+ // clang-format on
557
+
558
+ #undef V8_HAS_CPP_ATTRIBUTE
559
+
560
+ #endif // V8CONFIG_H_