@nativescript/canvas 2.0.0-alpha.10 → 2.0.0-alpha.11

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 (366) hide show
  1. package/WebGL/WebGLRenderingContext/index.js +1 -1
  2. package/WebGL/WebGLRenderingContext/index.js.map +1 -1
  3. package/package.json +1 -1
  4. package/platforms/android/canvas-release.aar +0 -0
  5. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
  6. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +4 -0
  7. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +46 -0
  8. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  9. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json +381 -16
  10. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +3 -0
  11. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +3 -0
  12. package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  13. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
  14. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +8 -0
  15. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +46 -0
  16. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  17. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  18. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json +381 -16
  19. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +3 -0
  20. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3 -0
  21. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +381 -16
  22. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +3 -0
  23. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +3 -0
  24. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +24 -24
  25. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  26. package/platforms/ios/Podfile +1 -1
  27. package/platforms/ios/build.xcconfig +1 -1
  28. package/platforms/ios/src/CanvasModule.h +1 -1
  29. package/platforms/ios/src/cpp/CanvasJSIModule.h +1 -1
  30. package/platforms/ios/src/cpp/CanvasJSIModule.mm +17 -17
  31. package/platforms/ios/src/cpp/Helpers.h +1 -1
  32. package/platforms/ios/src/cpp/ImageAssetImpl.h +1 -1
  33. package/platforms/ios/src/cpp/ImageBitmapImpl.h +1 -1
  34. package/platforms/ios/src/cpp/JSICallback.h +1 -1
  35. package/platforms/ios/src/cpp/JSIReadFileCallback.h +1 -1
  36. package/platforms/ios/src/cpp/TextDecoderImpl.h +1 -1
  37. package/platforms/ios/src/cpp/VecMutableBuffer.h +1 -1
  38. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +1 -1
  39. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +1 -1
  40. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +1 -1
  41. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +1 -1
  42. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +1 -1
  43. package/platforms/ios/src/cpp/canvas2d/Path2D.h +1 -1
  44. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +1 -1
  45. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +1 -1
  46. package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +1 -1
  47. package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +1 -1
  48. package/platforms/ios/src/cpp/webgl/WebGLProgram.h +1 -1
  49. package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +1 -1
  50. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +1 -1
  51. package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +1 -1
  52. package/platforms/ios/src/cpp/webgl/WebGLShader.h +1 -1
  53. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +1 -1
  54. package/platforms/ios/src/cpp/webgl/WebGLTexture.h +1 -1
  55. package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +1 -1
  56. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +1 -1
  57. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +1 -1
  58. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +1 -1
  59. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +1 -1
  60. package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +1 -1
  61. package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +1 -1
  62. package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +1 -1
  63. package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +1 -1
  64. package/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h +1 -1
  65. package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +1 -1
  66. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +1 -1
  67. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +1 -1
  68. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +1 -1
  69. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +1 -1
  70. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +1 -1
  71. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +1 -1
  72. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +1 -1
  73. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +1 -1
  74. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +1 -1
  75. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +1 -1
  76. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +1 -1
  77. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +1 -1
  78. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +1 -1
  79. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +1 -1
  80. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +1 -1
  81. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +1 -1
  82. package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +1 -1
  83. package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +1 -1
  84. package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +1 -1
  85. package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +1 -1
  86. package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +1 -1
  87. package/pods/Headers/include/APIDesign.md +0 -72
  88. package/pods/Headers/include/DEPS +0 -10
  89. package/pods/Headers/include/DIR_METADATA +0 -11
  90. package/pods/Headers/include/OWNERS +0 -23
  91. package/pods/Headers/include/cppgc/DEPS +0 -8
  92. package/pods/Headers/include/cppgc/OWNERS +0 -2
  93. package/pods/Headers/include/cppgc/README.md +0 -133
  94. package/pods/Headers/include/cppgc/allocation.h +0 -310
  95. package/pods/Headers/include/cppgc/common.h +0 -29
  96. package/pods/Headers/include/cppgc/cross-thread-persistent.h +0 -465
  97. package/pods/Headers/include/cppgc/custom-space.h +0 -97
  98. package/pods/Headers/include/cppgc/default-platform.h +0 -67
  99. package/pods/Headers/include/cppgc/ephemeron-pair.h +0 -30
  100. package/pods/Headers/include/cppgc/explicit-management.h +0 -100
  101. package/pods/Headers/include/cppgc/garbage-collected.h +0 -106
  102. package/pods/Headers/include/cppgc/heap-consistency.h +0 -266
  103. package/pods/Headers/include/cppgc/heap-state.h +0 -82
  104. package/pods/Headers/include/cppgc/heap-statistics.h +0 -120
  105. package/pods/Headers/include/cppgc/heap.h +0 -206
  106. package/pods/Headers/include/cppgc/internal/api-constants.h +0 -55
  107. package/pods/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -48
  108. package/pods/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -79
  109. package/pods/Headers/include/cppgc/internal/compiler-specific.h +0 -38
  110. package/pods/Headers/include/cppgc/internal/finalizer-trait.h +0 -93
  111. package/pods/Headers/include/cppgc/internal/gc-info.h +0 -156
  112. package/pods/Headers/include/cppgc/internal/logging.h +0 -50
  113. package/pods/Headers/include/cppgc/internal/name-trait.h +0 -122
  114. package/pods/Headers/include/cppgc/internal/persistent-node.h +0 -216
  115. package/pods/Headers/include/cppgc/internal/pointer-policies.h +0 -186
  116. package/pods/Headers/include/cppgc/internal/write-barrier.h +0 -435
  117. package/pods/Headers/include/cppgc/liveness-broker.h +0 -77
  118. package/pods/Headers/include/cppgc/macros.h +0 -26
  119. package/pods/Headers/include/cppgc/member.h +0 -291
  120. package/pods/Headers/include/cppgc/name-provider.h +0 -65
  121. package/pods/Headers/include/cppgc/object-size-trait.h +0 -58
  122. package/pods/Headers/include/cppgc/persistent.h +0 -370
  123. package/pods/Headers/include/cppgc/platform.h +0 -156
  124. package/pods/Headers/include/cppgc/prefinalizer.h +0 -75
  125. package/pods/Headers/include/cppgc/process-heap-statistics.h +0 -36
  126. package/pods/Headers/include/cppgc/sentinel-pointer.h +0 -32
  127. package/pods/Headers/include/cppgc/source-location.h +0 -92
  128. package/pods/Headers/include/cppgc/testing.h +0 -106
  129. package/pods/Headers/include/cppgc/trace-trait.h +0 -116
  130. package/pods/Headers/include/cppgc/type-traits.h +0 -240
  131. package/pods/Headers/include/cppgc/visitor.h +0 -379
  132. package/pods/Headers/include/js_protocol-1.2.json +0 -936
  133. package/pods/Headers/include/js_protocol-1.3.json +0 -1112
  134. package/pods/Headers/include/js_protocol.pdl +0 -1709
  135. package/pods/Headers/include/libffi/arm64/ffi.h +0 -524
  136. package/pods/Headers/include/libffi/arm64/ffitarget.h +0 -92
  137. package/pods/Headers/include/libffi/x86_64/ffi.h +0 -524
  138. package/pods/Headers/include/libffi/x86_64/ffitarget.h +0 -147
  139. package/pods/Headers/include/libffi.h +0 -12
  140. package/pods/Headers/include/libplatform/DEPS +0 -9
  141. package/pods/Headers/include/libplatform/libplatform-export.h +0 -29
  142. package/pods/Headers/include/libplatform/libplatform.h +0 -106
  143. package/pods/Headers/include/libplatform/v8-tracing.h +0 -333
  144. package/pods/Headers/include/v8-array-buffer.h +0 -433
  145. package/pods/Headers/include/v8-callbacks.h +0 -397
  146. package/pods/Headers/include/v8-container.h +0 -129
  147. package/pods/Headers/include/v8-context.h +0 -407
  148. package/pods/Headers/include/v8-cppgc.h +0 -215
  149. package/pods/Headers/include/v8-data.h +0 -80
  150. package/pods/Headers/include/v8-date.h +0 -43
  151. package/pods/Headers/include/v8-debug.h +0 -168
  152. package/pods/Headers/include/v8-embedder-heap.h +0 -218
  153. package/pods/Headers/include/v8-embedder-state-scope.h +0 -51
  154. package/pods/Headers/include/v8-exception.h +0 -217
  155. package/pods/Headers/include/v8-extension.h +0 -62
  156. package/pods/Headers/include/v8-external.h +0 -37
  157. package/pods/Headers/include/v8-fast-api-calls.h +0 -939
  158. package/pods/Headers/include/v8-forward.h +0 -81
  159. package/pods/Headers/include/v8-function-callback.h +0 -475
  160. package/pods/Headers/include/v8-function.h +0 -125
  161. package/pods/Headers/include/v8-initialization.h +0 -315
  162. package/pods/Headers/include/v8-inspector-protocol.h +0 -13
  163. package/pods/Headers/include/v8-inspector.h +0 -376
  164. package/pods/Headers/include/v8-internal.h +0 -661
  165. package/pods/Headers/include/v8-isolate.h +0 -1709
  166. package/pods/Headers/include/v8-json.h +0 -47
  167. package/pods/Headers/include/v8-local-handle.h +0 -455
  168. package/pods/Headers/include/v8-locker.h +0 -149
  169. package/pods/Headers/include/v8-maybe.h +0 -137
  170. package/pods/Headers/include/v8-memory-span.h +0 -43
  171. package/pods/Headers/include/v8-message.h +0 -216
  172. package/pods/Headers/include/v8-metrics.h +0 -255
  173. package/pods/Headers/include/v8-microtask-queue.h +0 -152
  174. package/pods/Headers/include/v8-microtask.h +0 -28
  175. package/pods/Headers/include/v8-object.h +0 -775
  176. package/pods/Headers/include/v8-persistent-handle.h +0 -590
  177. package/pods/Headers/include/v8-platform.h +0 -1092
  178. package/pods/Headers/include/v8-primitive-object.h +0 -118
  179. package/pods/Headers/include/v8-primitive.h +0 -866
  180. package/pods/Headers/include/v8-profiler.h +0 -1198
  181. package/pods/Headers/include/v8-promise.h +0 -174
  182. package/pods/Headers/include/v8-proxy.h +0 -50
  183. package/pods/Headers/include/v8-regexp.h +0 -105
  184. package/pods/Headers/include/v8-script.h +0 -748
  185. package/pods/Headers/include/v8-snapshot.h +0 -196
  186. package/pods/Headers/include/v8-statistics.h +0 -217
  187. package/pods/Headers/include/v8-template.h +0 -1079
  188. package/pods/Headers/include/v8-traced-handle.h +0 -420
  189. package/pods/Headers/include/v8-typed-array.h +0 -282
  190. package/pods/Headers/include/v8-unwinder-state.h +0 -31
  191. package/pods/Headers/include/v8-unwinder.h +0 -132
  192. package/pods/Headers/include/v8-util.h +0 -658
  193. package/pods/Headers/include/v8-value-serializer-version.h +0 -24
  194. package/pods/Headers/include/v8-value-serializer.h +0 -279
  195. package/pods/Headers/include/v8-value.h +0 -526
  196. package/pods/Headers/include/v8-version-string.h +0 -38
  197. package/pods/Headers/include/v8-version.h +0 -20
  198. package/pods/Headers/include/v8-wasm-trap-handler-posix.h +0 -31
  199. package/pods/Headers/include/v8-wasm-trap-handler-win.h +0 -28
  200. package/pods/Headers/include/v8-wasm.h +0 -257
  201. package/pods/Headers/include/v8-weak-callback-info.h +0 -86
  202. package/pods/Headers/include/v8.h +0 -88
  203. package/pods/Headers/include/v8config.h +0 -605
  204. package/pods/Headers/inspector/InspectorServer.h +0 -20
  205. package/pods/Headers/inspector/JsV8InspectorClient.h +0 -66
  206. package/pods/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -1123
  207. package/pods/Headers/inspector/base64.h +0 -9
  208. package/pods/Headers/inspector/src/base/address-region.h +0 -95
  209. package/pods/Headers/inspector/src/base/atomic-utils.h +0 -219
  210. package/pods/Headers/inspector/src/base/atomicops.h +0 -332
  211. package/pods/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -89
  212. package/pods/Headers/inspector/src/base/base-export.h +0 -31
  213. package/pods/Headers/inspector/src/base/bits.h +0 -343
  214. package/pods/Headers/inspector/src/base/build_config.h +0 -234
  215. package/pods/Headers/inspector/src/base/compiler-specific.h +0 -136
  216. package/pods/Headers/inspector/src/base/export-template.h +0 -163
  217. package/pods/Headers/inspector/src/base/flags.h +0 -130
  218. package/pods/Headers/inspector/src/base/immediate-crash.h +0 -162
  219. package/pods/Headers/inspector/src/base/lazy-instance.h +0 -258
  220. package/pods/Headers/inspector/src/base/logging.h +0 -417
  221. package/pods/Headers/inspector/src/base/macros.h +0 -423
  222. package/pods/Headers/inspector/src/base/memory.h +0 -89
  223. package/pods/Headers/inspector/src/base/once.h +0 -108
  224. package/pods/Headers/inspector/src/base/optional.h +0 -882
  225. package/pods/Headers/inspector/src/base/platform/mutex.h +0 -370
  226. package/pods/Headers/inspector/src/base/platform/platform.h +0 -476
  227. package/pods/Headers/inspector/src/base/platform/semaphore.h +0 -108
  228. package/pods/Headers/inspector/src/base/platform/v8-time.h +0 -513
  229. package/pods/Headers/inspector/src/base/platform/wrappers.h +0 -73
  230. package/pods/Headers/inspector/src/base/safe_conversions.h +0 -389
  231. package/pods/Headers/inspector/src/base/safe_conversions_impl.h +0 -822
  232. package/pods/Headers/inspector/src/base/template-utils.h +0 -113
  233. package/pods/Headers/inspector/src/base/v8-fallthrough.h +0 -21
  234. package/pods/Headers/inspector/src/common/checks.h +0 -38
  235. package/pods/Headers/inspector/src/common/globals.h +0 -1842
  236. package/pods/Headers/inspector/src/debug/debug-interface.h +0 -667
  237. package/pods/Headers/inspector/src/debug/interface-types.h +0 -175
  238. package/pods/Headers/inspector/src/init/v8.h +0 -52
  239. package/pods/Headers/inspector/src/inspector/custom-preview.h +0 -24
  240. package/pods/Headers/inspector/src/inspector/injected-script.h +0 -251
  241. package/pods/Headers/inspector/src/inspector/inspected-context.h +0 -79
  242. package/pods/Headers/inspector/src/inspector/protocol/CSS.h +0 -2148
  243. package/pods/Headers/inspector/src/inspector/protocol/Console.h +0 -211
  244. package/pods/Headers/inspector/src/inspector/protocol/DOM.h +0 -1008
  245. package/pods/Headers/inspector/src/inspector/protocol/Debugger.h +0 -892
  246. package/pods/Headers/inspector/src/inspector/protocol/Forward.h +0 -75
  247. package/pods/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -346
  248. package/pods/Headers/inspector/src/inspector/protocol/Log.h +0 -342
  249. package/pods/Headers/inspector/src/inspector/protocol/Network.h +0 -2528
  250. package/pods/Headers/inspector/src/inspector/protocol/Overlay.h +0 -281
  251. package/pods/Headers/inspector/src/inspector/protocol/Page.h +0 -1189
  252. package/pods/Headers/inspector/src/inspector/protocol/Profiler.h +0 -1001
  253. package/pods/Headers/inspector/src/inspector/protocol/Protocol.h +0 -617
  254. package/pods/Headers/inspector/src/inspector/protocol/Runtime.h +0 -1696
  255. package/pods/Headers/inspector/src/inspector/protocol/Schema.h +0 -146
  256. package/pods/Headers/inspector/src/inspector/protocol/Security.h +0 -793
  257. package/pods/Headers/inspector/src/inspector/remote-object-id.h +0 -54
  258. package/pods/Headers/inspector/src/inspector/search-util.h +0 -26
  259. package/pods/Headers/inspector/src/inspector/string-16.h +0 -180
  260. package/pods/Headers/inspector/src/inspector/string-util.h +0 -128
  261. package/pods/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -48
  262. package/pods/Headers/inspector/src/inspector/v8-console-message.h +0 -147
  263. package/pods/Headers/inspector/src/inspector/v8-console.h +0 -173
  264. package/pods/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -62
  265. package/pods/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -248
  266. package/pods/Headers/inspector/src/inspector/v8-debugger-id.h +0 -44
  267. package/pods/Headers/inspector/src/inspector/v8-debugger-script.h +0 -123
  268. package/pods/Headers/inspector/src/inspector/v8-debugger.h +0 -257
  269. package/pods/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -91
  270. package/pods/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -80
  271. package/pods/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -191
  272. package/pods/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -156
  273. package/pods/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -34
  274. package/pods/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -71
  275. package/pods/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -24
  276. package/pods/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -70
  277. package/pods/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -88
  278. package/pods/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -104
  279. package/pods/Headers/inspector/src/inspector/v8-regex.h +0 -38
  280. package/pods/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -157
  281. package/pods/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -38
  282. package/pods/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -164
  283. package/pods/Headers/inspector/src/inspector/v8-string-conversions.h +0 -17
  284. package/pods/Headers/inspector/src/inspector/v8-value-utils.h +0 -23
  285. package/pods/Headers/inspector/src/inspector/value-mirror.h +0 -87
  286. package/pods/Headers/inspector/src/libplatform/default-platform.h +0 -92
  287. package/pods/Headers/inspector/src/logging/tracing-flags.h +0 -50
  288. package/pods/Headers/inspector/src/numbers/conversions.h +0 -183
  289. package/pods/Headers/inspector/src/tracing/trace-event.h +0 -664
  290. package/pods/Headers/inspector/src/utils/allocation.h +0 -367
  291. package/pods/Headers/inspector/src/utils/vector.h +0 -324
  292. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -305
  293. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -314
  294. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -62
  295. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -6
  296. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -58
  297. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -47
  298. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -80
  299. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -52
  300. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -26
  301. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -104
  302. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -39
  303. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -406
  304. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -32
  305. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -158
  306. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -99
  307. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -139
  308. package/pods/Headers/inspector/utils.h +0 -32
  309. package/pods/Headers/inspector/v8-inspector-platform.h +0 -44
  310. package/pods/Headers/jsi/decorator.h +0 -770
  311. package/pods/Headers/jsi/instrumentation.h +0 -117
  312. package/pods/Headers/jsi/jsi-inl.h +0 -338
  313. package/pods/Headers/jsi/jsi.h +0 -1571
  314. package/pods/Headers/jsi/jsilib.h +0 -59
  315. package/pods/Headers/jsi/threadsafe.h +0 -79
  316. package/pods/Headers/runtime/ArgConverter.h +0 -61
  317. package/pods/Headers/runtime/ArrayAdapter.h +0 -13
  318. package/pods/Headers/runtime/Caches.h +0 -98
  319. package/pods/Headers/runtime/ClassBuilder.h +0 -61
  320. package/pods/Headers/runtime/Common.h +0 -9
  321. package/pods/Headers/runtime/ConcurrentMap.h +0 -55
  322. package/pods/Headers/runtime/ConcurrentQueue.h +0 -28
  323. package/pods/Headers/runtime/Console.h +0 -27
  324. package/pods/Headers/runtime/Constants.h +0 -15
  325. package/pods/Headers/runtime/DataWrapper.h +0 -671
  326. package/pods/Headers/runtime/DictionaryAdapter.h +0 -13
  327. package/pods/Headers/runtime/ExtVector.h +0 -21
  328. package/pods/Headers/runtime/FFICall.h +0 -105
  329. package/pods/Headers/runtime/FastEnumerationAdapter.h +0 -13
  330. package/pods/Headers/runtime/FunctionReference.h +0 -18
  331. package/pods/Headers/runtime/Helpers.h +0 -84
  332. package/pods/Headers/runtime/InlineFunctions.h +0 -16
  333. package/pods/Headers/runtime/Interop.h +0 -202
  334. package/pods/Headers/runtime/KnownUnknownClassPair.h +0 -35
  335. package/pods/Headers/runtime/Metadata.h +0 -981
  336. package/pods/Headers/runtime/MetadataBuilder.h +0 -72
  337. package/pods/Headers/runtime/MetadataInlines.h +0 -157
  338. package/pods/Headers/runtime/ModuleInternal.h +0 -59
  339. package/pods/Headers/runtime/NSDataAdapter.h +0 -13
  340. package/pods/Headers/runtime/NativeScriptException.h +0 -27
  341. package/pods/Headers/runtime/ObjectManager.h +0 -31
  342. package/pods/Headers/runtime/OneByteStringResource.h +0 -21
  343. package/pods/Headers/runtime/Pointer.h +0 -26
  344. package/pods/Headers/runtime/PromiseProxy.h +0 -15
  345. package/pods/Headers/runtime/Reference.h +0 -38
  346. package/pods/Headers/runtime/Runtime.h +0 -67
  347. package/pods/Headers/runtime/RuntimeConfig.h +0 -17
  348. package/pods/Headers/runtime/SetTimeout.h +0 -34
  349. package/pods/Headers/runtime/SimpleAllocator.h +0 -23
  350. package/pods/Headers/runtime/StringHasher.h +0 -315
  351. package/pods/Headers/runtime/SymbolIterator.h +0 -18
  352. package/pods/Headers/runtime/SymbolLoader.h +0 -27
  353. package/pods/Headers/runtime/TNSDerivedClass.h +0 -8
  354. package/pods/Headers/runtime/TSHelpers.h +0 -15
  355. package/pods/Headers/runtime/Tasks.h +0 -19
  356. package/pods/Headers/runtime/UnmanagedType.h +0 -21
  357. package/pods/Headers/runtime/WeakRef.h +0 -15
  358. package/pods/Headers/runtime/Worker.h +0 -26
  359. package/pods/Headers/runtime/robin_hood.h +0 -2184
  360. package/pods/Headers/v8runtime/HostProxy.h +0 -71
  361. package/pods/Headers/v8runtime/JSIV8ValueConverter.h +0 -74
  362. package/pods/Headers/v8runtime/V8PointerValue.h +0 -44
  363. package/pods/Headers/v8runtime/V8Runtime.h +0 -240
  364. package/pods/Headers/v8runtime/V8RuntimeConfig.h +0 -26
  365. package/pods/Headers/v8runtime/V8RuntimeFactory.h +0 -21
  366. package/pods/NativeScript.podspec +0 -68
@@ -1,605 +0,0 @@
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 (macOS, 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 (Android, ChromeOS, Linux, ...)
74
- // V8_OS_DARWIN - Darwin (macOS, iOS)
75
- // V8_OS_MACOS - macOS
76
- // V8_OS_IOS - iOS
77
- // V8_OS_NETBSD - NetBSD
78
- // V8_OS_OPENBSD - OpenBSD
79
- // V8_OS_POSIX - POSIX compatible (mostly everything except Windows)
80
- // V8_OS_QNX - QNX Neutrino
81
- // V8_OS_SOLARIS - Sun Solaris and OpenSolaris
82
- // V8_OS_STARBOARD - Starboard (platform abstraction for Cobalt)
83
- // V8_OS_AIX - AIX
84
- // V8_OS_WIN - Microsoft Windows
85
-
86
- #if defined(__ANDROID__)
87
- # define V8_OS_ANDROID 1
88
- # define V8_OS_LINUX 1
89
- # define V8_OS_POSIX 1
90
- # define V8_OS_STRING "android"
91
-
92
- #elif defined(__APPLE__)
93
- # define V8_OS_POSIX 1
94
- # define V8_OS_BSD 1
95
- # define V8_OS_DARWIN 1
96
- # if defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
97
- # define V8_OS_IOS 1
98
- # define V8_OS_STRING "ios"
99
- # else
100
- # define V8_OS_MACOS 1
101
- # define V8_OS_STRING "macos"
102
- # endif // defined(TARGET_OS_IPHONE) && TARGET_OS_IPHONE
103
-
104
- #elif defined(__CYGWIN__)
105
- # define V8_OS_CYGWIN 1
106
- # define V8_OS_POSIX 1
107
- # define V8_OS_STRING "cygwin"
108
-
109
- #elif defined(__linux__)
110
- # define V8_OS_LINUX 1
111
- # define V8_OS_POSIX 1
112
- # define V8_OS_STRING "linux"
113
-
114
- #elif defined(__sun)
115
- # define V8_OS_POSIX 1
116
- # define V8_OS_SOLARIS 1
117
- # define V8_OS_STRING "sun"
118
-
119
- #elif defined(STARBOARD)
120
- # define V8_OS_STARBOARD 1
121
- # define V8_OS_STRING "starboard"
122
-
123
- #elif defined(_AIX)
124
- # define V8_OS_POSIX 1
125
- # define V8_OS_AIX 1
126
- # define V8_OS_STRING "aix"
127
-
128
- #elif defined(__FreeBSD__)
129
- # define V8_OS_BSD 1
130
- # define V8_OS_FREEBSD 1
131
- # define V8_OS_POSIX 1
132
- # define V8_OS_STRING "freebsd"
133
-
134
- #elif defined(__Fuchsia__)
135
- # define V8_OS_FUCHSIA 1
136
- # define V8_OS_POSIX 1
137
- # define V8_OS_STRING "fuchsia"
138
-
139
- #elif defined(__DragonFly__)
140
- # define V8_OS_BSD 1
141
- # define V8_OS_DRAGONFLYBSD 1
142
- # define V8_OS_POSIX 1
143
- # define V8_OS_STRING "dragonflybsd"
144
-
145
- #elif defined(__NetBSD__)
146
- # define V8_OS_BSD 1
147
- # define V8_OS_NETBSD 1
148
- # define V8_OS_POSIX 1
149
- # define V8_OS_STRING "netbsd"
150
-
151
- #elif defined(__OpenBSD__)
152
- # define V8_OS_BSD 1
153
- # define V8_OS_OPENBSD 1
154
- # define V8_OS_POSIX 1
155
- # define V8_OS_STRING "openbsd"
156
-
157
- #elif defined(__QNXNTO__)
158
- # define V8_OS_POSIX 1
159
- # define V8_OS_QNX 1
160
- # define V8_OS_STRING "qnx"
161
-
162
- #elif defined(_WIN32)
163
- # define V8_OS_WIN 1
164
- # define V8_OS_STRING "windows"
165
- #endif
166
-
167
- // -----------------------------------------------------------------------------
168
- // Operating system detection (target)
169
- //
170
- // V8_TARGET_OS_ANDROID
171
- // V8_TARGET_OS_FUCHSIA
172
- // V8_TARGET_OS_IOS
173
- // V8_TARGET_OS_LINUX
174
- // V8_TARGET_OS_MACOS
175
- // V8_TARGET_OS_WIN
176
- //
177
- // If not set explicitly, these fall back to corresponding V8_OS_ values.
178
-
179
- #ifdef V8_HAVE_TARGET_OS
180
-
181
- // The target OS is provided, just check that at least one known value is set.
182
- # if !defined(V8_TARGET_OS_ANDROID) \
183
- && !defined(V8_TARGET_OS_FUCHSIA) \
184
- && !defined(V8_TARGET_OS_IOS) \
185
- && !defined(V8_TARGET_OS_LINUX) \
186
- && !defined(V8_TARGET_OS_MACOS) \
187
- && !defined(V8_TARGET_OS_WIN)
188
- # error No known target OS defined.
189
- # endif
190
-
191
- #else // V8_HAVE_TARGET_OS
192
-
193
- # if defined(V8_TARGET_OS_ANDROID) \
194
- || defined(V8_TARGET_OS_FUCHSIA) \
195
- || defined(V8_TARGET_OS_IOS) \
196
- || defined(V8_TARGET_OS_LINUX) \
197
- || defined(V8_TARGET_OS_MACOS) \
198
- || defined(V8_TARGET_OS_WIN)
199
- # error A target OS is defined but V8_HAVE_TARGET_OS is unset.
200
- # endif
201
-
202
- // Fall back to the detected host OS.
203
- #ifdef V8_OS_ANDROID
204
- # define V8_TARGET_OS_ANDROID
205
- #endif
206
-
207
- #ifdef V8_OS_FUCHSIA
208
- # define V8_TARGET_OS_FUCHSIA
209
- #endif
210
-
211
- #ifdef V8_OS_IOS
212
- # define V8_TARGET_OS_IOS
213
- #endif
214
-
215
- #ifdef V8_OS_LINUX
216
- # define V8_TARGET_OS_LINUX
217
- #endif
218
-
219
- #ifdef V8_OS_MACOS
220
- # define V8_TARGET_OS_MACOS
221
- #endif
222
-
223
- #ifdef V8_OS_WIN
224
- # define V8_TARGET_OS_WIN
225
- #endif
226
-
227
- #endif // V8_HAVE_TARGET_OS
228
-
229
- #if defined(V8_TARGET_OS_ANDROID)
230
- # define V8_TARGET_OS_STRING "android"
231
- #elif defined(V8_TARGET_OS_FUCHSIA)
232
- # define V8_TARGET_OS_STRING "fuchsia"
233
- #elif defined(V8_TARGET_OS_IOS)
234
- # define V8_TARGET_OS_STRING "ios"
235
- #elif defined(V8_TARGET_OS_LINUX)
236
- # define V8_TARGET_OS_STRING "linux"
237
- #elif defined(V8_TARGET_OS_MACOS)
238
- # define V8_TARGET_OS_STRING "macos"
239
- #elif defined(V8_TARGET_OS_WINDOWS)
240
- # define V8_TARGET_OS_STRING "windows"
241
- #else
242
- # define V8_TARGET_OS_STRING "unknown"
243
- #endif
244
-
245
- // -----------------------------------------------------------------------------
246
- // C library detection
247
- //
248
- // V8_LIBC_MSVCRT - MSVC libc
249
- // V8_LIBC_BIONIC - Bionic libc
250
- // V8_LIBC_BSD - BSD libc derivate
251
- // V8_LIBC_GLIBC - GNU C library
252
- // V8_LIBC_UCLIBC - uClibc
253
- //
254
- // Note that testing for libc must be done using #if not #ifdef. For example,
255
- // to test for the GNU C library, use:
256
- // #if V8_LIBC_GLIBC
257
- // ...
258
- // #endif
259
-
260
- #if defined (_MSC_VER)
261
- # define V8_LIBC_MSVCRT 1
262
- #elif defined(__BIONIC__)
263
- # define V8_LIBC_BIONIC 1
264
- # define V8_LIBC_BSD 1
265
- #elif defined(__UCLIBC__)
266
- // Must test for UCLIBC before GLIBC, as UCLIBC pretends to be GLIBC.
267
- # define V8_LIBC_UCLIBC 1
268
- #elif defined(__GLIBC__) || defined(__GNU_LIBRARY__)
269
- # define V8_LIBC_GLIBC 1
270
- #else
271
- # define V8_LIBC_BSD V8_OS_BSD
272
- #endif
273
-
274
-
275
- // -----------------------------------------------------------------------------
276
- // Compiler detection
277
- //
278
- // V8_CC_GNU - GCC, or clang in gcc mode
279
- // V8_CC_INTEL - Intel C++
280
- // V8_CC_MINGW - Minimalist GNU for Windows
281
- // V8_CC_MINGW32 - Minimalist GNU for Windows (mingw32)
282
- // V8_CC_MINGW64 - Minimalist GNU for Windows (mingw-w64)
283
- // V8_CC_MSVC - Microsoft Visual C/C++, or clang in cl.exe mode
284
- //
285
- // C++11 feature detection
286
- //
287
- // Compiler-specific feature detection
288
- //
289
- // V8_HAS_ATTRIBUTE_ALWAYS_INLINE - __attribute__((always_inline))
290
- // supported
291
- // V8_HAS_ATTRIBUTE_NONNULL - __attribute__((nonnull)) supported
292
- // V8_HAS_ATTRIBUTE_NOINLINE - __attribute__((noinline)) supported
293
- // V8_HAS_ATTRIBUTE_UNUSED - __attribute__((unused)) supported
294
- // V8_HAS_ATTRIBUTE_VISIBILITY - __attribute__((visibility)) supported
295
- // V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT - __attribute__((warn_unused_result))
296
- // supported
297
- // V8_HAS_CPP_ATTRIBUTE_NODISCARD - [[nodiscard]] supported
298
- // V8_HAS_CPP_ATTRIBUTE_NO_UNIQUE_ADDRESS
299
- // - [[no_unique_address]] supported
300
- // V8_HAS_BUILTIN_BSWAP16 - __builtin_bswap16() supported
301
- // V8_HAS_BUILTIN_BSWAP32 - __builtin_bswap32() supported
302
- // V8_HAS_BUILTIN_BSWAP64 - __builtin_bswap64() supported
303
- // V8_HAS_BUILTIN_CLZ - __builtin_clz() supported
304
- // V8_HAS_BUILTIN_CTZ - __builtin_ctz() supported
305
- // V8_HAS_BUILTIN_EXPECT - __builtin_expect() supported
306
- // V8_HAS_BUILTIN_FRAME_ADDRESS - __builtin_frame_address() supported
307
- // V8_HAS_BUILTIN_POPCOUNT - __builtin_popcount() supported
308
- // V8_HAS_BUILTIN_SADD_OVERFLOW - __builtin_sadd_overflow() supported
309
- // V8_HAS_BUILTIN_SSUB_OVERFLOW - __builtin_ssub_overflow() supported
310
- // V8_HAS_BUILTIN_UADD_OVERFLOW - __builtin_uadd_overflow() supported
311
- // V8_HAS_COMPUTED_GOTO - computed goto/labels as values
312
- // supported
313
- // V8_HAS_DECLSPEC_NOINLINE - __declspec(noinline) supported
314
- // V8_HAS_DECLSPEC_SELECTANY - __declspec(selectany) supported
315
- // V8_HAS___FORCEINLINE - __forceinline supported
316
- //
317
- // Note that testing for compilers and/or features must be done using #if
318
- // not #ifdef. For example, to test for Intel C++ Compiler, use:
319
- // #if V8_CC_INTEL
320
- // ...
321
- // #endif
322
-
323
- #if defined(__has_cpp_attribute)
324
- #define V8_HAS_CPP_ATTRIBUTE(FEATURE) __has_cpp_attribute(FEATURE)
325
- #else
326
- #define V8_HAS_CPP_ATTRIBUTE(FEATURE) 0
327
- #endif
328
-
329
- #if defined(__clang__)
330
-
331
- #if defined(__GNUC__) // Clang in gcc mode.
332
- # define V8_CC_GNU 1
333
- #endif
334
-
335
- # define V8_HAS_ATTRIBUTE_ALWAYS_INLINE (__has_attribute(always_inline))
336
- # define V8_HAS_ATTRIBUTE_NONNULL (__has_attribute(nonnull))
337
- # define V8_HAS_ATTRIBUTE_NOINLINE (__has_attribute(noinline))
338
- # define V8_HAS_ATTRIBUTE_UNUSED (__has_attribute(unused))
339
- # define V8_HAS_ATTRIBUTE_VISIBILITY (__has_attribute(visibility))
340
- # define V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT \
341
- (__has_attribute(warn_unused_result))
342
-
343
- # define V8_HAS_CPP_ATTRIBUTE_NODISCARD (V8_HAS_CPP_ATTRIBUTE(nodiscard))
344
- # define V8_HAS_CPP_ATTRIBUTE_NO_UNIQUE_ADDRESS \
345
- (V8_HAS_CPP_ATTRIBUTE(no_unique_address))
346
-
347
- # define V8_HAS_BUILTIN_ASSUME_ALIGNED (__has_builtin(__builtin_assume_aligned))
348
- # define V8_HAS_BUILTIN_BSWAP16 (__has_builtin(__builtin_bswap16))
349
- # define V8_HAS_BUILTIN_BSWAP32 (__has_builtin(__builtin_bswap32))
350
- # define V8_HAS_BUILTIN_BSWAP64 (__has_builtin(__builtin_bswap64))
351
- # define V8_HAS_BUILTIN_CLZ (__has_builtin(__builtin_clz))
352
- # define V8_HAS_BUILTIN_CTZ (__has_builtin(__builtin_ctz))
353
- # define V8_HAS_BUILTIN_EXPECT (__has_builtin(__builtin_expect))
354
- # define V8_HAS_BUILTIN_FRAME_ADDRESS (__has_builtin(__builtin_frame_address))
355
- # define V8_HAS_BUILTIN_POPCOUNT (__has_builtin(__builtin_popcount))
356
- # define V8_HAS_BUILTIN_SADD_OVERFLOW (__has_builtin(__builtin_sadd_overflow))
357
- # define V8_HAS_BUILTIN_SSUB_OVERFLOW (__has_builtin(__builtin_ssub_overflow))
358
- # define V8_HAS_BUILTIN_UADD_OVERFLOW (__has_builtin(__builtin_uadd_overflow))
359
-
360
- // Clang has no __has_feature for computed gotos.
361
- // GCC doc: https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html
362
- # define V8_HAS_COMPUTED_GOTO 1
363
-
364
- #elif defined(__GNUC__)
365
-
366
- # define V8_CC_GNU 1
367
- # if defined(__INTEL_COMPILER) // Intel C++ also masquerades as GCC 3.2.0
368
- # define V8_CC_INTEL 1
369
- # endif
370
- # if defined(__MINGW32__)
371
- # define V8_CC_MINGW32 1
372
- # endif
373
- # if defined(__MINGW64__)
374
- # define V8_CC_MINGW64 1
375
- # endif
376
- # define V8_CC_MINGW (V8_CC_MINGW32 || V8_CC_MINGW64)
377
-
378
- // always_inline is available in gcc 4.0 but not very reliable until 4.4.
379
- // Works around "sorry, unimplemented: inlining failed" build errors with
380
- // older compilers.
381
- # define V8_HAS_ATTRIBUTE_ALWAYS_INLINE 1
382
- # define V8_HAS_ATTRIBUTE_NOINLINE 1
383
- # define V8_HAS_ATTRIBUTE_UNUSED 1
384
- # define V8_HAS_ATTRIBUTE_VISIBILITY 1
385
- # define V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT (!V8_CC_INTEL)
386
-
387
- // [[nodiscard]] does not work together with with
388
- // __attribute__((visibility(""))) on GCC 7.4 which is why there is no define
389
- // for V8_HAS_CPP_ATTRIBUTE_NODISCARD. See https://crbug.com/v8/11707.
390
-
391
- # define V8_HAS_BUILTIN_ASSUME_ALIGNED 1
392
- # define V8_HAS_BUILTIN_CLZ 1
393
- # define V8_HAS_BUILTIN_CTZ 1
394
- # define V8_HAS_BUILTIN_EXPECT 1
395
- # define V8_HAS_BUILTIN_FRAME_ADDRESS 1
396
- # define V8_HAS_BUILTIN_POPCOUNT 1
397
-
398
- // GCC doc: https://gcc.gnu.org/onlinedocs/gcc/Labels-as-Values.html
399
- #define V8_HAS_COMPUTED_GOTO 1
400
-
401
- #endif
402
-
403
- #if defined(_MSC_VER)
404
- # define V8_CC_MSVC 1
405
-
406
- # define V8_HAS_DECLSPEC_NOINLINE 1
407
- # define V8_HAS_DECLSPEC_SELECTANY 1
408
-
409
- # define V8_HAS___FORCEINLINE 1
410
-
411
- #endif
412
-
413
-
414
- // -----------------------------------------------------------------------------
415
- // Helper macros
416
-
417
- // A macro used to make better inlining. Don't bother for debug builds.
418
- // Use like:
419
- // V8_INLINE int GetZero() { return 0; }
420
- #if !defined(DEBUG) && V8_HAS_ATTRIBUTE_ALWAYS_INLINE
421
- # define V8_INLINE inline __attribute__((always_inline))
422
- #elif !defined(DEBUG) && V8_HAS___FORCEINLINE
423
- # define V8_INLINE __forceinline
424
- #else
425
- # define V8_INLINE inline
426
- #endif
427
-
428
- #if V8_HAS_BUILTIN_ASSUME_ALIGNED
429
- # define V8_ASSUME_ALIGNED(ptr, alignment) \
430
- __builtin_assume_aligned((ptr), (alignment))
431
- #else
432
- # define V8_ASSUME_ALIGNED(ptr, alignment) (ptr)
433
- #endif
434
-
435
-
436
- // A macro to mark specific arguments as non-null.
437
- // Use like:
438
- // int add(int* x, int y, int* z) V8_NONNULL(1, 3) { return *x + y + *z; }
439
- #if V8_HAS_ATTRIBUTE_NONNULL
440
- # define V8_NONNULL(...) __attribute__((nonnull(__VA_ARGS__)))
441
- #else
442
- # define V8_NONNULL(...) /* NOT SUPPORTED */
443
- #endif
444
-
445
-
446
- // A macro used to tell the compiler to never inline a particular function.
447
- // Use like:
448
- // V8_NOINLINE int GetMinusOne() { return -1; }
449
- #if V8_HAS_ATTRIBUTE_NOINLINE
450
- # define V8_NOINLINE __attribute__((noinline))
451
- #elif V8_HAS_DECLSPEC_NOINLINE
452
- # define V8_NOINLINE __declspec(noinline)
453
- #else
454
- # define V8_NOINLINE /* NOT SUPPORTED */
455
- #endif
456
-
457
-
458
- // A macro (V8_DEPRECATED) to mark classes or functions as deprecated.
459
- #if defined(V8_DEPRECATION_WARNINGS)
460
- # define V8_DEPRECATED(message) [[deprecated(message)]]
461
- #else
462
- # define V8_DEPRECATED(message)
463
- #endif
464
-
465
-
466
- // A macro (V8_DEPRECATE_SOON) to make it easier to see what will be deprecated.
467
- #if defined(V8_IMMINENT_DEPRECATION_WARNINGS)
468
- # define V8_DEPRECATE_SOON(message) [[deprecated(message)]]
469
- #else
470
- # define V8_DEPRECATE_SOON(message)
471
- #endif
472
-
473
-
474
- #if defined(__GNUC__) && !defined(__clang__) && (__GNUC__ < 6)
475
- # define V8_ENUM_DEPRECATED(message)
476
- # define V8_ENUM_DEPRECATE_SOON(message)
477
- #else
478
- # define V8_ENUM_DEPRECATED(message) V8_DEPRECATED(message)
479
- # define V8_ENUM_DEPRECATE_SOON(message) V8_DEPRECATE_SOON(message)
480
- #endif
481
-
482
-
483
- // A macro to provide the compiler with branch prediction information.
484
- #if V8_HAS_BUILTIN_EXPECT
485
- # define V8_UNLIKELY(condition) (__builtin_expect(!!(condition), 0))
486
- # define V8_LIKELY(condition) (__builtin_expect(!!(condition), 1))
487
- #else
488
- # define V8_UNLIKELY(condition) (condition)
489
- # define V8_LIKELY(condition) (condition)
490
- #endif
491
-
492
-
493
- // Annotate a function indicating the caller must examine the return value.
494
- // Use like:
495
- // int foo() V8_WARN_UNUSED_RESULT;
496
- #if V8_HAS_ATTRIBUTE_WARN_UNUSED_RESULT
497
- #define V8_WARN_UNUSED_RESULT __attribute__((warn_unused_result))
498
- #else
499
- #define V8_WARN_UNUSED_RESULT /* NOT SUPPORTED */
500
- #endif
501
-
502
-
503
- // Annotate a class or constructor indicating the caller must assign the
504
- // constructed instances.
505
- // Apply to the whole class like:
506
- // class V8_NODISCARD Foo() { ... };
507
- // or apply to just one constructor like:
508
- // V8_NODISCARD Foo() { ... };
509
- // [[nodiscard]] comes in C++17 but supported in clang with -std >= c++11.
510
- #if V8_HAS_CPP_ATTRIBUTE_NODISCARD
511
- #define V8_NODISCARD [[nodiscard]]
512
- #else
513
- #define V8_NODISCARD /* NOT SUPPORTED */
514
- #endif
515
-
516
- // The no_unique_address attribute allows tail padding in a non-static data
517
- // member to overlap other members of the enclosing class (and in the special
518
- // case when the type is empty, permits it to fully overlap other members). The
519
- // field is laid out as if a base class were encountered at the corresponding
520
- // point within the class (except that it does not share a vptr with the
521
- // enclosing object).
522
- //
523
- // Apply to a data member like:
524
- //
525
- // class Foo {
526
- // V8_NO_UNIQUE_ADDRESS Bar bar_;
527
- // };
528
- //
529
- // [[no_unique_address]] comes in C++20 but supported in clang with
530
- // -std >= c++11.
531
- #if V8_HAS_CPP_ATTRIBUTE_NO_UNIQUE_ADDRESS
532
- #define V8_NO_UNIQUE_ADDRESS [[no_unique_address]]
533
- #else
534
- #define V8_NO_UNIQUE_ADDRESS /* NOT SUPPORTED */
535
- #endif
536
-
537
- // Helper macro to define no_sanitize attributes only with clang.
538
- #if defined(__clang__) && defined(__has_attribute)
539
- #if __has_attribute(no_sanitize)
540
- #define V8_CLANG_NO_SANITIZE(what) __attribute__((no_sanitize(what)))
541
- #endif
542
- #endif
543
- #if !defined(V8_CLANG_NO_SANITIZE)
544
- #define V8_CLANG_NO_SANITIZE(what)
545
- #endif
546
-
547
- #if defined(BUILDING_V8_SHARED) && defined(USING_V8_SHARED)
548
- #error Inconsistent build configuration: To build the V8 shared library \
549
- set BUILDING_V8_SHARED, to include its headers for linking against the \
550
- V8 shared library set USING_V8_SHARED.
551
- #endif
552
-
553
- #ifdef V8_OS_WIN
554
-
555
- // Setup for Windows DLL export/import. When building the V8 DLL the
556
- // BUILDING_V8_SHARED needs to be defined. When building a program which uses
557
- // the V8 DLL USING_V8_SHARED needs to be defined. When either building the V8
558
- // static library or building a program which uses the V8 static library neither
559
- // BUILDING_V8_SHARED nor USING_V8_SHARED should be defined.
560
- #ifdef BUILDING_V8_SHARED
561
- # define V8_EXPORT __declspec(dllexport)
562
- #elif USING_V8_SHARED
563
- # define V8_EXPORT __declspec(dllimport)
564
- #else
565
- # define V8_EXPORT
566
- #endif // BUILDING_V8_SHARED
567
-
568
- #else // V8_OS_WIN
569
-
570
- // Setup for Linux shared library export.
571
- #if V8_HAS_ATTRIBUTE_VISIBILITY
572
- # ifdef BUILDING_V8_SHARED
573
- # define V8_EXPORT __attribute__ ((visibility("default")))
574
- # else
575
- # define V8_EXPORT
576
- # endif
577
- #else
578
- # define V8_EXPORT
579
- #endif
580
-
581
- #endif // V8_OS_WIN
582
-
583
- // The sandbox is available (i.e. defined) when pointer compression
584
- // is enabled, but it is only used when V8_SANDBOX is enabled as
585
- // well. This allows better test coverage of the sandbox.
586
- #if defined(V8_COMPRESS_POINTERS)
587
- #define V8_SANDBOX_IS_AVAILABLE
588
- #endif
589
-
590
- #if defined(V8_SANDBOX) && !defined(V8_SANDBOX_IS_AVAILABLE)
591
- #error Inconsistent configuration: sandbox is enabled but not available
592
- #endif
593
-
594
- // From C++17 onwards, static constexpr member variables are defined to be
595
- // "inline", and adding a separate definition for them can trigger deprecation
596
- // warnings. For C++14 and below, however, these definitions are required.
597
- #if __cplusplus < 201703L && (!defined(_MSVC_LANG) || _MSVC_LANG < 201703L)
598
- #define V8_STATIC_CONSTEXPR_VARIABLES_NEED_DEFINITIONS
599
- #endif
600
-
601
- // clang-format on
602
-
603
- #undef V8_HAS_CPP_ATTRIBUTE
604
-
605
- #endif // V8CONFIG_H_
@@ -1,20 +0,0 @@
1
- #ifndef InspectorServer_h
2
- #define InspectorServer_h
3
-
4
- #include <functional>
5
- #include <string>
6
- #include <sys/types.h>
7
- #include <dispatch/dispatch.h>
8
-
9
- namespace v8_inspector {
10
-
11
- class InspectorServer {
12
- public:
13
- static in_port_t Init(std::function<void (std::function<void (std::string)>)> onClientConnected, std::function<void (std::string)> onMessage);
14
- private:
15
- static void Send(dispatch_io_t channel, dispatch_queue_t queue, std::string message);
16
- };
17
-
18
- }
19
-
20
- #endif /* InspectorServer_h */
@@ -1,66 +0,0 @@
1
- #ifndef JsV8InspectorClient_h
2
- #define JsV8InspectorClient_h
3
-
4
- #include <functional>
5
- #include <dispatch/dispatch.h>
6
- #include <string>
7
- #include <vector>
8
- #include <map>
9
-
10
- #include "include/v8-inspector.h"
11
- #include "runtime/Runtime.h"
12
-
13
- namespace v8_inspector {
14
-
15
- class JsV8InspectorClient : V8InspectorClient, V8Inspector::Channel {
16
- public:
17
- JsV8InspectorClient(tns::Runtime* runtime);
18
- void init();
19
- void connect(int argc, char** argv);
20
- void createInspectorSession();
21
- void disconnect();
22
- void dispatchMessage(const std::string& message);
23
-
24
- void sendResponse(int callId, std::unique_ptr<StringBuffer> message) override;
25
- void sendNotification(std::unique_ptr<StringBuffer> message) override;
26
- void flushProtocolNotifications() override;
27
-
28
- void runMessageLoopOnPause(int contextGroupId) override;
29
- void quitMessageLoopOnPause() override;
30
- v8::Local<v8::Context> ensureDefaultContextInGroup(int contextGroupId) override;
31
-
32
- void scheduleBreak();
33
- void registerModules();
34
-
35
- static std::map<std::string, v8::Persistent<v8::Object>*> Domains;
36
- private:
37
- static int contextGroupId;
38
- bool isConnected_;
39
- std::unique_ptr<V8Inspector> inspector_;
40
- v8::Persistent<v8::Context> context_;
41
- std::unique_ptr<V8InspectorSession> session_;
42
- tns::Runtime* runtime_;
43
- bool terminated_;
44
- std::vector<std::string> messages_;
45
- bool runningNestedLoops_;
46
- dispatch_queue_t messagesQueue_;
47
- dispatch_queue_t messageLoopQueue_;
48
- dispatch_semaphore_t messageArrived_;
49
- std::function<void (std::string)> sender_;
50
- bool isWaitingForDebugger_;
51
-
52
- void enableInspector(int argc, char** argv);
53
- void notify(std::unique_ptr<StringBuffer> message);
54
- void onFrontendConnected(std::function<void (std::string)> sender);
55
- void onFrontendMessageReceived(std::string message);
56
- template <class TypeName>
57
- static v8::Local<TypeName> PersistentToLocal(v8::Isolate* isolate, const v8::Persistent<TypeName>& persistent);
58
- std::string PumpMessage();
59
- static void registerDomainDispatcherCallback(const v8::FunctionCallbackInfo<v8::Value>& args);
60
- static void inspectorSendEventCallback(const v8::FunctionCallbackInfo<v8::Value>& args);
61
- static void inspectorTimestampCallback(const v8::FunctionCallbackInfo<v8::Value>& args);
62
- };
63
-
64
- }
65
-
66
- #endif /* JsV8InspectorClient_h */