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

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 (372) hide show
  1. package/Canvas/index.android.d.ts +4 -0
  2. package/Canvas/index.android.js +15 -1
  3. package/Canvas/index.android.js.map +1 -1
  4. package/Canvas/index.ios.js +0 -1
  5. package/Canvas/index.ios.js.map +1 -1
  6. package/WebGL/WebGLRenderingContext/index.js +9 -1
  7. package/WebGL/WebGLRenderingContext/index.js.map +1 -1
  8. package/package.json +1 -1
  9. package/platforms/android/canvas-release.aar +0 -0
  10. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
  11. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +4 -0
  12. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +46 -0
  13. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
  14. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json +381 -16
  15. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +3 -0
  16. package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +3 -0
  17. package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  18. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
  19. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +8 -0
  20. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +46 -0
  21. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
  22. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
  23. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json +381 -16
  24. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +3 -0
  25. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +3 -0
  26. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +381 -16
  27. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +3 -0
  28. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +3 -0
  29. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +24 -24
  30. package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
  31. package/platforms/ios/Podfile +1 -1
  32. package/platforms/ios/build.xcconfig +1 -1
  33. package/platforms/ios/src/CanvasModule.h +1 -1
  34. package/platforms/ios/src/cpp/CanvasJSIModule.h +1 -1
  35. package/platforms/ios/src/cpp/CanvasJSIModule.mm +17 -17
  36. package/platforms/ios/src/cpp/Helpers.h +1 -1
  37. package/platforms/ios/src/cpp/ImageAssetImpl.h +1 -1
  38. package/platforms/ios/src/cpp/ImageBitmapImpl.h +1 -1
  39. package/platforms/ios/src/cpp/JSICallback.h +1 -1
  40. package/platforms/ios/src/cpp/JSIReadFileCallback.h +1 -1
  41. package/platforms/ios/src/cpp/TextDecoderImpl.h +1 -1
  42. package/platforms/ios/src/cpp/VecMutableBuffer.h +1 -1
  43. package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +1 -1
  44. package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +1 -1
  45. package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +1 -1
  46. package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +1 -1
  47. package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +1 -1
  48. package/platforms/ios/src/cpp/canvas2d/Path2D.h +1 -1
  49. package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +1 -1
  50. package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +1 -1
  51. package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +1 -1
  52. package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +1 -1
  53. package/platforms/ios/src/cpp/webgl/WebGLProgram.h +1 -1
  54. package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +1 -1
  55. package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +1 -1
  56. package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +1 -1
  57. package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.mm +1 -1
  58. package/platforms/ios/src/cpp/webgl/WebGLShader.h +1 -1
  59. package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +1 -1
  60. package/platforms/ios/src/cpp/webgl/WebGLTexture.h +1 -1
  61. package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +1 -1
  62. package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +1 -1
  63. package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +1 -1
  64. package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +1 -1
  65. package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +1 -1
  66. package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +1 -1
  67. package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +1 -1
  68. package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +1 -1
  69. package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +1 -1
  70. package/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h +1 -1
  71. package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +1 -1
  72. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +1 -1
  73. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +1 -1
  74. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +1 -1
  75. package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +1 -1
  76. package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +1 -1
  77. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +1 -1
  78. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +1 -1
  79. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +1 -1
  80. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +1 -1
  81. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +1 -1
  82. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +1 -1
  83. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +1 -1
  84. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +1 -1
  85. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +1 -1
  86. package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +1 -1
  87. package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +1 -1
  88. package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +1 -1
  89. package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +1 -1
  90. package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +1 -1
  91. package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +1 -1
  92. package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +1 -1
  93. package/pods/Headers/include/APIDesign.md +0 -72
  94. package/pods/Headers/include/DEPS +0 -10
  95. package/pods/Headers/include/DIR_METADATA +0 -11
  96. package/pods/Headers/include/OWNERS +0 -23
  97. package/pods/Headers/include/cppgc/DEPS +0 -8
  98. package/pods/Headers/include/cppgc/OWNERS +0 -2
  99. package/pods/Headers/include/cppgc/README.md +0 -133
  100. package/pods/Headers/include/cppgc/allocation.h +0 -310
  101. package/pods/Headers/include/cppgc/common.h +0 -29
  102. package/pods/Headers/include/cppgc/cross-thread-persistent.h +0 -465
  103. package/pods/Headers/include/cppgc/custom-space.h +0 -97
  104. package/pods/Headers/include/cppgc/default-platform.h +0 -67
  105. package/pods/Headers/include/cppgc/ephemeron-pair.h +0 -30
  106. package/pods/Headers/include/cppgc/explicit-management.h +0 -100
  107. package/pods/Headers/include/cppgc/garbage-collected.h +0 -106
  108. package/pods/Headers/include/cppgc/heap-consistency.h +0 -266
  109. package/pods/Headers/include/cppgc/heap-state.h +0 -82
  110. package/pods/Headers/include/cppgc/heap-statistics.h +0 -120
  111. package/pods/Headers/include/cppgc/heap.h +0 -206
  112. package/pods/Headers/include/cppgc/internal/api-constants.h +0 -55
  113. package/pods/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -48
  114. package/pods/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -79
  115. package/pods/Headers/include/cppgc/internal/compiler-specific.h +0 -38
  116. package/pods/Headers/include/cppgc/internal/finalizer-trait.h +0 -93
  117. package/pods/Headers/include/cppgc/internal/gc-info.h +0 -156
  118. package/pods/Headers/include/cppgc/internal/logging.h +0 -50
  119. package/pods/Headers/include/cppgc/internal/name-trait.h +0 -122
  120. package/pods/Headers/include/cppgc/internal/persistent-node.h +0 -216
  121. package/pods/Headers/include/cppgc/internal/pointer-policies.h +0 -186
  122. package/pods/Headers/include/cppgc/internal/write-barrier.h +0 -435
  123. package/pods/Headers/include/cppgc/liveness-broker.h +0 -77
  124. package/pods/Headers/include/cppgc/macros.h +0 -26
  125. package/pods/Headers/include/cppgc/member.h +0 -291
  126. package/pods/Headers/include/cppgc/name-provider.h +0 -65
  127. package/pods/Headers/include/cppgc/object-size-trait.h +0 -58
  128. package/pods/Headers/include/cppgc/persistent.h +0 -370
  129. package/pods/Headers/include/cppgc/platform.h +0 -156
  130. package/pods/Headers/include/cppgc/prefinalizer.h +0 -75
  131. package/pods/Headers/include/cppgc/process-heap-statistics.h +0 -36
  132. package/pods/Headers/include/cppgc/sentinel-pointer.h +0 -32
  133. package/pods/Headers/include/cppgc/source-location.h +0 -92
  134. package/pods/Headers/include/cppgc/testing.h +0 -106
  135. package/pods/Headers/include/cppgc/trace-trait.h +0 -116
  136. package/pods/Headers/include/cppgc/type-traits.h +0 -240
  137. package/pods/Headers/include/cppgc/visitor.h +0 -379
  138. package/pods/Headers/include/js_protocol-1.2.json +0 -936
  139. package/pods/Headers/include/js_protocol-1.3.json +0 -1112
  140. package/pods/Headers/include/js_protocol.pdl +0 -1709
  141. package/pods/Headers/include/libffi/arm64/ffi.h +0 -524
  142. package/pods/Headers/include/libffi/arm64/ffitarget.h +0 -92
  143. package/pods/Headers/include/libffi/x86_64/ffi.h +0 -524
  144. package/pods/Headers/include/libffi/x86_64/ffitarget.h +0 -147
  145. package/pods/Headers/include/libffi.h +0 -12
  146. package/pods/Headers/include/libplatform/DEPS +0 -9
  147. package/pods/Headers/include/libplatform/libplatform-export.h +0 -29
  148. package/pods/Headers/include/libplatform/libplatform.h +0 -106
  149. package/pods/Headers/include/libplatform/v8-tracing.h +0 -333
  150. package/pods/Headers/include/v8-array-buffer.h +0 -433
  151. package/pods/Headers/include/v8-callbacks.h +0 -397
  152. package/pods/Headers/include/v8-container.h +0 -129
  153. package/pods/Headers/include/v8-context.h +0 -407
  154. package/pods/Headers/include/v8-cppgc.h +0 -215
  155. package/pods/Headers/include/v8-data.h +0 -80
  156. package/pods/Headers/include/v8-date.h +0 -43
  157. package/pods/Headers/include/v8-debug.h +0 -168
  158. package/pods/Headers/include/v8-embedder-heap.h +0 -218
  159. package/pods/Headers/include/v8-embedder-state-scope.h +0 -51
  160. package/pods/Headers/include/v8-exception.h +0 -217
  161. package/pods/Headers/include/v8-extension.h +0 -62
  162. package/pods/Headers/include/v8-external.h +0 -37
  163. package/pods/Headers/include/v8-fast-api-calls.h +0 -939
  164. package/pods/Headers/include/v8-forward.h +0 -81
  165. package/pods/Headers/include/v8-function-callback.h +0 -475
  166. package/pods/Headers/include/v8-function.h +0 -125
  167. package/pods/Headers/include/v8-initialization.h +0 -315
  168. package/pods/Headers/include/v8-inspector-protocol.h +0 -13
  169. package/pods/Headers/include/v8-inspector.h +0 -376
  170. package/pods/Headers/include/v8-internal.h +0 -661
  171. package/pods/Headers/include/v8-isolate.h +0 -1709
  172. package/pods/Headers/include/v8-json.h +0 -47
  173. package/pods/Headers/include/v8-local-handle.h +0 -455
  174. package/pods/Headers/include/v8-locker.h +0 -149
  175. package/pods/Headers/include/v8-maybe.h +0 -137
  176. package/pods/Headers/include/v8-memory-span.h +0 -43
  177. package/pods/Headers/include/v8-message.h +0 -216
  178. package/pods/Headers/include/v8-metrics.h +0 -255
  179. package/pods/Headers/include/v8-microtask-queue.h +0 -152
  180. package/pods/Headers/include/v8-microtask.h +0 -28
  181. package/pods/Headers/include/v8-object.h +0 -775
  182. package/pods/Headers/include/v8-persistent-handle.h +0 -590
  183. package/pods/Headers/include/v8-platform.h +0 -1092
  184. package/pods/Headers/include/v8-primitive-object.h +0 -118
  185. package/pods/Headers/include/v8-primitive.h +0 -866
  186. package/pods/Headers/include/v8-profiler.h +0 -1198
  187. package/pods/Headers/include/v8-promise.h +0 -174
  188. package/pods/Headers/include/v8-proxy.h +0 -50
  189. package/pods/Headers/include/v8-regexp.h +0 -105
  190. package/pods/Headers/include/v8-script.h +0 -748
  191. package/pods/Headers/include/v8-snapshot.h +0 -196
  192. package/pods/Headers/include/v8-statistics.h +0 -217
  193. package/pods/Headers/include/v8-template.h +0 -1079
  194. package/pods/Headers/include/v8-traced-handle.h +0 -420
  195. package/pods/Headers/include/v8-typed-array.h +0 -282
  196. package/pods/Headers/include/v8-unwinder-state.h +0 -31
  197. package/pods/Headers/include/v8-unwinder.h +0 -132
  198. package/pods/Headers/include/v8-util.h +0 -658
  199. package/pods/Headers/include/v8-value-serializer-version.h +0 -24
  200. package/pods/Headers/include/v8-value-serializer.h +0 -279
  201. package/pods/Headers/include/v8-value.h +0 -526
  202. package/pods/Headers/include/v8-version-string.h +0 -38
  203. package/pods/Headers/include/v8-version.h +0 -20
  204. package/pods/Headers/include/v8-wasm-trap-handler-posix.h +0 -31
  205. package/pods/Headers/include/v8-wasm-trap-handler-win.h +0 -28
  206. package/pods/Headers/include/v8-wasm.h +0 -257
  207. package/pods/Headers/include/v8-weak-callback-info.h +0 -86
  208. package/pods/Headers/include/v8.h +0 -88
  209. package/pods/Headers/include/v8config.h +0 -605
  210. package/pods/Headers/inspector/InspectorServer.h +0 -20
  211. package/pods/Headers/inspector/JsV8InspectorClient.h +0 -66
  212. package/pods/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -1123
  213. package/pods/Headers/inspector/base64.h +0 -9
  214. package/pods/Headers/inspector/src/base/address-region.h +0 -95
  215. package/pods/Headers/inspector/src/base/atomic-utils.h +0 -219
  216. package/pods/Headers/inspector/src/base/atomicops.h +0 -332
  217. package/pods/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -89
  218. package/pods/Headers/inspector/src/base/base-export.h +0 -31
  219. package/pods/Headers/inspector/src/base/bits.h +0 -343
  220. package/pods/Headers/inspector/src/base/build_config.h +0 -234
  221. package/pods/Headers/inspector/src/base/compiler-specific.h +0 -136
  222. package/pods/Headers/inspector/src/base/export-template.h +0 -163
  223. package/pods/Headers/inspector/src/base/flags.h +0 -130
  224. package/pods/Headers/inspector/src/base/immediate-crash.h +0 -162
  225. package/pods/Headers/inspector/src/base/lazy-instance.h +0 -258
  226. package/pods/Headers/inspector/src/base/logging.h +0 -417
  227. package/pods/Headers/inspector/src/base/macros.h +0 -423
  228. package/pods/Headers/inspector/src/base/memory.h +0 -89
  229. package/pods/Headers/inspector/src/base/once.h +0 -108
  230. package/pods/Headers/inspector/src/base/optional.h +0 -882
  231. package/pods/Headers/inspector/src/base/platform/mutex.h +0 -370
  232. package/pods/Headers/inspector/src/base/platform/platform.h +0 -476
  233. package/pods/Headers/inspector/src/base/platform/semaphore.h +0 -108
  234. package/pods/Headers/inspector/src/base/platform/v8-time.h +0 -513
  235. package/pods/Headers/inspector/src/base/platform/wrappers.h +0 -73
  236. package/pods/Headers/inspector/src/base/safe_conversions.h +0 -389
  237. package/pods/Headers/inspector/src/base/safe_conversions_impl.h +0 -822
  238. package/pods/Headers/inspector/src/base/template-utils.h +0 -113
  239. package/pods/Headers/inspector/src/base/v8-fallthrough.h +0 -21
  240. package/pods/Headers/inspector/src/common/checks.h +0 -38
  241. package/pods/Headers/inspector/src/common/globals.h +0 -1842
  242. package/pods/Headers/inspector/src/debug/debug-interface.h +0 -667
  243. package/pods/Headers/inspector/src/debug/interface-types.h +0 -175
  244. package/pods/Headers/inspector/src/init/v8.h +0 -52
  245. package/pods/Headers/inspector/src/inspector/custom-preview.h +0 -24
  246. package/pods/Headers/inspector/src/inspector/injected-script.h +0 -251
  247. package/pods/Headers/inspector/src/inspector/inspected-context.h +0 -79
  248. package/pods/Headers/inspector/src/inspector/protocol/CSS.h +0 -2148
  249. package/pods/Headers/inspector/src/inspector/protocol/Console.h +0 -211
  250. package/pods/Headers/inspector/src/inspector/protocol/DOM.h +0 -1008
  251. package/pods/Headers/inspector/src/inspector/protocol/Debugger.h +0 -892
  252. package/pods/Headers/inspector/src/inspector/protocol/Forward.h +0 -75
  253. package/pods/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -346
  254. package/pods/Headers/inspector/src/inspector/protocol/Log.h +0 -342
  255. package/pods/Headers/inspector/src/inspector/protocol/Network.h +0 -2528
  256. package/pods/Headers/inspector/src/inspector/protocol/Overlay.h +0 -281
  257. package/pods/Headers/inspector/src/inspector/protocol/Page.h +0 -1189
  258. package/pods/Headers/inspector/src/inspector/protocol/Profiler.h +0 -1001
  259. package/pods/Headers/inspector/src/inspector/protocol/Protocol.h +0 -617
  260. package/pods/Headers/inspector/src/inspector/protocol/Runtime.h +0 -1696
  261. package/pods/Headers/inspector/src/inspector/protocol/Schema.h +0 -146
  262. package/pods/Headers/inspector/src/inspector/protocol/Security.h +0 -793
  263. package/pods/Headers/inspector/src/inspector/remote-object-id.h +0 -54
  264. package/pods/Headers/inspector/src/inspector/search-util.h +0 -26
  265. package/pods/Headers/inspector/src/inspector/string-16.h +0 -180
  266. package/pods/Headers/inspector/src/inspector/string-util.h +0 -128
  267. package/pods/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -48
  268. package/pods/Headers/inspector/src/inspector/v8-console-message.h +0 -147
  269. package/pods/Headers/inspector/src/inspector/v8-console.h +0 -173
  270. package/pods/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -62
  271. package/pods/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -248
  272. package/pods/Headers/inspector/src/inspector/v8-debugger-id.h +0 -44
  273. package/pods/Headers/inspector/src/inspector/v8-debugger-script.h +0 -123
  274. package/pods/Headers/inspector/src/inspector/v8-debugger.h +0 -257
  275. package/pods/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -91
  276. package/pods/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -80
  277. package/pods/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -191
  278. package/pods/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -156
  279. package/pods/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -34
  280. package/pods/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -71
  281. package/pods/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -24
  282. package/pods/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -70
  283. package/pods/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -88
  284. package/pods/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -104
  285. package/pods/Headers/inspector/src/inspector/v8-regex.h +0 -38
  286. package/pods/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -157
  287. package/pods/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -38
  288. package/pods/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -164
  289. package/pods/Headers/inspector/src/inspector/v8-string-conversions.h +0 -17
  290. package/pods/Headers/inspector/src/inspector/v8-value-utils.h +0 -23
  291. package/pods/Headers/inspector/src/inspector/value-mirror.h +0 -87
  292. package/pods/Headers/inspector/src/libplatform/default-platform.h +0 -92
  293. package/pods/Headers/inspector/src/logging/tracing-flags.h +0 -50
  294. package/pods/Headers/inspector/src/numbers/conversions.h +0 -183
  295. package/pods/Headers/inspector/src/tracing/trace-event.h +0 -664
  296. package/pods/Headers/inspector/src/utils/allocation.h +0 -367
  297. package/pods/Headers/inspector/src/utils/vector.h +0 -324
  298. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -305
  299. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -314
  300. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -62
  301. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -6
  302. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -58
  303. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -47
  304. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -80
  305. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -52
  306. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -26
  307. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -104
  308. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -39
  309. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -406
  310. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -32
  311. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -158
  312. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -99
  313. package/pods/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -139
  314. package/pods/Headers/inspector/utils.h +0 -32
  315. package/pods/Headers/inspector/v8-inspector-platform.h +0 -44
  316. package/pods/Headers/jsi/decorator.h +0 -770
  317. package/pods/Headers/jsi/instrumentation.h +0 -117
  318. package/pods/Headers/jsi/jsi-inl.h +0 -338
  319. package/pods/Headers/jsi/jsi.h +0 -1571
  320. package/pods/Headers/jsi/jsilib.h +0 -59
  321. package/pods/Headers/jsi/threadsafe.h +0 -79
  322. package/pods/Headers/runtime/ArgConverter.h +0 -61
  323. package/pods/Headers/runtime/ArrayAdapter.h +0 -13
  324. package/pods/Headers/runtime/Caches.h +0 -98
  325. package/pods/Headers/runtime/ClassBuilder.h +0 -61
  326. package/pods/Headers/runtime/Common.h +0 -9
  327. package/pods/Headers/runtime/ConcurrentMap.h +0 -55
  328. package/pods/Headers/runtime/ConcurrentQueue.h +0 -28
  329. package/pods/Headers/runtime/Console.h +0 -27
  330. package/pods/Headers/runtime/Constants.h +0 -15
  331. package/pods/Headers/runtime/DataWrapper.h +0 -671
  332. package/pods/Headers/runtime/DictionaryAdapter.h +0 -13
  333. package/pods/Headers/runtime/ExtVector.h +0 -21
  334. package/pods/Headers/runtime/FFICall.h +0 -105
  335. package/pods/Headers/runtime/FastEnumerationAdapter.h +0 -13
  336. package/pods/Headers/runtime/FunctionReference.h +0 -18
  337. package/pods/Headers/runtime/Helpers.h +0 -84
  338. package/pods/Headers/runtime/InlineFunctions.h +0 -16
  339. package/pods/Headers/runtime/Interop.h +0 -202
  340. package/pods/Headers/runtime/KnownUnknownClassPair.h +0 -35
  341. package/pods/Headers/runtime/Metadata.h +0 -981
  342. package/pods/Headers/runtime/MetadataBuilder.h +0 -72
  343. package/pods/Headers/runtime/MetadataInlines.h +0 -157
  344. package/pods/Headers/runtime/ModuleInternal.h +0 -59
  345. package/pods/Headers/runtime/NSDataAdapter.h +0 -13
  346. package/pods/Headers/runtime/NativeScriptException.h +0 -27
  347. package/pods/Headers/runtime/ObjectManager.h +0 -31
  348. package/pods/Headers/runtime/OneByteStringResource.h +0 -21
  349. package/pods/Headers/runtime/Pointer.h +0 -26
  350. package/pods/Headers/runtime/PromiseProxy.h +0 -15
  351. package/pods/Headers/runtime/Reference.h +0 -38
  352. package/pods/Headers/runtime/Runtime.h +0 -67
  353. package/pods/Headers/runtime/RuntimeConfig.h +0 -17
  354. package/pods/Headers/runtime/SetTimeout.h +0 -34
  355. package/pods/Headers/runtime/SimpleAllocator.h +0 -23
  356. package/pods/Headers/runtime/StringHasher.h +0 -315
  357. package/pods/Headers/runtime/SymbolIterator.h +0 -18
  358. package/pods/Headers/runtime/SymbolLoader.h +0 -27
  359. package/pods/Headers/runtime/TNSDerivedClass.h +0 -8
  360. package/pods/Headers/runtime/TSHelpers.h +0 -15
  361. package/pods/Headers/runtime/Tasks.h +0 -19
  362. package/pods/Headers/runtime/UnmanagedType.h +0 -21
  363. package/pods/Headers/runtime/WeakRef.h +0 -15
  364. package/pods/Headers/runtime/Worker.h +0 -26
  365. package/pods/Headers/runtime/robin_hood.h +0 -2184
  366. package/pods/Headers/v8runtime/HostProxy.h +0 -71
  367. package/pods/Headers/v8runtime/JSIV8ValueConverter.h +0 -74
  368. package/pods/Headers/v8runtime/V8PointerValue.h +0 -44
  369. package/pods/Headers/v8runtime/V8Runtime.h +0 -240
  370. package/pods/Headers/v8runtime/V8RuntimeConfig.h +0 -26
  371. package/pods/Headers/v8runtime/V8RuntimeFactory.h +0 -21
  372. package/pods/NativeScript.podspec +0 -68
@@ -1,173 +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_INSPECTOR_V8_CONSOLE_H_
6
- #define V8_INSPECTOR_V8_CONSOLE_H_
7
-
8
- #include "src/base/macros.h"
9
-
10
- #include "include/v8.h"
11
- #include "src/debug/interface-types.h"
12
-
13
- namespace v8_inspector {
14
-
15
- class InspectedContext;
16
- class V8InspectorImpl;
17
-
18
- // Console API
19
- // https://console.spec.whatwg.org/#console-namespace
20
- class V8Console : public v8::debug::ConsoleDelegate {
21
- public:
22
- v8::Local<v8::Object> createCommandLineAPI(v8::Local<v8::Context> context,
23
- int sessionId);
24
- void installMemoryGetter(v8::Local<v8::Context> context,
25
- v8::Local<v8::Object> console);
26
-
27
- class V8_NODISCARD CommandLineAPIScope {
28
- public:
29
- CommandLineAPIScope(v8::Local<v8::Context>,
30
- v8::Local<v8::Object> commandLineAPI,
31
- v8::Local<v8::Object> global);
32
- ~CommandLineAPIScope();
33
- CommandLineAPIScope(const CommandLineAPIScope&) = delete;
34
- CommandLineAPIScope& operator=(const CommandLineAPIScope&) = delete;
35
-
36
- private:
37
- static void accessorGetterCallback(
38
- v8::Local<v8::Name>, const v8::PropertyCallbackInfo<v8::Value>&);
39
- static void accessorSetterCallback(v8::Local<v8::Name>,
40
- v8::Local<v8::Value>,
41
- const v8::PropertyCallbackInfo<void>&);
42
-
43
- v8::Local<v8::Context> m_context;
44
- v8::Local<v8::Object> m_commandLineAPI;
45
- v8::Local<v8::Object> m_global;
46
- v8::Local<v8::Set> m_installedMethods;
47
- v8::Local<v8::ArrayBuffer> m_thisReference;
48
- };
49
-
50
- explicit V8Console(V8InspectorImpl* inspector);
51
-
52
- private:
53
- void Debug(const v8::debug::ConsoleCallArguments&,
54
- const v8::debug::ConsoleContext& consoleContext) override;
55
- void Error(const v8::debug::ConsoleCallArguments&,
56
- const v8::debug::ConsoleContext& consoleContext) override;
57
- void Info(const v8::debug::ConsoleCallArguments&,
58
- const v8::debug::ConsoleContext& consoleContext) override;
59
- void Log(const v8::debug::ConsoleCallArguments&,
60
- const v8::debug::ConsoleContext& consoleContext) override;
61
- void Warn(const v8::debug::ConsoleCallArguments&,
62
- const v8::debug::ConsoleContext& consoleContext) override;
63
- void Dir(const v8::debug::ConsoleCallArguments&,
64
- const v8::debug::ConsoleContext& consoleContext) override;
65
- void DirXml(const v8::debug::ConsoleCallArguments&,
66
- const v8::debug::ConsoleContext& consoleContext) override;
67
- void Table(const v8::debug::ConsoleCallArguments&,
68
- const v8::debug::ConsoleContext& consoleContext) override;
69
- void Trace(const v8::debug::ConsoleCallArguments&,
70
- const v8::debug::ConsoleContext& consoleContext) override;
71
- void Group(const v8::debug::ConsoleCallArguments&,
72
- const v8::debug::ConsoleContext& consoleContext) override;
73
- void GroupCollapsed(const v8::debug::ConsoleCallArguments&,
74
- const v8::debug::ConsoleContext& consoleContext) override;
75
- void GroupEnd(const v8::debug::ConsoleCallArguments&,
76
- const v8::debug::ConsoleContext& consoleContext) override;
77
- void Clear(const v8::debug::ConsoleCallArguments&,
78
- const v8::debug::ConsoleContext& consoleContext) override;
79
- void Count(const v8::debug::ConsoleCallArguments&,
80
- const v8::debug::ConsoleContext& consoleContext) override;
81
- void CountReset(const v8::debug::ConsoleCallArguments&,
82
- const v8::debug::ConsoleContext& consoleContext) override;
83
- void Assert(const v8::debug::ConsoleCallArguments&,
84
- const v8::debug::ConsoleContext& consoleContext) override;
85
- void Profile(const v8::debug::ConsoleCallArguments&,
86
- const v8::debug::ConsoleContext& consoleContext) override;
87
- void ProfileEnd(const v8::debug::ConsoleCallArguments&,
88
- const v8::debug::ConsoleContext& consoleContext) override;
89
- void Time(const v8::debug::ConsoleCallArguments&,
90
- const v8::debug::ConsoleContext& consoleContext) override;
91
- void TimeLog(const v8::debug::ConsoleCallArguments&,
92
- const v8::debug::ConsoleContext& consoleContext) override;
93
- void TimeEnd(const v8::debug::ConsoleCallArguments&,
94
- const v8::debug::ConsoleContext& consoleContext) override;
95
- void TimeStamp(const v8::debug::ConsoleCallArguments&,
96
- const v8::debug::ConsoleContext& consoleContext) override;
97
-
98
- template <void (V8Console::*func)(const v8::FunctionCallbackInfo<v8::Value>&)>
99
- static void call(const v8::FunctionCallbackInfo<v8::Value>& info) {
100
- V8Console* console =
101
- static_cast<V8Console*>(info.Data().As<v8::External>()->Value());
102
- (console->*func)(info);
103
- }
104
- using CommandLineAPIData = std::pair<V8Console*, int>;
105
- template <void (V8Console::*func)(const v8::FunctionCallbackInfo<v8::Value>&,
106
- int)>
107
- static void call(const v8::FunctionCallbackInfo<v8::Value>& info) {
108
- CommandLineAPIData* data = static_cast<CommandLineAPIData*>(
109
- info.Data().As<v8::ArrayBuffer>()->GetBackingStore()->Data());
110
- (data->first->*func)(info, data->second);
111
- }
112
- template <void (V8Console::*func)(const v8::debug::ConsoleCallArguments&,
113
- const v8::debug::ConsoleContext&)>
114
- static void call(const v8::FunctionCallbackInfo<v8::Value>& info) {
115
- CommandLineAPIData* data = static_cast<CommandLineAPIData*>(
116
- info.Data().As<v8::ArrayBuffer>()->GetBackingStore()->Data());
117
- v8::debug::ConsoleCallArguments args(info);
118
- (data->first->*func)(args, v8::debug::ConsoleContext());
119
- }
120
-
121
- // TODO(foolip): There is no spec for the Memory Info API, see blink-dev:
122
- // https://groups.google.com/a/chromium.org/d/msg/blink-dev/g5YRCGpC9vs/b4OJz71NmPwJ
123
- void memoryGetterCallback(const v8::FunctionCallbackInfo<v8::Value>&);
124
- void memorySetterCallback(const v8::FunctionCallbackInfo<v8::Value>&);
125
-
126
- // CommandLineAPI
127
- void keysCallback(const v8::FunctionCallbackInfo<v8::Value>&, int sessionId);
128
- void valuesCallback(const v8::FunctionCallbackInfo<v8::Value>&,
129
- int sessionId);
130
- void debugFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>&,
131
- int sessionId);
132
- void undebugFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>&,
133
- int sessionId);
134
- void monitorFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>&,
135
- int sessionId);
136
- void unmonitorFunctionCallback(const v8::FunctionCallbackInfo<v8::Value>&,
137
- int sessionId);
138
- void lastEvaluationResultCallback(const v8::FunctionCallbackInfo<v8::Value>&,
139
- int sessionId);
140
- void inspectCallback(const v8::FunctionCallbackInfo<v8::Value>&,
141
- int sessionId);
142
- void copyCallback(const v8::FunctionCallbackInfo<v8::Value>&, int sessionId);
143
- void inspectedObject(const v8::FunctionCallbackInfo<v8::Value>&,
144
- int sessionId, unsigned num);
145
- void inspectedObject0(const v8::FunctionCallbackInfo<v8::Value>& info,
146
- int sessionId) {
147
- inspectedObject(info, sessionId, 0);
148
- }
149
- void inspectedObject1(const v8::FunctionCallbackInfo<v8::Value>& info,
150
- int sessionId) {
151
- inspectedObject(info, sessionId, 1);
152
- }
153
- void inspectedObject2(const v8::FunctionCallbackInfo<v8::Value>& info,
154
- int sessionId) {
155
- inspectedObject(info, sessionId, 2);
156
- }
157
- void inspectedObject3(const v8::FunctionCallbackInfo<v8::Value>& info,
158
- int sessionId) {
159
- inspectedObject(info, sessionId, 3);
160
- }
161
- void inspectedObject4(const v8::FunctionCallbackInfo<v8::Value>& info,
162
- int sessionId) {
163
- inspectedObject(info, sessionId, 4);
164
- }
165
- void queryObjectsCallback(const v8::FunctionCallbackInfo<v8::Value>& info,
166
- int sessionId);
167
-
168
- V8InspectorImpl* m_inspector;
169
- };
170
-
171
- } // namespace v8_inspector
172
-
173
- #endif // V8_INSPECTOR_V8_CONSOLE_H_
@@ -1,62 +0,0 @@
1
- #ifndef v8_css_agent_impl_h
2
- #define v8_css_agent_impl_h
3
-
4
- #include "src/inspector/v8-inspector-impl.h"
5
- #include "src/inspector/protocol/CSS.h"
6
- #include "src/inspector/protocol/Protocol.h"
7
-
8
- namespace v8_inspector {
9
-
10
- class V8InspectorSessionImpl;
11
-
12
- using v8_inspector::protocol::Maybe;
13
- using String = v8_inspector::String16;
14
- using protocol::DispatchResponse;
15
-
16
-
17
- class V8CSSAgentImpl : public protocol::CSS::Backend {
18
- public:
19
- V8CSSAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*,
20
- protocol::DictionaryValue* state);
21
-
22
- ~V8CSSAgentImpl() override;
23
- V8CSSAgentImpl(const V8CSSAgentImpl&) = delete;
24
- V8CSSAgentImpl& operator=(const V8CSSAgentImpl&) = delete;
25
-
26
- void enable(std::unique_ptr<EnableCallback> callback) override;
27
- DispatchResponse disable() override;
28
- DispatchResponse getMatchedStylesForNode(int in_nodeId, Maybe<protocol::CSS::CSSStyle>* out_inlineStyle, Maybe<protocol::CSS::CSSStyle>* out_attributesStyle, Maybe<protocol::Array<protocol::CSS::RuleMatch>>* out_matchedCSSRules, Maybe<protocol::Array<protocol::CSS::PseudoElementMatches>>* out_pseudoElements, Maybe<protocol::Array<protocol::CSS::InheritedStyleEntry>>* out_inherited, Maybe<protocol::Array<protocol::CSS::CSSKeyframesRule>>* out_cssKeyframesRules) override;
29
- DispatchResponse getInlineStylesForNode(int in_nodeId, Maybe<protocol::CSS::CSSStyle>* out_inlineStyle, Maybe<protocol::CSS::CSSStyle>* out_attributesStyle) override;
30
- DispatchResponse getComputedStyleForNode(int in_nodeId, std::unique_ptr<protocol::Array<protocol::CSS::CSSComputedStyleProperty>>* out_computedStyle) override;
31
- DispatchResponse getPlatformFontsForNode(int in_nodeId, std::unique_ptr<protocol::Array<protocol::CSS::PlatformFontUsage>>* out_fonts) override;
32
- DispatchResponse getStyleSheetText(const String& in_styleSheetId, String* out_text) override;
33
- DispatchResponse addRule(const String& in_styleSheetId, const String& in_ruleText, std::unique_ptr<protocol::CSS::SourceRange> in_location, std::unique_ptr<protocol::CSS::CSSRule>* out_rule) override;
34
- DispatchResponse collectClassNames(const String& in_styleSheetId, std::unique_ptr<protocol::Array<String>>* out_classNames) override;
35
- DispatchResponse createStyleSheet(const String& in_frameId, String* out_styleSheetId) override;
36
- DispatchResponse forcePseudoState(int in_nodeId, std::unique_ptr<protocol::Array<String>> in_forcedPseudoClasses) override;
37
- DispatchResponse getBackgroundColors(int in_nodeId, Maybe<protocol::Array<String>>* out_backgroundColors, Maybe<String>* out_computedFontSize, Maybe<String>* out_computedFontWeight) override;
38
- DispatchResponse getMediaQueries(std::unique_ptr<protocol::Array<protocol::CSS::CSSMedia>>* out_medias) override;
39
- DispatchResponse setEffectivePropertyValueForNode(int in_nodeId, const String& in_propertyName, const String& in_value) override;
40
- DispatchResponse setKeyframeKey(const String& in_styleSheetId, std::unique_ptr<protocol::CSS::SourceRange> in_range, const String& in_keyText, std::unique_ptr<protocol::CSS::Value>* out_keyText) override;
41
- DispatchResponse setMediaText(const String& in_styleSheetId, std::unique_ptr<protocol::CSS::SourceRange> in_range, const String& in_text, std::unique_ptr<protocol::CSS::CSSMedia>* out_media) override;
42
- DispatchResponse setRuleSelector(const String& in_styleSheetId, std::unique_ptr<protocol::CSS::SourceRange> in_range, const String& in_selector, std::unique_ptr<protocol::CSS::SelectorList>* out_selectorList) override;
43
- DispatchResponse setStyleSheetText(const String& in_styleSheetId, const String& in_text, Maybe<String>* out_sourceMapURL) override;
44
- DispatchResponse setStyleTexts(std::unique_ptr<protocol::Array<protocol::CSS::StyleDeclarationEdit>> in_edits, std::unique_ptr<protocol::Array<protocol::CSS::CSSStyle>>* out_styles) override;
45
- DispatchResponse startRuleUsageTracking() override;
46
- DispatchResponse stopRuleUsageTracking(std::unique_ptr<protocol::Array<protocol::CSS::RuleUsage>>* out_ruleUsage) override;
47
- DispatchResponse takeCoverageDelta(std::unique_ptr<protocol::Array<protocol::CSS::RuleUsage>>* out_coverage) override;
48
-
49
- static V8CSSAgentImpl* Instance;
50
-
51
- private:
52
- protocol::CSS::Frontend m_frontend;
53
- protocol::DictionaryValue* m_state;
54
- V8InspectorImpl* m_inspector;
55
- V8InspectorSessionImpl* m_session;
56
-
57
- bool m_enabled;
58
- };
59
-
60
- }
61
-
62
- #endif /* v8_css_agent_impl_h */
@@ -1,248 +0,0 @@
1
- // Copyright 2015 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_INSPECTOR_V8_DEBUGGER_AGENT_IMPL_H_
6
- #define V8_INSPECTOR_V8_DEBUGGER_AGENT_IMPL_H_
7
-
8
- #include <deque>
9
- #include <memory>
10
- #include <unordered_map>
11
- #include <vector>
12
-
13
- #include "src/base/macros.h"
14
- #include "src/debug/debug-interface.h"
15
- #include "src/debug/interface-types.h"
16
- #include "src/inspector/protocol/Debugger.h"
17
- #include "src/inspector/protocol/Forward.h"
18
-
19
- namespace v8_inspector {
20
-
21
- struct ScriptBreakpoint;
22
- class V8Debugger;
23
- class V8DebuggerScript;
24
- class V8InspectorImpl;
25
- class V8InspectorSessionImpl;
26
- class V8Regex;
27
-
28
- using protocol::Maybe;
29
- using protocol::Response;
30
-
31
- class V8DebuggerAgentImpl : public protocol::Debugger::Backend {
32
- public:
33
- enum BreakpointSource {
34
- UserBreakpointSource,
35
- DebugCommandBreakpointSource,
36
- MonitorCommandBreakpointSource
37
- };
38
-
39
- V8DebuggerAgentImpl(V8InspectorSessionImpl*, protocol::FrontendChannel*,
40
- protocol::DictionaryValue* state);
41
- ~V8DebuggerAgentImpl() override;
42
- V8DebuggerAgentImpl(const V8DebuggerAgentImpl&) = delete;
43
- V8DebuggerAgentImpl& operator=(const V8DebuggerAgentImpl&) = delete;
44
- void restore();
45
-
46
- // Part of the protocol.
47
- Response enable(Maybe<double> maxScriptsCacheSize,
48
- String16* outDebuggerId) override;
49
- Response disable() override;
50
- Response setBreakpointsActive(bool active) override;
51
- Response setSkipAllPauses(bool skip) override;
52
- Response setBreakpointByUrl(
53
- int lineNumber, Maybe<String16> optionalURL,
54
- Maybe<String16> optionalURLRegex, Maybe<String16> optionalScriptHash,
55
- Maybe<int> optionalColumnNumber, Maybe<String16> optionalCondition,
56
- String16*,
57
- std::unique_ptr<protocol::Array<protocol::Debugger::Location>>* locations)
58
- override;
59
- Response setBreakpoint(
60
- std::unique_ptr<protocol::Debugger::Location>,
61
- Maybe<String16> optionalCondition, String16*,
62
- std::unique_ptr<protocol::Debugger::Location>* actualLocation) override;
63
- Response setBreakpointOnFunctionCall(const String16& functionObjectId,
64
- Maybe<String16> optionalCondition,
65
- String16* outBreakpointId) override;
66
- Response setInstrumentationBreakpoint(const String16& instrumentation,
67
- String16* outBreakpointId) override;
68
- Response removeBreakpoint(const String16& breakpointId) override;
69
- Response continueToLocation(std::unique_ptr<protocol::Debugger::Location>,
70
- Maybe<String16> targetCallFrames) override;
71
- Response getStackTrace(
72
- std::unique_ptr<protocol::Runtime::StackTraceId> inStackTraceId,
73
- std::unique_ptr<protocol::Runtime::StackTrace>* outStackTrace) override;
74
- Response searchInContent(
75
- const String16& scriptId, const String16& query,
76
- Maybe<bool> optionalCaseSensitive, Maybe<bool> optionalIsRegex,
77
- std::unique_ptr<protocol::Array<protocol::Debugger::SearchMatch>>*)
78
- override;
79
- Response getPossibleBreakpoints(
80
- std::unique_ptr<protocol::Debugger::Location> start,
81
- Maybe<protocol::Debugger::Location> end, Maybe<bool> restrictToFunction,
82
- std::unique_ptr<protocol::Array<protocol::Debugger::BreakLocation>>*
83
- locations) override;
84
- Response setScriptSource(
85
- const String16& inScriptId, const String16& inScriptSource,
86
- Maybe<bool> dryRun,
87
- Maybe<protocol::Array<protocol::Debugger::CallFrame>>* optOutCallFrames,
88
- Maybe<bool>* optOutStackChanged,
89
- Maybe<protocol::Runtime::StackTrace>* optOutAsyncStackTrace,
90
- Maybe<protocol::Runtime::StackTraceId>* optOutAsyncStackTraceId,
91
- Maybe<protocol::Runtime::ExceptionDetails>* optOutCompileError) override;
92
- Response restartFrame(
93
- const String16& callFrameId,
94
- std::unique_ptr<protocol::Array<protocol::Debugger::CallFrame>>*
95
- newCallFrames,
96
- Maybe<protocol::Runtime::StackTrace>* asyncStackTrace,
97
- Maybe<protocol::Runtime::StackTraceId>* asyncStackTraceId) override;
98
- Response getScriptSource(const String16& scriptId, String16* scriptSource,
99
- Maybe<protocol::Binary>* bytecode) override;
100
- Response getWasmBytecode(const String16& scriptId,
101
- protocol::Binary* bytecode) override;
102
- Response pause() override;
103
- Response resume(Maybe<bool> terminateOnResume) override;
104
- Response stepOver(Maybe<protocol::Array<protocol::Debugger::LocationRange>>
105
- inSkipList) override;
106
- Response stepInto(Maybe<bool> inBreakOnAsyncCall,
107
- Maybe<protocol::Array<protocol::Debugger::LocationRange>>
108
- inSkipList) override;
109
- Response stepOut() override;
110
- Response pauseOnAsyncCall(std::unique_ptr<protocol::Runtime::StackTraceId>
111
- inParentStackTraceId) override;
112
- Response setPauseOnExceptions(const String16& pauseState) override;
113
- Response evaluateOnCallFrame(
114
- const String16& callFrameId, const String16& expression,
115
- Maybe<String16> objectGroup, Maybe<bool> includeCommandLineAPI,
116
- Maybe<bool> silent, Maybe<bool> returnByValue,
117
- Maybe<bool> generatePreview, Maybe<bool> throwOnSideEffect,
118
- Maybe<double> timeout,
119
- std::unique_ptr<protocol::Runtime::RemoteObject>* result,
120
- Maybe<protocol::Runtime::ExceptionDetails>*) override;
121
- Response setVariableValue(
122
- int scopeNumber, const String16& variableName,
123
- std::unique_ptr<protocol::Runtime::CallArgument> newValue,
124
- const String16& callFrame) override;
125
- Response setReturnValue(
126
- std::unique_ptr<protocol::Runtime::CallArgument> newValue) override;
127
- Response setAsyncCallStackDepth(int depth) override;
128
- Response setBlackboxPatterns(
129
- std::unique_ptr<protocol::Array<String16>> patterns) override;
130
- Response setBlackboxedRanges(
131
- const String16& scriptId,
132
- std::unique_ptr<protocol::Array<protocol::Debugger::ScriptPosition>>
133
- positions) override;
134
-
135
- bool enabled() const { return m_enabled; }
136
-
137
- void setBreakpointFor(v8::Local<v8::Function> function,
138
- v8::Local<v8::String> condition,
139
- BreakpointSource source);
140
- void removeBreakpointFor(v8::Local<v8::Function> function,
141
- BreakpointSource source);
142
- void schedulePauseOnNextStatement(
143
- const String16& breakReason,
144
- std::unique_ptr<protocol::DictionaryValue> data);
145
- void cancelPauseOnNextStatement();
146
- void breakProgram(const String16& breakReason,
147
- std::unique_ptr<protocol::DictionaryValue> data);
148
-
149
- void reset();
150
-
151
- // Interface for V8InspectorImpl
152
- void didPause(int contextId, v8::Local<v8::Value> exception,
153
- const std::vector<v8::debug::BreakpointId>& hitBreakpoints,
154
- v8::debug::ExceptionType exceptionType, bool isUncaught,
155
- bool isOOMBreak, bool isAssert);
156
- void didContinue();
157
- void didParseSource(std::unique_ptr<V8DebuggerScript>, bool success);
158
-
159
- bool isFunctionBlackboxed(const String16& scriptId,
160
- const v8::debug::Location& start,
161
- const v8::debug::Location& end);
162
- bool shouldBeSkipped(const String16& scriptId, int line, int column);
163
-
164
- bool acceptsPause(bool isOOMBreak) const;
165
-
166
- void ScriptCollected(const V8DebuggerScript* script);
167
-
168
- v8::Isolate* isolate() { return m_isolate; }
169
-
170
- private:
171
- void enableImpl();
172
-
173
- Response currentCallFrames(
174
- std::unique_ptr<protocol::Array<protocol::Debugger::CallFrame>>*);
175
- std::unique_ptr<protocol::Runtime::StackTrace> currentAsyncStackTrace();
176
- std::unique_ptr<protocol::Runtime::StackTraceId> currentExternalStackTrace();
177
-
178
- void setPauseOnExceptionsImpl(int);
179
-
180
- std::unique_ptr<protocol::Debugger::Location> setBreakpointImpl(
181
- const String16& breakpointId, const String16& scriptId,
182
- const String16& condition, int lineNumber, int columnNumber);
183
- void setBreakpointImpl(const String16& breakpointId,
184
- v8::Local<v8::Function> function,
185
- v8::Local<v8::String> condition);
186
- void removeBreakpointImpl(const String16& breakpointId,
187
- const std::vector<V8DebuggerScript*>& scripts);
188
- void clearBreakDetails();
189
-
190
- void internalSetAsyncCallStackDepth(int);
191
- void increaseCachedSkipStackGeneration();
192
-
193
- Response setBlackboxPattern(const String16& pattern);
194
- void resetBlackboxedStateCache();
195
-
196
- bool isPaused() const;
197
-
198
- void setScriptInstrumentationBreakpointIfNeeded(V8DebuggerScript* script);
199
-
200
- Response processSkipList(
201
- protocol::Array<protocol::Debugger::LocationRange>* skipList);
202
-
203
- using ScriptsMap =
204
- std::unordered_map<String16, std::unique_ptr<V8DebuggerScript>>;
205
- using BreakpointIdToDebuggerBreakpointIdsMap =
206
- std::unordered_map<String16, std::vector<v8::debug::BreakpointId>>;
207
- using DebuggerBreakpointIdToBreakpointIdMap =
208
- std::unordered_map<v8::debug::BreakpointId, String16>;
209
-
210
- V8InspectorImpl* m_inspector;
211
- V8Debugger* m_debugger;
212
- V8InspectorSessionImpl* m_session;
213
- bool m_enabled;
214
- protocol::DictionaryValue* m_state;
215
- protocol::Debugger::Frontend m_frontend;
216
- v8::Isolate* m_isolate;
217
- ScriptsMap m_scripts;
218
- BreakpointIdToDebuggerBreakpointIdsMap m_breakpointIdToDebuggerBreakpointIds;
219
- DebuggerBreakpointIdToBreakpointIdMap m_debuggerBreakpointIdToBreakpointId;
220
- std::unordered_map<v8::debug::BreakpointId,
221
- std::unique_ptr<protocol::DictionaryValue>>
222
- m_breakpointsOnScriptRun;
223
-
224
- size_t m_maxScriptCacheSize = 0;
225
- size_t m_cachedScriptSize = 0;
226
- std::deque<String16> m_cachedScriptIds;
227
-
228
- using BreakReason =
229
- std::pair<String16, std::unique_ptr<protocol::DictionaryValue>>;
230
- std::vector<BreakReason> m_breakReason;
231
-
232
- void pushBreakDetails(
233
- const String16& breakReason,
234
- std::unique_ptr<protocol::DictionaryValue> breakAuxData);
235
- void popBreakDetails();
236
-
237
- bool m_skipAllPauses = false;
238
- bool m_breakpointsActive = false;
239
-
240
- std::unique_ptr<V8Regex> m_blackboxPattern;
241
- std::unordered_map<String16, std::vector<std::pair<int, int>>>
242
- m_blackboxedPositions;
243
- std::unordered_map<String16, std::vector<std::pair<int, int>>> m_skipList;
244
- };
245
-
246
- } // namespace v8_inspector
247
-
248
- #endif // V8_INSPECTOR_V8_DEBUGGER_AGENT_IMPL_H_
@@ -1,44 +0,0 @@
1
- // Copyright 2020 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_INSPECTOR_V8_DEBUGGER_ID_H_
6
- #define V8_INSPECTOR_V8_DEBUGGER_ID_H_
7
-
8
- #include <utility>
9
-
10
- #include "src/base/macros.h"
11
- #include "src/inspector/protocol/Forward.h"
12
-
13
- namespace v8_inspector {
14
-
15
- class V8InspectorImpl;
16
-
17
- // This debugger id tries to be unique by generating two random
18
- // numbers, which should most likely avoid collisions.
19
- // Debugger id has a 1:1 mapping to context group. It is used to
20
- // attribute stack traces to a particular debugging, when doing any
21
- // cross-debugger operations (e.g. async step in).
22
- // See also Runtime.UniqueDebuggerId in the protocol.
23
- class V8DebuggerId {
24
- public:
25
- V8DebuggerId() = default;
26
- explicit V8DebuggerId(std::pair<int64_t, int64_t>);
27
- explicit V8DebuggerId(const String16&);
28
- V8DebuggerId(const V8DebuggerId&) V8_NOEXCEPT = default;
29
- ~V8DebuggerId() = default;
30
-
31
- static V8DebuggerId generate(V8InspectorImpl*);
32
-
33
- String16 toString() const;
34
- bool isValid() const;
35
- std::pair<int64_t, int64_t> pair() const;
36
-
37
- private:
38
- int64_t m_first = 0;
39
- int64_t m_second = 0;
40
- };
41
-
42
- } // namespace v8_inspector
43
-
44
- #endif // V8_INSPECTOR_V8_DEBUGGER_ID_H_
@@ -1,123 +0,0 @@
1
- /*
2
- * Copyright (C) 2008 Apple Inc. All rights reserved.
3
- * Copyright (C) 2010 Google Inc. All rights reserved.
4
- *
5
- * Redistribution and use in source and binary forms, with or without
6
- * modification, are permitted provided that the following conditions
7
- * are met:
8
- *
9
- * 1. Redistributions of source code must retain the above copyright
10
- * notice, this list of conditions and the following disclaimer.
11
- * 2. Redistributions in binary form must reproduce the above copyright
12
- * notice, this list of conditions and the following disclaimer in the
13
- * documentation and/or other materials provided with the distribution.
14
- * 3. Neither the name of Apple Computer, Inc. ("Apple") nor the names of
15
- * its contributors may be used to endorse or promote products derived
16
- * from this software without specific prior written permission.
17
- *
18
- * THIS SOFTWARE IS PROVIDED BY APPLE AND ITS CONTRIBUTORS "AS IS" AND ANY
19
- * EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
- * DISCLAIMED. IN NO EVENT SHALL APPLE OR ITS CONTRIBUTORS BE LIABLE FOR ANY
22
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
- * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
- * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25
- * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
- * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27
- * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
- */
29
-
30
- #ifndef V8_INSPECTOR_V8_DEBUGGER_SCRIPT_H_
31
- #define V8_INSPECTOR_V8_DEBUGGER_SCRIPT_H_
32
-
33
- #include <memory>
34
-
35
- #include "src/base/macros.h"
36
- #include "src/inspector/string-16.h"
37
- #include "src/inspector/string-util.h"
38
-
39
- #include "include/v8.h"
40
- #include "src/debug/debug-interface.h"
41
-
42
- namespace v8_inspector {
43
-
44
- class V8DebuggerAgentImpl;
45
- class V8InspectorClient;
46
-
47
- class V8DebuggerScript {
48
- public:
49
- enum class Language { JavaScript, WebAssembly };
50
- static std::unique_ptr<V8DebuggerScript> Create(
51
- v8::Isolate* isolate, v8::Local<v8::debug::Script> script,
52
- bool isLiveEdit, V8DebuggerAgentImpl* agent, V8InspectorClient* client);
53
-
54
- virtual ~V8DebuggerScript();
55
- V8DebuggerScript(const V8DebuggerScript&) = delete;
56
- V8DebuggerScript& operator=(const V8DebuggerScript&) = delete;
57
-
58
- const String16& scriptId() const { return m_id; }
59
- bool hasSourceURLComment() const { return m_hasSourceURLComment; }
60
- const String16& sourceURL() const { return m_url; }
61
- const String16& embedderName() const { return m_embedderName; }
62
-
63
- virtual const String16& sourceMappingURL() const = 0;
64
- virtual String16 source(size_t pos, size_t len = UINT_MAX) const = 0;
65
- virtual Language getLanguage() const = 0;
66
- virtual const String16& hash() const = 0;
67
- virtual int startLine() const = 0;
68
- virtual int startColumn() const = 0;
69
- virtual int endLine() const = 0;
70
- virtual int endColumn() const = 0;
71
- virtual int codeOffset() const = 0;
72
- int executionContextId() const { return m_executionContextId; }
73
- virtual bool isLiveEdit() const = 0;
74
- virtual bool isModule() const = 0;
75
- virtual bool isSourceLoadedLazily() const = 0;
76
- virtual int length() const = 0;
77
-
78
- void setSourceURL(const String16&);
79
- virtual void setSourceMappingURL(const String16&) = 0;
80
- virtual void setSource(const String16& source, bool preview,
81
- v8::debug::LiveEditResult* result) = 0;
82
-
83
- virtual bool getPossibleBreakpoints(
84
- const v8::debug::Location& start, const v8::debug::Location& end,
85
- bool ignoreNestedFunctions,
86
- std::vector<v8::debug::BreakLocation>* locations) = 0;
87
- virtual void resetBlackboxedStateCache() = 0;
88
-
89
- static const int kNoOffset = -1;
90
- virtual int offset(int lineNumber, int columnNumber) const = 0;
91
- virtual v8::debug::Location location(int offset) const = 0;
92
-
93
- virtual bool setBreakpoint(const String16& condition,
94
- v8::debug::Location* location, int* id) const = 0;
95
- virtual void MakeWeak() = 0;
96
- virtual bool setBreakpointOnRun(int* id) const = 0;
97
-
98
- #if V8_ENABLE_WEBASSEMBLY
99
- virtual v8::Maybe<v8::MemorySpan<const uint8_t>> wasmBytecode() const = 0;
100
- virtual v8::Maybe<v8::debug::WasmScript::DebugSymbolsType>
101
- getDebugSymbolsType() const = 0;
102
- virtual v8::Maybe<String16> getExternalDebugSymbolsURL() const = 0;
103
- void removeWasmBreakpoint(int id);
104
- #endif // V8_ENABLE_WEBASSEMBLY
105
-
106
- protected:
107
- V8DebuggerScript(v8::Isolate*, String16 id, String16 url,
108
- String16 embedderName);
109
-
110
- virtual v8::Local<v8::debug::Script> script() const = 0;
111
-
112
- String16 m_id;
113
- String16 m_url;
114
- bool m_hasSourceURLComment = false;
115
- int m_executionContextId = 0;
116
-
117
- v8::Isolate* m_isolate;
118
- String16 m_embedderName;
119
- };
120
-
121
- } // namespace v8_inspector
122
-
123
- #endif // V8_INSPECTOR_V8_DEBUGGER_SCRIPT_H_