@triniwiz/nativescript-masonkit 1.0.0-alpha.12 → 1.0.0-alpha.14

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 (323) hide show
  1. package/common.js.map +1 -1
  2. package/helpers.d.ts +5 -5
  3. package/helpers.js +0 -3
  4. package/helpers.js.map +1 -1
  5. package/index.android.js +2 -2
  6. package/index.android.js.map +1 -1
  7. package/index.ios.js +2 -2
  8. package/index.ios.js.map +1 -1
  9. package/package.json +2 -2
  10. package/platforms/android/masonkit-release.aar +0 -0
  11. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Mason +0 -0
  12. package/platforms/ios/Mason.xcframework/ios-arm64/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios.abi.json +4559 -1456
  13. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  14. package/platforms/ios/Mason.xcframework/ios-arm64/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +1932 -1932
  15. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Mason +0 -0
  16. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/arm64-apple-ios-simulator.abi.json +4559 -1456
  17. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/Mason.framework/Modules/Mason.swiftmodule/x86_64-apple-ios-simulator.abi.json +4559 -1456
  18. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/DWARF/Mason +0 -0
  19. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/aarch64/Mason.yml +1932 -1932
  20. package/platforms/ios/Mason.xcframework/ios-arm64_x86_64-simulator/dSYMs/Mason.framework.dSYM/Contents/Resources/Relocations/x86_64/Mason.yml +1883 -1883
  21. package/style.d.ts +1 -1
  22. package/style.js +0 -1
  23. package/style.js.map +1 -1
  24. package/node.d.ts +0 -2
  25. package/node.js +0 -3
  26. package/node.js.map +0 -1
  27. package/platforms/ios/Podfile +0 -1
  28. package/platforms/ios/build.xcconfig +0 -5
  29. package/platforms/ios/prebuild.sh +0 -101
  30. package/platforms/new_native_src/cpp/Caches.cpp +0 -36
  31. package/platforms/new_native_src/cpp/Caches.h +0 -42
  32. package/platforms/new_native_src/cpp/Common.h +0 -34
  33. package/platforms/new_native_src/cpp/ConcurrentMap.h +0 -57
  34. package/platforms/new_native_src/cpp/Helpers.cpp +0 -101
  35. package/platforms/new_native_src/cpp/Helpers.h +0 -364
  36. package/platforms/new_native_src/cpp/MasonImpl.cpp +0 -68
  37. package/platforms/new_native_src/cpp/MasonImpl.h +0 -40
  38. package/platforms/new_native_src/cpp/MasonNodeImpl.cpp +0 -89
  39. package/platforms/new_native_src/cpp/MasonNodeImpl.h +0 -47
  40. package/platforms/new_native_src/cpp/MasonStyleImpl.cpp +0 -2181
  41. package/platforms/new_native_src/cpp/MasonStyleImpl.h +0 -420
  42. package/platforms/new_native_src/cpp/include/mason_native.h +0 -972
  43. package/platforms/new_native_src/cpp/include/robin_hood.h +0 -2544
  44. package/src-native/pods/Headers/include/APIDesign.md +0 -72
  45. package/src-native/pods/Headers/include/DEPS +0 -10
  46. package/src-native/pods/Headers/include/DIR_METADATA +0 -11
  47. package/src-native/pods/Headers/include/OWNERS +0 -23
  48. package/src-native/pods/Headers/include/cppgc/DEPS +0 -8
  49. package/src-native/pods/Headers/include/cppgc/OWNERS +0 -2
  50. package/src-native/pods/Headers/include/cppgc/README.md +0 -133
  51. package/src-native/pods/Headers/include/cppgc/allocation.h +0 -310
  52. package/src-native/pods/Headers/include/cppgc/common.h +0 -29
  53. package/src-native/pods/Headers/include/cppgc/cross-thread-persistent.h +0 -465
  54. package/src-native/pods/Headers/include/cppgc/custom-space.h +0 -97
  55. package/src-native/pods/Headers/include/cppgc/default-platform.h +0 -67
  56. package/src-native/pods/Headers/include/cppgc/ephemeron-pair.h +0 -30
  57. package/src-native/pods/Headers/include/cppgc/explicit-management.h +0 -100
  58. package/src-native/pods/Headers/include/cppgc/garbage-collected.h +0 -106
  59. package/src-native/pods/Headers/include/cppgc/heap-consistency.h +0 -266
  60. package/src-native/pods/Headers/include/cppgc/heap-state.h +0 -82
  61. package/src-native/pods/Headers/include/cppgc/heap-statistics.h +0 -120
  62. package/src-native/pods/Headers/include/cppgc/heap.h +0 -206
  63. package/src-native/pods/Headers/include/cppgc/internal/api-constants.h +0 -55
  64. package/src-native/pods/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -48
  65. package/src-native/pods/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -79
  66. package/src-native/pods/Headers/include/cppgc/internal/compiler-specific.h +0 -38
  67. package/src-native/pods/Headers/include/cppgc/internal/finalizer-trait.h +0 -93
  68. package/src-native/pods/Headers/include/cppgc/internal/gc-info.h +0 -156
  69. package/src-native/pods/Headers/include/cppgc/internal/logging.h +0 -50
  70. package/src-native/pods/Headers/include/cppgc/internal/name-trait.h +0 -122
  71. package/src-native/pods/Headers/include/cppgc/internal/persistent-node.h +0 -216
  72. package/src-native/pods/Headers/include/cppgc/internal/pointer-policies.h +0 -186
  73. package/src-native/pods/Headers/include/cppgc/internal/write-barrier.h +0 -435
  74. package/src-native/pods/Headers/include/cppgc/liveness-broker.h +0 -77
  75. package/src-native/pods/Headers/include/cppgc/macros.h +0 -26
  76. package/src-native/pods/Headers/include/cppgc/member.h +0 -291
  77. package/src-native/pods/Headers/include/cppgc/name-provider.h +0 -65
  78. package/src-native/pods/Headers/include/cppgc/object-size-trait.h +0 -58
  79. package/src-native/pods/Headers/include/cppgc/persistent.h +0 -370
  80. package/src-native/pods/Headers/include/cppgc/platform.h +0 -156
  81. package/src-native/pods/Headers/include/cppgc/prefinalizer.h +0 -75
  82. package/src-native/pods/Headers/include/cppgc/process-heap-statistics.h +0 -36
  83. package/src-native/pods/Headers/include/cppgc/sentinel-pointer.h +0 -32
  84. package/src-native/pods/Headers/include/cppgc/source-location.h +0 -92
  85. package/src-native/pods/Headers/include/cppgc/testing.h +0 -106
  86. package/src-native/pods/Headers/include/cppgc/trace-trait.h +0 -116
  87. package/src-native/pods/Headers/include/cppgc/type-traits.h +0 -240
  88. package/src-native/pods/Headers/include/cppgc/visitor.h +0 -379
  89. package/src-native/pods/Headers/include/js_protocol-1.2.json +0 -936
  90. package/src-native/pods/Headers/include/js_protocol-1.3.json +0 -1112
  91. package/src-native/pods/Headers/include/js_protocol.pdl +0 -1709
  92. package/src-native/pods/Headers/include/libffi/arm64/ffi.h +0 -524
  93. package/src-native/pods/Headers/include/libffi/arm64/ffitarget.h +0 -92
  94. package/src-native/pods/Headers/include/libffi/x86_64/ffi.h +0 -524
  95. package/src-native/pods/Headers/include/libffi/x86_64/ffitarget.h +0 -147
  96. package/src-native/pods/Headers/include/libffi.h +0 -12
  97. package/src-native/pods/Headers/include/libplatform/DEPS +0 -9
  98. package/src-native/pods/Headers/include/libplatform/libplatform-export.h +0 -29
  99. package/src-native/pods/Headers/include/libplatform/libplatform.h +0 -106
  100. package/src-native/pods/Headers/include/libplatform/v8-tracing.h +0 -333
  101. package/src-native/pods/Headers/include/v8-array-buffer.h +0 -433
  102. package/src-native/pods/Headers/include/v8-callbacks.h +0 -397
  103. package/src-native/pods/Headers/include/v8-container.h +0 -129
  104. package/src-native/pods/Headers/include/v8-context.h +0 -407
  105. package/src-native/pods/Headers/include/v8-cppgc.h +0 -215
  106. package/src-native/pods/Headers/include/v8-data.h +0 -80
  107. package/src-native/pods/Headers/include/v8-date.h +0 -43
  108. package/src-native/pods/Headers/include/v8-debug.h +0 -168
  109. package/src-native/pods/Headers/include/v8-embedder-heap.h +0 -218
  110. package/src-native/pods/Headers/include/v8-embedder-state-scope.h +0 -51
  111. package/src-native/pods/Headers/include/v8-exception.h +0 -217
  112. package/src-native/pods/Headers/include/v8-extension.h +0 -62
  113. package/src-native/pods/Headers/include/v8-external.h +0 -37
  114. package/src-native/pods/Headers/include/v8-fast-api-calls.h +0 -939
  115. package/src-native/pods/Headers/include/v8-forward.h +0 -81
  116. package/src-native/pods/Headers/include/v8-function-callback.h +0 -475
  117. package/src-native/pods/Headers/include/v8-function.h +0 -125
  118. package/src-native/pods/Headers/include/v8-initialization.h +0 -315
  119. package/src-native/pods/Headers/include/v8-inspector-protocol.h +0 -13
  120. package/src-native/pods/Headers/include/v8-inspector.h +0 -376
  121. package/src-native/pods/Headers/include/v8-internal.h +0 -661
  122. package/src-native/pods/Headers/include/v8-isolate.h +0 -1709
  123. package/src-native/pods/Headers/include/v8-json.h +0 -47
  124. package/src-native/pods/Headers/include/v8-local-handle.h +0 -455
  125. package/src-native/pods/Headers/include/v8-locker.h +0 -149
  126. package/src-native/pods/Headers/include/v8-maybe.h +0 -137
  127. package/src-native/pods/Headers/include/v8-memory-span.h +0 -43
  128. package/src-native/pods/Headers/include/v8-message.h +0 -216
  129. package/src-native/pods/Headers/include/v8-metrics.h +0 -255
  130. package/src-native/pods/Headers/include/v8-microtask-queue.h +0 -152
  131. package/src-native/pods/Headers/include/v8-microtask.h +0 -28
  132. package/src-native/pods/Headers/include/v8-object.h +0 -775
  133. package/src-native/pods/Headers/include/v8-persistent-handle.h +0 -590
  134. package/src-native/pods/Headers/include/v8-platform.h +0 -1092
  135. package/src-native/pods/Headers/include/v8-primitive-object.h +0 -118
  136. package/src-native/pods/Headers/include/v8-primitive.h +0 -866
  137. package/src-native/pods/Headers/include/v8-profiler.h +0 -1198
  138. package/src-native/pods/Headers/include/v8-promise.h +0 -174
  139. package/src-native/pods/Headers/include/v8-proxy.h +0 -50
  140. package/src-native/pods/Headers/include/v8-regexp.h +0 -105
  141. package/src-native/pods/Headers/include/v8-script.h +0 -748
  142. package/src-native/pods/Headers/include/v8-snapshot.h +0 -196
  143. package/src-native/pods/Headers/include/v8-statistics.h +0 -217
  144. package/src-native/pods/Headers/include/v8-template.h +0 -1079
  145. package/src-native/pods/Headers/include/v8-traced-handle.h +0 -420
  146. package/src-native/pods/Headers/include/v8-typed-array.h +0 -282
  147. package/src-native/pods/Headers/include/v8-unwinder-state.h +0 -31
  148. package/src-native/pods/Headers/include/v8-unwinder.h +0 -132
  149. package/src-native/pods/Headers/include/v8-util.h +0 -658
  150. package/src-native/pods/Headers/include/v8-value-serializer-version.h +0 -24
  151. package/src-native/pods/Headers/include/v8-value-serializer.h +0 -279
  152. package/src-native/pods/Headers/include/v8-value.h +0 -526
  153. package/src-native/pods/Headers/include/v8-version-string.h +0 -38
  154. package/src-native/pods/Headers/include/v8-version.h +0 -20
  155. package/src-native/pods/Headers/include/v8-wasm-trap-handler-posix.h +0 -31
  156. package/src-native/pods/Headers/include/v8-wasm-trap-handler-win.h +0 -28
  157. package/src-native/pods/Headers/include/v8-wasm.h +0 -257
  158. package/src-native/pods/Headers/include/v8-weak-callback-info.h +0 -86
  159. package/src-native/pods/Headers/include/v8.h +0 -88
  160. package/src-native/pods/Headers/include/v8config.h +0 -605
  161. package/src-native/pods/Headers/inspector/InspectorServer.h +0 -20
  162. package/src-native/pods/Headers/inspector/JsV8InspectorClient.h +0 -66
  163. package/src-native/pods/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -1123
  164. package/src-native/pods/Headers/inspector/base64.h +0 -9
  165. package/src-native/pods/Headers/inspector/src/base/address-region.h +0 -95
  166. package/src-native/pods/Headers/inspector/src/base/atomic-utils.h +0 -219
  167. package/src-native/pods/Headers/inspector/src/base/atomicops.h +0 -332
  168. package/src-native/pods/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -89
  169. package/src-native/pods/Headers/inspector/src/base/base-export.h +0 -31
  170. package/src-native/pods/Headers/inspector/src/base/bits.h +0 -343
  171. package/src-native/pods/Headers/inspector/src/base/build_config.h +0 -234
  172. package/src-native/pods/Headers/inspector/src/base/compiler-specific.h +0 -136
  173. package/src-native/pods/Headers/inspector/src/base/export-template.h +0 -163
  174. package/src-native/pods/Headers/inspector/src/base/flags.h +0 -130
  175. package/src-native/pods/Headers/inspector/src/base/immediate-crash.h +0 -162
  176. package/src-native/pods/Headers/inspector/src/base/lazy-instance.h +0 -258
  177. package/src-native/pods/Headers/inspector/src/base/logging.h +0 -417
  178. package/src-native/pods/Headers/inspector/src/base/macros.h +0 -423
  179. package/src-native/pods/Headers/inspector/src/base/memory.h +0 -89
  180. package/src-native/pods/Headers/inspector/src/base/once.h +0 -108
  181. package/src-native/pods/Headers/inspector/src/base/optional.h +0 -882
  182. package/src-native/pods/Headers/inspector/src/base/platform/mutex.h +0 -370
  183. package/src-native/pods/Headers/inspector/src/base/platform/platform.h +0 -476
  184. package/src-native/pods/Headers/inspector/src/base/platform/semaphore.h +0 -108
  185. package/src-native/pods/Headers/inspector/src/base/platform/v8-time.h +0 -513
  186. package/src-native/pods/Headers/inspector/src/base/platform/wrappers.h +0 -73
  187. package/src-native/pods/Headers/inspector/src/base/safe_conversions.h +0 -389
  188. package/src-native/pods/Headers/inspector/src/base/safe_conversions_impl.h +0 -822
  189. package/src-native/pods/Headers/inspector/src/base/template-utils.h +0 -113
  190. package/src-native/pods/Headers/inspector/src/base/v8-fallthrough.h +0 -21
  191. package/src-native/pods/Headers/inspector/src/common/checks.h +0 -38
  192. package/src-native/pods/Headers/inspector/src/common/globals.h +0 -1842
  193. package/src-native/pods/Headers/inspector/src/debug/debug-interface.h +0 -667
  194. package/src-native/pods/Headers/inspector/src/debug/interface-types.h +0 -175
  195. package/src-native/pods/Headers/inspector/src/init/v8.h +0 -52
  196. package/src-native/pods/Headers/inspector/src/inspector/custom-preview.h +0 -24
  197. package/src-native/pods/Headers/inspector/src/inspector/injected-script.h +0 -251
  198. package/src-native/pods/Headers/inspector/src/inspector/inspected-context.h +0 -79
  199. package/src-native/pods/Headers/inspector/src/inspector/protocol/CSS.h +0 -2148
  200. package/src-native/pods/Headers/inspector/src/inspector/protocol/Console.h +0 -211
  201. package/src-native/pods/Headers/inspector/src/inspector/protocol/DOM.h +0 -1008
  202. package/src-native/pods/Headers/inspector/src/inspector/protocol/Debugger.h +0 -892
  203. package/src-native/pods/Headers/inspector/src/inspector/protocol/Forward.h +0 -75
  204. package/src-native/pods/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -346
  205. package/src-native/pods/Headers/inspector/src/inspector/protocol/Log.h +0 -342
  206. package/src-native/pods/Headers/inspector/src/inspector/protocol/Network.h +0 -2528
  207. package/src-native/pods/Headers/inspector/src/inspector/protocol/Overlay.h +0 -281
  208. package/src-native/pods/Headers/inspector/src/inspector/protocol/Page.h +0 -1189
  209. package/src-native/pods/Headers/inspector/src/inspector/protocol/Profiler.h +0 -1001
  210. package/src-native/pods/Headers/inspector/src/inspector/protocol/Protocol.h +0 -617
  211. package/src-native/pods/Headers/inspector/src/inspector/protocol/Runtime.h +0 -1696
  212. package/src-native/pods/Headers/inspector/src/inspector/protocol/Schema.h +0 -146
  213. package/src-native/pods/Headers/inspector/src/inspector/protocol/Security.h +0 -793
  214. package/src-native/pods/Headers/inspector/src/inspector/remote-object-id.h +0 -54
  215. package/src-native/pods/Headers/inspector/src/inspector/search-util.h +0 -26
  216. package/src-native/pods/Headers/inspector/src/inspector/string-16.h +0 -180
  217. package/src-native/pods/Headers/inspector/src/inspector/string-util.h +0 -128
  218. package/src-native/pods/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -48
  219. package/src-native/pods/Headers/inspector/src/inspector/v8-console-message.h +0 -147
  220. package/src-native/pods/Headers/inspector/src/inspector/v8-console.h +0 -173
  221. package/src-native/pods/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -62
  222. package/src-native/pods/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -248
  223. package/src-native/pods/Headers/inspector/src/inspector/v8-debugger-id.h +0 -44
  224. package/src-native/pods/Headers/inspector/src/inspector/v8-debugger-script.h +0 -123
  225. package/src-native/pods/Headers/inspector/src/inspector/v8-debugger.h +0 -257
  226. package/src-native/pods/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -91
  227. package/src-native/pods/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -80
  228. package/src-native/pods/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -191
  229. package/src-native/pods/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -156
  230. package/src-native/pods/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -34
  231. package/src-native/pods/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -71
  232. package/src-native/pods/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -24
  233. package/src-native/pods/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -70
  234. package/src-native/pods/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -88
  235. package/src-native/pods/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -104
  236. package/src-native/pods/Headers/inspector/src/inspector/v8-regex.h +0 -38
  237. package/src-native/pods/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -157
  238. package/src-native/pods/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -38
  239. package/src-native/pods/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -164
  240. package/src-native/pods/Headers/inspector/src/inspector/v8-string-conversions.h +0 -17
  241. package/src-native/pods/Headers/inspector/src/inspector/v8-value-utils.h +0 -23
  242. package/src-native/pods/Headers/inspector/src/inspector/value-mirror.h +0 -87
  243. package/src-native/pods/Headers/inspector/src/libplatform/default-platform.h +0 -92
  244. package/src-native/pods/Headers/inspector/src/logging/tracing-flags.h +0 -50
  245. package/src-native/pods/Headers/inspector/src/numbers/conversions.h +0 -183
  246. package/src-native/pods/Headers/inspector/src/tracing/trace-event.h +0 -664
  247. package/src-native/pods/Headers/inspector/src/utils/allocation.h +0 -367
  248. package/src-native/pods/Headers/inspector/src/utils/vector.h +0 -324
  249. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -305
  250. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -314
  251. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -62
  252. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -6
  253. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -58
  254. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -47
  255. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -80
  256. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -52
  257. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -26
  258. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -104
  259. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -39
  260. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -406
  261. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -32
  262. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -158
  263. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -99
  264. package/src-native/pods/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -139
  265. package/src-native/pods/Headers/inspector/utils.h +0 -32
  266. package/src-native/pods/Headers/inspector/v8-inspector-platform.h +0 -44
  267. package/src-native/pods/Headers/jsi/decorator.h +0 -762
  268. package/src-native/pods/Headers/jsi/instrumentation.h +0 -117
  269. package/src-native/pods/Headers/jsi/jsi-inl.h +0 -322
  270. package/src-native/pods/Headers/jsi/jsi.h +0 -1387
  271. package/src-native/pods/Headers/jsi/jsilib.h +0 -59
  272. package/src-native/pods/Headers/jsi/threadsafe.h +0 -79
  273. package/src-native/pods/Headers/runtime/ArgConverter.h +0 -61
  274. package/src-native/pods/Headers/runtime/ArrayAdapter.h +0 -13
  275. package/src-native/pods/Headers/runtime/Caches.h +0 -98
  276. package/src-native/pods/Headers/runtime/ClassBuilder.h +0 -61
  277. package/src-native/pods/Headers/runtime/Common.h +0 -9
  278. package/src-native/pods/Headers/runtime/ConcurrentMap.h +0 -55
  279. package/src-native/pods/Headers/runtime/ConcurrentQueue.h +0 -28
  280. package/src-native/pods/Headers/runtime/Console.h +0 -27
  281. package/src-native/pods/Headers/runtime/Constants.h +0 -15
  282. package/src-native/pods/Headers/runtime/DataWrapper.h +0 -671
  283. package/src-native/pods/Headers/runtime/DictionaryAdapter.h +0 -13
  284. package/src-native/pods/Headers/runtime/ExtVector.h +0 -21
  285. package/src-native/pods/Headers/runtime/FFICall.h +0 -105
  286. package/src-native/pods/Headers/runtime/FastEnumerationAdapter.h +0 -13
  287. package/src-native/pods/Headers/runtime/FunctionReference.h +0 -18
  288. package/src-native/pods/Headers/runtime/Helpers.h +0 -84
  289. package/src-native/pods/Headers/runtime/InlineFunctions.h +0 -16
  290. package/src-native/pods/Headers/runtime/Interop.h +0 -202
  291. package/src-native/pods/Headers/runtime/KnownUnknownClassPair.h +0 -35
  292. package/src-native/pods/Headers/runtime/Metadata.h +0 -981
  293. package/src-native/pods/Headers/runtime/MetadataBuilder.h +0 -72
  294. package/src-native/pods/Headers/runtime/MetadataInlines.h +0 -157
  295. package/src-native/pods/Headers/runtime/ModuleInternal.h +0 -59
  296. package/src-native/pods/Headers/runtime/NSDataAdapter.h +0 -13
  297. package/src-native/pods/Headers/runtime/NativeScriptException.h +0 -27
  298. package/src-native/pods/Headers/runtime/ObjectManager.h +0 -31
  299. package/src-native/pods/Headers/runtime/OneByteStringResource.h +0 -21
  300. package/src-native/pods/Headers/runtime/Pointer.h +0 -26
  301. package/src-native/pods/Headers/runtime/PromiseProxy.h +0 -15
  302. package/src-native/pods/Headers/runtime/Reference.h +0 -38
  303. package/src-native/pods/Headers/runtime/Runtime.h +0 -67
  304. package/src-native/pods/Headers/runtime/RuntimeConfig.h +0 -17
  305. package/src-native/pods/Headers/runtime/SetTimeout.h +0 -34
  306. package/src-native/pods/Headers/runtime/SimpleAllocator.h +0 -23
  307. package/src-native/pods/Headers/runtime/StringHasher.h +0 -315
  308. package/src-native/pods/Headers/runtime/SymbolIterator.h +0 -18
  309. package/src-native/pods/Headers/runtime/SymbolLoader.h +0 -27
  310. package/src-native/pods/Headers/runtime/TNSDerivedClass.h +0 -8
  311. package/src-native/pods/Headers/runtime/TSHelpers.h +0 -15
  312. package/src-native/pods/Headers/runtime/Tasks.h +0 -19
  313. package/src-native/pods/Headers/runtime/UnmanagedType.h +0 -21
  314. package/src-native/pods/Headers/runtime/WeakRef.h +0 -15
  315. package/src-native/pods/Headers/runtime/Worker.h +0 -26
  316. package/src-native/pods/Headers/runtime/robin_hood.h +0 -2184
  317. package/src-native/pods/Headers/v8runtime/HostProxy.h +0 -71
  318. package/src-native/pods/Headers/v8runtime/JSIV8ValueConverter.h +0 -70
  319. package/src-native/pods/Headers/v8runtime/V8PointerValue.h +0 -44
  320. package/src-native/pods/Headers/v8runtime/V8Runtime.h +0 -215
  321. package/src-native/pods/Headers/v8runtime/V8RuntimeConfig.h +0 -26
  322. package/src-native/pods/Headers/v8runtime/V8RuntimeFactory.h +0 -21
  323. package/src-native/pods/NativeScript.podspec +0 -68
@@ -1,667 +0,0 @@
1
- // Copyright 2016 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 V8_DEBUG_DEBUG_INTERFACE_H_
6
- #define V8_DEBUG_DEBUG_INTERFACE_H_
7
-
8
- #include <memory>
9
-
10
- #include "include/v8-util.h"
11
- #include "include/v8.h"
12
- #include "src/base/platform/v8-time.h"
13
- #include "src/common/globals.h"
14
- #include "src/debug/interface-types.h"
15
- #include "src/utils/vector.h"
16
-
17
- namespace v8_inspector {
18
- class V8Inspector;
19
- } // namespace v8_inspector
20
-
21
- namespace v8 {
22
-
23
- namespace internal {
24
- struct CoverageBlock;
25
- struct CoverageFunction;
26
- struct CoverageScript;
27
- struct TypeProfileEntry;
28
- struct TypeProfileScript;
29
- class Coverage;
30
- class DisableBreak;
31
- class PostponeInterruptsScope;
32
- class Script;
33
- class TypeProfile;
34
- } // namespace internal
35
-
36
- namespace debug {
37
-
38
- void SetContextId(Local<Context> context, int id);
39
- int GetContextId(Local<Context> context);
40
-
41
- void SetInspector(Isolate* isolate, v8_inspector::V8Inspector*);
42
- v8_inspector::V8Inspector* GetInspector(Isolate* isolate);
43
-
44
- // Returns the debug name for the function, which is supposed to be used
45
- // by the debugger and the developer tools. This can thus be different from
46
- // the name returned by the StackFrame::GetFunctionName() method. For example,
47
- // in case of WebAssembly, the debug name is WAT-compatible and thus always
48
- // preceeded by a dollar ('$').
49
- Local<String> GetFunctionDebugName(Local<StackFrame> frame);
50
-
51
- // Returns a debug string representation of the function.
52
- Local<String> GetFunctionDescription(Local<Function> function);
53
-
54
- // Schedule a debugger break to happen when function is called inside given
55
- // isolate.
56
- V8_EXPORT_PRIVATE void SetBreakOnNextFunctionCall(Isolate* isolate);
57
-
58
- // Remove scheduled debugger break in given isolate if it has not
59
- // happened yet.
60
- V8_EXPORT_PRIVATE void ClearBreakOnNextFunctionCall(Isolate* isolate);
61
-
62
- /**
63
- * Returns array of internal properties specific to the value type. Result has
64
- * the following format: [<name>, <value>,...,<name>, <value>]. Result array
65
- * will be allocated in the current context.
66
- */
67
- MaybeLocal<Array> GetInternalProperties(Isolate* isolate, Local<Value> value);
68
-
69
- /**
70
- * Returns through the out parameters names_out a vector of names
71
- * in v8::String for private members, including fields, methods,
72
- * accessors specific to the value type.
73
- * The values are returned through the out parameter values_out in the
74
- * corresponding indices. Private fields and methods are returned directly
75
- * while accessors are returned as v8::debug::AccessorPair. Missing components
76
- * in the accessor pairs are null.
77
- * If an exception occurs, false is returned. Otherwise true is returned.
78
- * Results will be allocated in the current context and handle scope.
79
- */
80
- V8_EXPORT_PRIVATE bool GetPrivateMembers(Local<Context> context,
81
- Local<Object> value,
82
- std::vector<Local<Value>>* names_out,
83
- std::vector<Local<Value>>* values_out);
84
-
85
- /**
86
- * Forwards to v8::Object::CreationContext, but with special handling for
87
- * JSGlobalProxy objects.
88
- */
89
- MaybeLocal<Context> GetCreationContext(Local<Object> value);
90
-
91
- enum ExceptionBreakState {
92
- NoBreakOnException = 0,
93
- BreakOnUncaughtException = 1,
94
- BreakOnAnyException = 2
95
- };
96
-
97
- /**
98
- * Defines if VM will pause on exceptions or not.
99
- * If BreakOnAnyExceptions is set then VM will pause on caught and uncaught
100
- * exception, if BreakOnUncaughtException is set then VM will pause only on
101
- * uncaught exception, otherwise VM won't stop on any exception.
102
- */
103
- void ChangeBreakOnException(Isolate* isolate, ExceptionBreakState state);
104
-
105
- void RemoveBreakpoint(Isolate* isolate, BreakpointId id);
106
- void SetBreakPointsActive(Isolate* isolate, bool is_active);
107
-
108
- enum StepAction {
109
- StepOut = 0, // Step out of the current function.
110
- StepNext = 1, // Step to the next statement in the current function.
111
- StepIn = 2 // Step into new functions invoked or the next statement
112
- // in the current function.
113
- };
114
-
115
- void PrepareStep(Isolate* isolate, StepAction action);
116
- void ClearStepping(Isolate* isolate);
117
- V8_EXPORT_PRIVATE void BreakRightNow(Isolate* isolate);
118
-
119
- // Use `SetTerminateOnResume` to indicate that an TerminateExecution interrupt
120
- // should be set shortly before resuming, i.e. shortly before returning into
121
- // the JavaScript stack frames on the stack. In contrast to setting the
122
- // interrupt with `RequestTerminateExecution` directly, this flag allows
123
- // the isolate to be entered for further JavaScript execution.
124
- V8_EXPORT_PRIVATE void SetTerminateOnResume(Isolate* isolate);
125
-
126
- bool CanBreakProgram(Isolate* isolate);
127
-
128
- class Script;
129
-
130
- struct LiveEditResult {
131
- enum Status {
132
- OK,
133
- COMPILE_ERROR,
134
- BLOCKED_BY_RUNNING_GENERATOR,
135
- BLOCKED_BY_ACTIVE_FUNCTION
136
- };
137
- Status status = OK;
138
- bool stack_changed = false;
139
- // Available only for OK.
140
- v8::Local<v8::debug::Script> script;
141
- // Fields below are available only for COMPILE_ERROR.
142
- v8::Local<v8::String> message;
143
- int line_number = -1;
144
- int column_number = -1;
145
- };
146
-
147
- /**
148
- * Native wrapper around v8::internal::Script object.
149
- */
150
- class V8_EXPORT_PRIVATE Script {
151
- public:
152
- v8::Isolate* GetIsolate() const;
153
-
154
- ScriptOriginOptions OriginOptions() const;
155
- bool WasCompiled() const;
156
- bool IsEmbedded() const;
157
- int Id() const;
158
- int LineOffset() const;
159
- int ColumnOffset() const;
160
- std::vector<int> LineEnds() const;
161
- MaybeLocal<String> Name() const;
162
- MaybeLocal<String> SourceURL() const;
163
- MaybeLocal<String> SourceMappingURL() const;
164
- Maybe<int> ContextId() const;
165
- MaybeLocal<String> Source() const;
166
- bool IsModule() const;
167
- bool GetPossibleBreakpoints(
168
- const debug::Location& start, const debug::Location& end,
169
- bool restrict_to_function,
170
- std::vector<debug::BreakLocation>* locations) const;
171
- int GetSourceOffset(const debug::Location& location) const;
172
- v8::debug::Location GetSourceLocation(int offset) const;
173
- bool SetScriptSource(v8::Local<v8::String> newSource, bool preview,
174
- LiveEditResult* result) const;
175
- bool SetBreakpoint(v8::Local<v8::String> condition, debug::Location* location,
176
- BreakpointId* id) const;
177
- #if V8_ENABLE_WEBASSEMBLY
178
- bool IsWasm() const;
179
- void RemoveWasmBreakpoint(BreakpointId id);
180
- #endif // V8_ENABLE_WEBASSEMBLY
181
- bool SetBreakpointOnScriptEntry(BreakpointId* id) const;
182
- };
183
-
184
- #if V8_ENABLE_WEBASSEMBLY
185
- // Specialization for wasm Scripts.
186
- class WasmScript : public Script {
187
- public:
188
- static WasmScript* Cast(Script* script);
189
-
190
- enum class DebugSymbolsType { None, SourceMap, EmbeddedDWARF, ExternalDWARF };
191
- DebugSymbolsType GetDebugSymbolType() const;
192
- MemorySpan<const char> ExternalSymbolsURL() const;
193
- int NumFunctions() const;
194
- int NumImportedFunctions() const;
195
- MemorySpan<const uint8_t> Bytecode() const;
196
-
197
- std::pair<int, int> GetFunctionRange(int function_index) const;
198
- int GetContainingFunction(int byte_offset) const;
199
-
200
- uint32_t GetFunctionHash(int function_index);
201
-
202
- int CodeOffset() const;
203
- int CodeLength() const;
204
- };
205
- #endif // V8_ENABLE_WEBASSEMBLY
206
-
207
- V8_EXPORT_PRIVATE void GetLoadedScripts(Isolate* isolate,
208
- PersistentValueVector<Script>& scripts);
209
-
210
- MaybeLocal<UnboundScript> CompileInspectorScript(Isolate* isolate,
211
- Local<String> source);
212
-
213
- enum ExceptionType { kException, kPromiseRejection };
214
-
215
- class DebugDelegate {
216
- public:
217
- virtual ~DebugDelegate() = default;
218
- virtual void ScriptCompiled(v8::Local<Script> script, bool is_live_edited,
219
- bool has_compile_error) {}
220
- // |inspector_break_points_hit| contains id of breakpoints installed with
221
- // debug::Script::SetBreakpoint API.
222
- virtual void BreakProgramRequested(
223
- v8::Local<v8::Context> paused_context,
224
- const std::vector<debug::BreakpointId>& inspector_break_points_hit) {}
225
- virtual void ExceptionThrown(v8::Local<v8::Context> paused_context,
226
- v8::Local<v8::Value> exception,
227
- v8::Local<v8::Value> promise, bool is_uncaught,
228
- ExceptionType exception_type) {}
229
- virtual bool IsFunctionBlackboxed(v8::Local<debug::Script> script,
230
- const debug::Location& start,
231
- const debug::Location& end) {
232
- return false;
233
- }
234
- virtual bool ShouldBeSkipped(v8::Local<v8::debug::Script> script, int line,
235
- int column) {
236
- return false;
237
- }
238
- };
239
-
240
- V8_EXPORT_PRIVATE void SetDebugDelegate(Isolate* isolate,
241
- DebugDelegate* listener);
242
-
243
- #if V8_ENABLE_WEBASSEMBLY
244
- V8_EXPORT_PRIVATE void TierDownAllModulesPerIsolate(Isolate* isolate);
245
- V8_EXPORT_PRIVATE void TierUpAllModulesPerIsolate(Isolate* isolate);
246
- #endif // V8_ENABLE_WEBASSEMBLY
247
-
248
- class AsyncEventDelegate {
249
- public:
250
- virtual ~AsyncEventDelegate() = default;
251
- virtual void AsyncEventOccurred(debug::DebugAsyncActionType type, int id,
252
- bool is_blackboxed) = 0;
253
- };
254
-
255
- void SetAsyncEventDelegate(Isolate* isolate, AsyncEventDelegate* delegate);
256
-
257
- void ResetBlackboxedStateCache(Isolate* isolate,
258
- v8::Local<debug::Script> script);
259
-
260
- int EstimatedValueSize(Isolate* isolate, v8::Local<v8::Value> value);
261
-
262
- enum Builtin { kStringToLowerCase };
263
-
264
- Local<Function> GetBuiltin(Isolate* isolate, Builtin builtin);
265
-
266
- V8_EXPORT_PRIVATE void SetConsoleDelegate(Isolate* isolate,
267
- ConsoleDelegate* delegate);
268
-
269
- V8_DEPRECATED("See http://crbug.com/v8/10566.")
270
- int GetStackFrameId(v8::Local<v8::StackFrame> frame);
271
-
272
- v8::Local<v8::StackTrace> GetDetailedStackTrace(Isolate* isolate,
273
- v8::Local<v8::Object> error);
274
-
275
- /**
276
- * Native wrapper around v8::internal::JSGeneratorObject object.
277
- */
278
- class GeneratorObject {
279
- public:
280
- v8::MaybeLocal<debug::Script> Script();
281
- v8::Local<v8::Function> Function();
282
- debug::Location SuspendedLocation();
283
- bool IsSuspended();
284
-
285
- static v8::Local<debug::GeneratorObject> Cast(v8::Local<v8::Value> value);
286
- };
287
-
288
- /*
289
- * Provide API layer between inspector and code coverage.
290
- */
291
- class V8_EXPORT_PRIVATE Coverage {
292
- public:
293
- MOVE_ONLY_NO_DEFAULT_CONSTRUCTOR(Coverage);
294
-
295
- // Forward declarations.
296
- class ScriptData;
297
- class FunctionData;
298
-
299
- class V8_EXPORT_PRIVATE BlockData {
300
- public:
301
- MOVE_ONLY_NO_DEFAULT_CONSTRUCTOR(BlockData);
302
-
303
- int StartOffset() const;
304
- int EndOffset() const;
305
- uint32_t Count() const;
306
-
307
- private:
308
- explicit BlockData(i::CoverageBlock* block,
309
- std::shared_ptr<i::Coverage> coverage)
310
- : block_(block), coverage_(std::move(coverage)) {}
311
-
312
- i::CoverageBlock* block_;
313
- std::shared_ptr<i::Coverage> coverage_;
314
-
315
- friend class v8::debug::Coverage::FunctionData;
316
- };
317
-
318
- class V8_EXPORT_PRIVATE FunctionData {
319
- public:
320
- MOVE_ONLY_NO_DEFAULT_CONSTRUCTOR(FunctionData);
321
-
322
- int StartOffset() const;
323
- int EndOffset() const;
324
- uint32_t Count() const;
325
- MaybeLocal<String> Name() const;
326
- size_t BlockCount() const;
327
- bool HasBlockCoverage() const;
328
- BlockData GetBlockData(size_t i) const;
329
-
330
- private:
331
- explicit FunctionData(i::CoverageFunction* function,
332
- std::shared_ptr<i::Coverage> coverage)
333
- : function_(function), coverage_(std::move(coverage)) {}
334
-
335
- i::CoverageFunction* function_;
336
- std::shared_ptr<i::Coverage> coverage_;
337
-
338
- friend class v8::debug::Coverage::ScriptData;
339
- };
340
-
341
- class V8_EXPORT_PRIVATE ScriptData {
342
- public:
343
- MOVE_ONLY_NO_DEFAULT_CONSTRUCTOR(ScriptData);
344
-
345
- Local<debug::Script> GetScript() const;
346
- size_t FunctionCount() const;
347
- FunctionData GetFunctionData(size_t i) const;
348
-
349
- private:
350
- explicit ScriptData(size_t index, std::shared_ptr<i::Coverage> c);
351
-
352
- i::CoverageScript* script_;
353
- std::shared_ptr<i::Coverage> coverage_;
354
-
355
- friend class v8::debug::Coverage;
356
- };
357
-
358
- static Coverage CollectPrecise(Isolate* isolate);
359
- static Coverage CollectBestEffort(Isolate* isolate);
360
-
361
- static void SelectMode(Isolate* isolate, CoverageMode mode);
362
-
363
- size_t ScriptCount() const;
364
- ScriptData GetScriptData(size_t i) const;
365
- bool IsEmpty() const { return coverage_ == nullptr; }
366
-
367
- private:
368
- explicit Coverage(std::shared_ptr<i::Coverage> coverage)
369
- : coverage_(std::move(coverage)) {}
370
- std::shared_ptr<i::Coverage> coverage_;
371
- };
372
-
373
- /*
374
- * Provide API layer between inspector and type profile.
375
- */
376
- class V8_EXPORT_PRIVATE TypeProfile {
377
- public:
378
- MOVE_ONLY_NO_DEFAULT_CONSTRUCTOR(TypeProfile);
379
-
380
- class ScriptData; // Forward declaration.
381
-
382
- class V8_EXPORT_PRIVATE Entry {
383
- public:
384
- MOVE_ONLY_NO_DEFAULT_CONSTRUCTOR(Entry);
385
-
386
- int SourcePosition() const;
387
- std::vector<MaybeLocal<String>> Types() const;
388
-
389
- private:
390
- explicit Entry(const i::TypeProfileEntry* entry,
391
- std::shared_ptr<i::TypeProfile> type_profile)
392
- : entry_(entry), type_profile_(std::move(type_profile)) {}
393
-
394
- const i::TypeProfileEntry* entry_;
395
- std::shared_ptr<i::TypeProfile> type_profile_;
396
-
397
- friend class v8::debug::TypeProfile::ScriptData;
398
- };
399
-
400
- class V8_EXPORT_PRIVATE ScriptData {
401
- public:
402
- MOVE_ONLY_NO_DEFAULT_CONSTRUCTOR(ScriptData);
403
-
404
- Local<debug::Script> GetScript() const;
405
- std::vector<Entry> Entries() const;
406
-
407
- private:
408
- explicit ScriptData(size_t index,
409
- std::shared_ptr<i::TypeProfile> type_profile);
410
-
411
- i::TypeProfileScript* script_;
412
- std::shared_ptr<i::TypeProfile> type_profile_;
413
-
414
- friend class v8::debug::TypeProfile;
415
- };
416
-
417
- static TypeProfile Collect(Isolate* isolate);
418
-
419
- static void SelectMode(Isolate* isolate, TypeProfileMode mode);
420
-
421
- size_t ScriptCount() const;
422
- ScriptData GetScriptData(size_t i) const;
423
-
424
- private:
425
- explicit TypeProfile(std::shared_ptr<i::TypeProfile> type_profile)
426
- : type_profile_(std::move(type_profile)) {}
427
-
428
- std::shared_ptr<i::TypeProfile> type_profile_;
429
- };
430
-
431
- class V8_EXPORT_PRIVATE ScopeIterator {
432
- public:
433
- static std::unique_ptr<ScopeIterator> CreateForFunction(
434
- v8::Isolate* isolate, v8::Local<v8::Function> func);
435
- static std::unique_ptr<ScopeIterator> CreateForGeneratorObject(
436
- v8::Isolate* isolate, v8::Local<v8::Object> generator);
437
-
438
- ScopeIterator() = default;
439
- virtual ~ScopeIterator() = default;
440
- ScopeIterator(const ScopeIterator&) = delete;
441
- ScopeIterator& operator=(const ScopeIterator&) = delete;
442
-
443
- enum ScopeType {
444
- ScopeTypeGlobal = 0,
445
- ScopeTypeLocal,
446
- ScopeTypeWith,
447
- ScopeTypeClosure,
448
- ScopeTypeCatch,
449
- ScopeTypeBlock,
450
- ScopeTypeScript,
451
- ScopeTypeEval,
452
- ScopeTypeModule,
453
- ScopeTypeWasmExpressionStack
454
- };
455
-
456
- virtual bool Done() = 0;
457
- virtual void Advance() = 0;
458
- virtual ScopeType GetType() = 0;
459
- virtual v8::Local<v8::Object> GetObject() = 0;
460
- virtual v8::Local<v8::Value> GetFunctionDebugName() = 0;
461
- virtual int GetScriptId() = 0;
462
- virtual bool HasLocationInfo() = 0;
463
- virtual debug::Location GetStartLocation() = 0;
464
- virtual debug::Location GetEndLocation() = 0;
465
-
466
- virtual bool SetVariableValue(v8::Local<v8::String> name,
467
- v8::Local<v8::Value> value) = 0;
468
- };
469
-
470
- class V8_EXPORT_PRIVATE StackTraceIterator {
471
- public:
472
- static std::unique_ptr<StackTraceIterator> Create(Isolate* isolate,
473
- int index = 0);
474
- StackTraceIterator() = default;
475
- virtual ~StackTraceIterator() = default;
476
- StackTraceIterator(const StackTraceIterator&) = delete;
477
- StackTraceIterator& operator=(const StackTraceIterator&) = delete;
478
-
479
- virtual bool Done() const = 0;
480
- virtual void Advance() = 0;
481
-
482
- virtual int GetContextId() const = 0;
483
- virtual v8::MaybeLocal<v8::Value> GetReceiver() const = 0;
484
- virtual v8::Local<v8::Value> GetReturnValue() const = 0;
485
- virtual v8::Local<v8::String> GetFunctionDebugName() const = 0;
486
- virtual v8::Local<v8::debug::Script> GetScript() const = 0;
487
- virtual debug::Location GetSourceLocation() const = 0;
488
- virtual v8::Local<v8::Function> GetFunction() const = 0;
489
- virtual std::unique_ptr<ScopeIterator> GetScopeIterator() const = 0;
490
-
491
- virtual v8::MaybeLocal<v8::Value> Evaluate(v8::Local<v8::String> source,
492
- bool throw_on_side_effect) = 0;
493
- };
494
-
495
- class QueryObjectPredicate {
496
- public:
497
- virtual ~QueryObjectPredicate() = default;
498
- virtual bool Filter(v8::Local<v8::Object> object) = 0;
499
- };
500
-
501
- void QueryObjects(v8::Local<v8::Context> context,
502
- QueryObjectPredicate* predicate,
503
- v8::PersistentValueVector<v8::Object>* objects);
504
-
505
- void GlobalLexicalScopeNames(v8::Local<v8::Context> context,
506
- v8::PersistentValueVector<v8::String>* names);
507
-
508
- void SetReturnValue(v8::Isolate* isolate, v8::Local<v8::Value> value);
509
-
510
- enum class NativeAccessorType {
511
- None = 0,
512
- HasGetter = 1 << 0,
513
- HasSetter = 1 << 1
514
- };
515
-
516
- int64_t GetNextRandomInt64(v8::Isolate* isolate);
517
-
518
- using RuntimeCallCounterCallback =
519
- std::function<void(const char* name, int64_t count, base::TimeDelta time)>;
520
- void EnumerateRuntimeCallCounters(v8::Isolate* isolate,
521
- RuntimeCallCounterCallback callback);
522
-
523
- enum class EvaluateGlobalMode {
524
- kDefault,
525
- kDisableBreaks,
526
- kDisableBreaksAndThrowOnSideEffect
527
- };
528
-
529
- V8_EXPORT_PRIVATE v8::MaybeLocal<v8::Value> EvaluateGlobal(
530
- v8::Isolate* isolate, v8::Local<v8::String> source, EvaluateGlobalMode mode,
531
- bool repl_mode = false);
532
-
533
- V8_EXPORT_PRIVATE v8::MaybeLocal<v8::Value> EvaluateGlobalForTesting(
534
- v8::Isolate* isolate, v8::Local<v8::Script> function,
535
- v8::debug::EvaluateGlobalMode mode, bool repl);
536
-
537
- int GetDebuggingId(v8::Local<v8::Function> function);
538
-
539
- bool SetFunctionBreakpoint(v8::Local<v8::Function> function,
540
- v8::Local<v8::String> condition, BreakpointId* id);
541
-
542
- v8::Platform* GetCurrentPlatform();
543
-
544
- void ForceGarbageCollection(
545
- v8::Isolate* isolate,
546
- v8::EmbedderHeapTracer::EmbedderStackState embedder_stack_state);
547
-
548
- class V8_NODISCARD PostponeInterruptsScope {
549
- public:
550
- explicit PostponeInterruptsScope(v8::Isolate* isolate);
551
- ~PostponeInterruptsScope();
552
-
553
- private:
554
- std::unique_ptr<i::PostponeInterruptsScope> scope_;
555
- };
556
-
557
- class V8_NODISCARD DisableBreakScope {
558
- public:
559
- explicit DisableBreakScope(v8::Isolate* isolate);
560
- ~DisableBreakScope();
561
-
562
- private:
563
- std::unique_ptr<i::DisableBreak> scope_;
564
- };
565
-
566
- class WeakMap : public v8::Object {
567
- public:
568
- WeakMap() = delete;
569
- V8_EXPORT_PRIVATE V8_WARN_UNUSED_RESULT v8::MaybeLocal<v8::Value> Get(
570
- v8::Local<v8::Context> context, v8::Local<v8::Value> key);
571
- V8_EXPORT_PRIVATE V8_WARN_UNUSED_RESULT v8::MaybeLocal<WeakMap> Set(
572
- v8::Local<v8::Context> context, v8::Local<v8::Value> key,
573
- v8::Local<v8::Value> value);
574
-
575
- V8_EXPORT_PRIVATE static Local<WeakMap> New(v8::Isolate* isolate);
576
- V8_INLINE static WeakMap* Cast(Value* obj);
577
- };
578
-
579
- /**
580
- * Pairs of accessors.
581
- *
582
- * In the case of private accessors, getters and setters are either null or
583
- * Functions.
584
- */
585
- class V8_EXPORT_PRIVATE AccessorPair : public v8::Value {
586
- public:
587
- AccessorPair() = delete;
588
- v8::Local<v8::Value> getter();
589
- v8::Local<v8::Value> setter();
590
-
591
- static bool IsAccessorPair(v8::Local<v8::Value> obj);
592
- V8_INLINE static AccessorPair* Cast(v8::Value* obj);
593
-
594
- private:
595
- static void CheckCast(v8::Value* obj);
596
- };
597
-
598
- struct PropertyDescriptor {
599
- bool enumerable : 1;
600
- bool has_enumerable : 1;
601
- bool configurable : 1;
602
- bool has_configurable : 1;
603
- bool writable : 1;
604
- bool has_writable : 1;
605
- v8::Local<v8::Value> value;
606
- v8::Local<v8::Value> get;
607
- v8::Local<v8::Value> set;
608
- };
609
-
610
- class PropertyIterator {
611
- public:
612
- // Creating a PropertyIterator can potentially throw an exception.
613
- // The returned std::unique_ptr is empty iff that happens.
614
- V8_WARN_UNUSED_RESULT static std::unique_ptr<PropertyIterator> Create(
615
- v8::Local<v8::Context> context, v8::Local<v8::Object> object);
616
-
617
- virtual ~PropertyIterator() = default;
618
-
619
- virtual bool Done() const = 0;
620
- // Returns |Nothing| should |Advance| throw an exception,
621
- // |true| otherwise.
622
- V8_WARN_UNUSED_RESULT virtual Maybe<bool> Advance() = 0;
623
-
624
- virtual v8::Local<v8::Name> name() const = 0;
625
-
626
- virtual bool is_native_accessor() = 0;
627
- virtual bool has_native_getter() = 0;
628
- virtual bool has_native_setter() = 0;
629
- virtual Maybe<PropertyAttribute> attributes() = 0;
630
- virtual Maybe<PropertyDescriptor> descriptor() = 0;
631
-
632
- virtual bool is_own() = 0;
633
- virtual bool is_array_index() = 0;
634
- };
635
-
636
- #if V8_ENABLE_WEBASSEMBLY
637
- class V8_EXPORT_PRIVATE WasmValueObject : public v8::Object {
638
- public:
639
- WasmValueObject() = delete;
640
- static bool IsWasmValueObject(v8::Local<v8::Value> obj);
641
- static WasmValueObject* Cast(v8::Value* value) {
642
- #ifdef V8_ENABLE_CHECKS
643
- CheckCast(value);
644
- #endif
645
- return static_cast<WasmValueObject*>(value);
646
- }
647
-
648
- v8::Local<v8::String> type() const;
649
-
650
- private:
651
- static void CheckCast(v8::Value* obj);
652
- };
653
- #endif // V8_ENABLE_WEBASSEMBLY
654
-
655
- AccessorPair* AccessorPair::Cast(v8::Value* value) {
656
- #ifdef V8_ENABLE_CHECKS
657
- CheckCast(value);
658
- #endif
659
- return static_cast<AccessorPair*>(value);
660
- }
661
-
662
- MaybeLocal<Message> GetMessageFromPromise(Local<Promise> promise);
663
-
664
- } // namespace debug
665
- } // namespace v8
666
-
667
- #endif // V8_DEBUG_DEBUG_INTERFACE_H_