@nativescript/canvas 2.0.0-alpha.8 → 2.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Canvas/common.d.ts +213 -25
- package/Canvas/common.js +705 -452
- package/Canvas/common.js.map +1 -1
- package/Canvas/index.android.d.ts +10 -1
- package/Canvas/index.android.js +155 -52
- package/Canvas/index.android.js.map +1 -1
- package/Canvas/index.d.ts +8 -0
- package/Canvas/index.ios.d.ts +7 -4
- package/Canvas/index.ios.js +159 -106
- package/Canvas/index.ios.js.map +1 -1
- package/Canvas2D/CanvasGradient/index.d.ts +1 -3
- package/Canvas2D/CanvasGradient/index.js +1 -10
- package/Canvas2D/CanvasGradient/index.js.map +1 -1
- package/Canvas2D/CanvasPattern/index.d.ts +1 -3
- package/Canvas2D/CanvasPattern/index.js +1 -10
- package/Canvas2D/CanvasPattern/index.js.map +1 -1
- package/Canvas2D/CanvasRenderingContext2D/index.d.ts +9 -5
- package/Canvas2D/CanvasRenderingContext2D/index.js +174 -245
- package/Canvas2D/CanvasRenderingContext2D/index.js.map +1 -1
- package/Canvas2D/DOMMatrix/index.js +3 -3
- package/Canvas2D/DOMMatrix/index.js.map +1 -1
- package/Canvas2D/ImageData/index.js +6 -6
- package/Canvas2D/ImageData/index.js.map +1 -1
- package/Canvas2D/Path2D/index.d.ts +0 -2
- package/Canvas2D/Path2D/index.js +32 -42
- package/Canvas2D/Path2D/index.js.map +1 -1
- package/Dom/Paint.js +2 -3
- package/Dom/Paint.js.map +1 -1
- package/Dom/shapes/Circle.js +1 -2
- package/Dom/shapes/Circle.js.map +1 -1
- package/Dom/shapes/Points.js +1 -2
- package/Dom/shapes/Points.js.map +1 -1
- package/ImageAsset/index.d.ts +2 -2
- package/ImageAsset/index.js +33 -37
- package/ImageAsset/index.js.map +1 -1
- package/ImageBitmap/index.d.ts +0 -2
- package/ImageBitmap/index.js +47 -33
- package/ImageBitmap/index.js.map +1 -1
- package/LICENSE +201 -0
- package/SVG/SVG.js +1 -1
- package/SVG/SVG.js.map +1 -1
- package/TextDecoder/index.d.ts +0 -2
- package/TextDecoder/index.js +3 -12
- package/TextDecoder/index.js.map +1 -1
- package/TextEncoder/index.d.ts +0 -2
- package/TextEncoder/index.js +4 -13
- package/TextEncoder/index.js.map +1 -1
- package/WebGL/WebGLExtensions/index.d.ts +4 -12
- package/WebGL/WebGLExtensions/index.js +27 -77
- package/WebGL/WebGLExtensions/index.js.map +1 -1
- package/WebGL/WebGLProgram.d.ts +0 -1
- package/WebGL/WebGLProgram.js +0 -3
- package/WebGL/WebGLProgram.js.map +1 -1
- package/WebGL/WebGLRenderingContext/common.d.ts +1 -3
- package/WebGL/WebGLRenderingContext/common.js +3 -13
- package/WebGL/WebGLRenderingContext/common.js.map +1 -1
- package/WebGL/WebGLRenderingContext/index.d.ts +19 -17
- package/WebGL/WebGLRenderingContext/index.js +354 -728
- package/WebGL/WebGLRenderingContext/index.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/common.d.ts +2 -2
- package/WebGL2/WebGL2RenderingContext/common.js +2 -2
- package/WebGL2/WebGL2RenderingContext/common.js.map +1 -1
- package/WebGL2/WebGL2RenderingContext/index.d.ts +1 -1
- package/WebGL2/WebGL2RenderingContext/index.js +116 -285
- package/WebGL2/WebGL2RenderingContext/index.js.map +1 -1
- package/angular/esm2020/index.mjs +4 -4
- package/angular/fesm2015/nativescript-canvas-angular.mjs +4 -4
- package/angular/fesm2020/nativescript-canvas-angular.mjs +4 -4
- package/angular/package.json +2 -2
- package/index.js.map +1 -1
- package/package.json +3 -2
- package/platforms/android/canvas-release.aar +0 -0
- package/platforms/android/include.gradle +15 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative-Swift.h +135 -68
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/CanvasNative.h +10 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_ios.h +144 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Headers/canvas_native.h +2808 -68
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Info.plist +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.abi.json +5677 -2409
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.private.swiftinterface +44 -25
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios.swiftinterface +44 -25
- package/platforms/ios/CanvasNative.xcframework/ios-arm64/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/CanvasNative +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative-Swift.h +270 -136
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/CanvasNative.h +10 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_ios.h +144 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Headers/canvas_native.h +2808 -68
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Info.plist +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/arm64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/Project/x86_64-apple-ios-simulator.swiftsourceinfo +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.abi.json +5677 -2409
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.private.swiftinterface +44 -25
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/arm64-apple-ios-simulator.swiftinterface +44 -25
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.abi.json +5677 -2409
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.private.swiftinterface +44 -25
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftdoc +0 -0
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/Modules/CanvasNative.swiftmodule/x86_64-apple-ios-simulator.swiftinterface +44 -25
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/CanvasNative.framework/_CodeSignature/CodeResources +42 -31
- package/platforms/ios/CanvasNative.xcframework/ios-arm64_x86_64-simulator/dSYMs/CanvasNative.framework.dSYM/Contents/Resources/DWARF/CanvasNative +0 -0
- package/platforms/ios/Podfile +5 -2
- package/platforms/ios/build.xcconfig +3 -3
- package/platforms/ios/src/CanvasModule.h +0 -2
- package/platforms/ios/src/CanvasModule.mm +4 -4
- package/platforms/ios/src/NSOperationQueueWrapper.h +11 -0
- package/platforms/ios/src/NSOperationQueueWrapper.mm +74 -0
- package/platforms/ios/src/cpp/Caches.cpp +35 -0
- package/platforms/ios/src/cpp/Caches.h +190 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.cpp +1593 -0
- package/platforms/ios/src/cpp/CanvasJSIModule.h +16 -34
- package/platforms/ios/src/cpp/Common.h +30 -0
- package/platforms/ios/src/cpp/ConcurrentMap.h +54 -0
- package/platforms/ios/src/cpp/Helpers.h +336 -38
- package/platforms/ios/src/cpp/ImageAssetImpl.cpp +802 -0
- package/platforms/ios/src/cpp/ImageAssetImpl.h +46 -12
- package/platforms/ios/src/cpp/ImageBitmapImpl.cpp +189 -0
- package/platforms/ios/src/cpp/ImageBitmapImpl.h +42 -16
- package/platforms/ios/src/cpp/JSICallback.h +83 -5
- package/platforms/ios/src/cpp/JSIReadFileCallback.h +86 -6
- package/platforms/ios/src/cpp/JSIRuntime.cpp +21 -0
- package/platforms/ios/src/cpp/JSIRuntime.h +7 -0
- package/platforms/ios/src/cpp/ObjectWrapperImpl.h +31 -0
- package/platforms/ios/src/cpp/OneByteStringResource.cpp +55 -0
- package/platforms/ios/src/cpp/OneByteStringResource.h +36 -0
- package/platforms/ios/src/cpp/PerIsolateData.cpp +49 -0
- package/platforms/ios/src/cpp/PerIsolateData.h +54 -0
- package/platforms/ios/src/cpp/RafImpl.cpp +8 -0
- package/platforms/ios/src/cpp/RafImpl.h +11 -8
- package/platforms/ios/src/cpp/TextDecoderImpl.cpp +193 -0
- package/platforms/ios/src/cpp/TextDecoderImpl.h +23 -13
- package/platforms/ios/src/cpp/TextEncoderImpl.cpp +139 -0
- package/platforms/ios/src/cpp/TextEncoderImpl.h +21 -12
- package/platforms/ios/src/cpp/URLImpl.cpp +464 -0
- package/platforms/ios/src/cpp/URLImpl.h +121 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.cpp +71 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.h +29 -13
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.cpp +89 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.h +49 -12
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.cpp +2809 -0
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.h +1331 -21
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.cpp +207 -0
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.h +27 -13
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.cpp +807 -0
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.h +173 -13
- package/platforms/ios/src/cpp/canvas2d/Path2D.cpp +499 -0
- package/platforms/ios/src/cpp/canvas2d/Path2D.h +422 -12
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.cpp +253 -0
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.h +51 -12
- package/platforms/ios/src/cpp/gl.h +57 -7
- package/platforms/ios/src/cpp/gl3stub.c +425 -0
- package/platforms/ios/src/cpp/gl3stub.h +665 -0
- package/platforms/ios/src/cpp/gles3jni.h +37 -0
- package/platforms/ios/src/cpp/include/robin_hood.h +2544 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.cpp +91 -0
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.h +33 -13
- package/platforms/ios/src/cpp/webgl/WebGLBuffer.h +42 -7
- package/platforms/ios/src/cpp/webgl/WebGLFramebuffer.h +47 -11
- package/platforms/ios/src/cpp/webgl/WebGLProgram.h +41 -6
- package/platforms/ios/src/cpp/webgl/WebGLRenderbuffer.h +41 -7
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.cpp +6845 -0
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.h +3217 -388
- package/platforms/ios/src/cpp/webgl/{WebGLRenderingContextBase.mm → WebGLRenderingContextBase.cpp} +18 -17
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContextBase.h +16 -36
- package/platforms/ios/src/cpp/webgl/WebGLShader.h +41 -7
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.cpp +50 -0
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.h +67 -12
- package/platforms/ios/src/cpp/webgl/WebGLTexture.h +41 -7
- package/platforms/ios/src/cpp/webgl/WebGLUniformLocation.h +45 -9
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.cpp +136 -0
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.h +88 -12
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.cpp +35 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.h +26 -6
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.cpp +41 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.h +26 -6
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.cpp +306 -0
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.h +47 -13
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/EXT_shader_texture_lodImpl.h +37 -15
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.h +47 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_fbo_render_mipmap.h +41 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.h +44 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_floatImpl.h +39 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_float_linearImpl.h +37 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.h +42 -6
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_float_linearImpl.h +40 -16
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.cpp +110 -0
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.h +149 -14
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.h +51 -8
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.h +49 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.h +49 -8
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.h +76 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.h +57 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.h +53 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.h +59 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.h +46 -6
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.cpp +38 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.h +157 -14
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.cpp +32 -0
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.h +61 -13
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.cpp +4564 -0
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.h +1790 -342
- package/platforms/ios/src/cpp/webgl2/WebGLQuery.h +41 -4
- package/platforms/ios/src/cpp/webgl2/WebGLSampler.h +42 -3
- package/platforms/ios/src/cpp/webgl2/WebGLSyncImpl.h +45 -11
- package/platforms/ios/src/cpp/webgl2/WebGLTransformFeedback.h +43 -4
- package/platforms/ios/src/cpp/webgl2/WebGLVertexArrayObject.h +44 -4
- package/platforms/ios/src/module.modulemap +1 -0
- package/{pods → src-native/ios}/NativeScript.podspec +12 -25
- package/typings/objc!CanvasNative.d.ts +2038 -0
- package/typings/objc!CanvasNative.js +1 -0
- package/typings/objc!CanvasNative.js.map +1 -0
- package/utils.d.ts +3 -1
- package/utils.js +7 -20
- package/utils.js.map +1 -1
- package/angular/nativescript-canvas-angular.d.ts +0 -5
- package/platforms/ios/src/cpp/CanvasJSIModule.mm +0 -1105
- package/platforms/ios/src/cpp/ImageAssetImpl.mm +0 -417
- package/platforms/ios/src/cpp/ImageBitmapImpl.mm +0 -126
- package/platforms/ios/src/cpp/RafImpl.mm +0 -10
- package/platforms/ios/src/cpp/TextDecoderImpl.mm +0 -97
- package/platforms/ios/src/cpp/TextEncoderImpl.mm +0 -60
- package/platforms/ios/src/cpp/VecMutableBuffer.h +0 -46
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.cc +0 -6156
- package/platforms/ios/src/cpp/canvas-cxx/src/lib.rs.h +0 -2867
- package/platforms/ios/src/cpp/canvas2d/CanvasGradient.mm +0 -42
- package/platforms/ios/src/cpp/canvas2d/CanvasPattern.mm +0 -49
- package/platforms/ios/src/cpp/canvas2d/CanvasRenderingContext2DImpl.mm +0 -1972
- package/platforms/ios/src/cpp/canvas2d/ImageDataImpl.mm +0 -68
- package/platforms/ios/src/cpp/canvas2d/MatrixImpl.mm +0 -149
- package/platforms/ios/src/cpp/canvas2d/Path2D.mm +0 -335
- package/platforms/ios/src/cpp/canvas2d/TextMetricsImpl.mm +0 -68
- package/platforms/ios/src/cpp/rust/cxx.cc +0 -793
- package/platforms/ios/src/cpp/rust/cxx.h +0 -1111
- package/platforms/ios/src/cpp/webgl/WebGLActiveInfoImpl.mm +0 -39
- package/platforms/ios/src/cpp/webgl/WebGLRenderingContext.mm +0 -5958
- package/platforms/ios/src/cpp/webgl/WebGLShaderPrecisionFormatImpl.mm +0 -40
- package/platforms/ios/src/cpp/webgl/extensions/ANGLE_instanced_arraysImpl.mm +0 -108
- package/platforms/ios/src/cpp/webgl/extensions/EXT_blend_minmaxImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/EXT_color_buffer_half_floatImpl.mm +0 -42
- package/platforms/ios/src/cpp/webgl/extensions/EXT_disjoint_timer_queryImpl.mm +0 -295
- package/platforms/ios/src/cpp/webgl/extensions/EXT_sRGBImpl.mm +0 -40
- package/platforms/ios/src/cpp/webgl/extensions/EXT_texture_filter_anisotropicImpl.mm +0 -37
- package/platforms/ios/src/cpp/webgl/extensions/OES_element_index_uintImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/OES_standard_derivativesImpl.mm +0 -31
- package/platforms/ios/src/cpp/webgl/extensions/OES_texture_half_floatImpl.mm +0 -28
- package/platforms/ios/src/cpp/webgl/extensions/OES_vertex_array_objectImpl.mm +0 -127
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_color_buffer_floatImpl.mm +0 -45
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_atcImpl.mm +0 -45
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etc1Impl.mm +0 -31
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_etcImpl.mm +0 -70
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_pvrtcImpl.mm +0 -47
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tcImpl.mm +0 -46
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_compressed_texture_s3tc_srgbImpl.mm +0 -49
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_depth_textureImpl.mm +0 -30
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_draw_buffersImpl.mm +0 -177
- package/platforms/ios/src/cpp/webgl/extensions/WEBGL_lose_contextImpl.mm +0 -64
- package/platforms/ios/src/cpp/webgl2/WebGL2RenderingContext.mm +0 -4556
- package/pods/Headers/jsi/decorator.h +0 -770
- package/pods/Headers/jsi/instrumentation.h +0 -117
- package/pods/Headers/jsi/jsi-inl.h +0 -338
- package/pods/Headers/jsi/jsi.h +0 -1571
- package/pods/Headers/jsi/jsilib.h +0 -59
- package/pods/Headers/jsi/threadsafe.h +0 -79
- package/pods/Headers/v8runtime/HostProxy.h +0 -71
- package/pods/Headers/v8runtime/JSIV8ValueConverter.h +0 -74
- package/pods/Headers/v8runtime/V8PointerValue.h +0 -44
- package/pods/Headers/v8runtime/V8Runtime.h +0 -240
- package/pods/Headers/v8runtime/V8RuntimeConfig.h +0 -26
- package/pods/Headers/v8runtime/V8RuntimeFactory.h +0 -21
- /package/platforms/ios/src/cpp/{OnRafCallback.mm → OnRafCallback.cpp} +0 -0
- /package/{pods → src-native/ios}/Headers/include/APIDesign.md +0 -0
- /package/{pods → src-native/ios}/Headers/include/DEPS +0 -0
- /package/{pods → src-native/ios}/Headers/include/DIR_METADATA +0 -0
- /package/{pods → src-native/ios}/Headers/include/OWNERS +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/DEPS +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/OWNERS +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/README.md +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/allocation.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/common.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/cross-thread-persistent.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/custom-space.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/default-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/ephemeron-pair.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/explicit-management.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/garbage-collected.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap-consistency.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap-state.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap-statistics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/heap.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/api-constants.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/atomic-entry-flag.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/caged-heap-local-data.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/compiler-specific.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/finalizer-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/gc-info.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/logging.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/name-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/persistent-node.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/pointer-policies.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/internal/write-barrier.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/liveness-broker.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/macros.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/member.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/name-provider.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/object-size-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/persistent.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/prefinalizer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/process-heap-statistics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/sentinel-pointer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/source-location.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/testing.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/trace-trait.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/type-traits.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/cppgc/visitor.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/js_protocol-1.2.json +0 -0
- /package/{pods → src-native/ios}/Headers/include/js_protocol-1.3.json +0 -0
- /package/{pods → src-native/ios}/Headers/include/js_protocol.pdl +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/arm64/ffi.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/arm64/ffitarget.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/x86_64/ffi.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi/x86_64/ffitarget.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libffi.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/DEPS +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/libplatform-export.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/libplatform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/libplatform/v8-tracing.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-array-buffer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-callbacks.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-container.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-context.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-cppgc.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-data.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-date.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-debug.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-embedder-heap.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-embedder-state-scope.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-exception.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-extension.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-external.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-fast-api-calls.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-forward.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-function-callback.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-function.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-initialization.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-inspector-protocol.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-inspector.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-internal.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-isolate.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-json.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-local-handle.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-locker.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-maybe.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-memory-span.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-message.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-metrics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-microtask-queue.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-microtask.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-object.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-persistent-handle.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-primitive-object.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-primitive.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-profiler.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-promise.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-proxy.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-regexp.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-script.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-snapshot.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-statistics.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-template.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-traced-handle.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-typed-array.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-unwinder-state.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-unwinder.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-util.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-value-serializer-version.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-value-serializer.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-value.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-version-string.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-version.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-wasm-trap-handler-posix.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-wasm-trap-handler-win.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-wasm.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8-weak-callback-info.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8.h +0 -0
- /package/{pods → src-native/ios}/Headers/include/v8config.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/InspectorServer.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/JsV8InspectorClient.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/base/trace_event/common/trace_event_common.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/base64.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/address-region.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/atomic-utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/atomicops.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/atomicops_internals_atomicword_compat.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/base-export.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/bits.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/build_config.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/compiler-specific.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/export-template.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/flags.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/immediate-crash.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/lazy-instance.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/logging.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/macros.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/memory.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/once.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/optional.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/mutex.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/semaphore.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/v8-time.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/platform/wrappers.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/safe_conversions.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/safe_conversions_impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/template-utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/base/v8-fallthrough.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/common/checks.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/common/globals.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/debug/debug-interface.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/debug/interface-types.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/init/v8.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/custom-preview.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/injected-script.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/inspected-context.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/CSS.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Console.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/DOM.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Debugger.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Forward.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/HeapProfiler.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Log.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Network.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Overlay.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Page.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Profiler.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Protocol.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Runtime.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Schema.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/protocol/Security.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/remote-object-id.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/search-util.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/string-16.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/string-util.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console-message.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-console.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-css-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-id.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger-script.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-debugger.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-dom-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-heap-profiler-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-inspector-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-inspector-session-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-log-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-network-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-ns-debugger-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-overlay-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-page-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-profiler-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-regex.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-runtime-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-schema-agent-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-stack-trace-impl.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-string-conversions.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/v8-value-utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/inspector/value-mirror.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/libplatform/default-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/logging/tracing-flags.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/numbers/conversions.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/tracing/trace-event.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/utils/allocation.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/src/utils/vector.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/cbor.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/dispatch.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/error_support.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/export.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/find_by_first.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/frontend_channel.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/glue.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/json.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/json_platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/maybe.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/parser_handler.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/protocol_core.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/serializable.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/serializer_traits.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/span.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/third_party/inspector_protocol/crdtp/status.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/utils.h +0 -0
- /package/{pods → src-native/ios}/Headers/inspector/v8-inspector-platform.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ArgConverter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ArrayAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Caches.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ClassBuilder.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Common.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ConcurrentMap.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ConcurrentQueue.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Console.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Constants.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/DataWrapper.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/DictionaryAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ExtVector.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/FFICall.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/FastEnumerationAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/FunctionReference.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Helpers.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/InlineFunctions.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Interop.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/KnownUnknownClassPair.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Metadata.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/MetadataBuilder.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/MetadataInlines.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ModuleInternal.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/NSDataAdapter.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/NativeScriptException.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/ObjectManager.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/OneByteStringResource.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Pointer.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/PromiseProxy.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Reference.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Runtime.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/RuntimeConfig.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SetTimeout.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SimpleAllocator.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/StringHasher.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SymbolIterator.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/SymbolLoader.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/TNSDerivedClass.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/TSHelpers.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Tasks.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/UnmanagedType.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/WeakRef.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/Worker.h +0 -0
- /package/{pods → src-native/ios}/Headers/runtime/robin_hood.h +0 -0
|
@@ -1,59 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#pragma once
|
|
9
|
-
|
|
10
|
-
#include "jsi/jsi.h"
|
|
11
|
-
|
|
12
|
-
namespace facebook {
|
|
13
|
-
namespace jsi {
|
|
14
|
-
|
|
15
|
-
class FileBuffer : public Buffer {
|
|
16
|
-
public:
|
|
17
|
-
FileBuffer(const std::string& path);
|
|
18
|
-
~FileBuffer() override;
|
|
19
|
-
|
|
20
|
-
size_t size() const override {
|
|
21
|
-
return size_;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
const uint8_t* data() const override {
|
|
25
|
-
return data_;
|
|
26
|
-
}
|
|
27
|
-
|
|
28
|
-
private:
|
|
29
|
-
size_t size_;
|
|
30
|
-
uint8_t* data_;
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
// A trivial implementation of PreparedJavaScript that simply stores the source
|
|
34
|
-
// buffer and URL.
|
|
35
|
-
class SourceJavaScriptPreparation final : public jsi::PreparedJavaScript,
|
|
36
|
-
public jsi::Buffer {
|
|
37
|
-
std::shared_ptr<const jsi::Buffer> buf_;
|
|
38
|
-
std::string sourceURL_;
|
|
39
|
-
|
|
40
|
-
public:
|
|
41
|
-
SourceJavaScriptPreparation(
|
|
42
|
-
std::shared_ptr<const jsi::Buffer> buf,
|
|
43
|
-
std::string sourceURL)
|
|
44
|
-
: buf_(std::move(buf)), sourceURL_(std::move(sourceURL)) {}
|
|
45
|
-
|
|
46
|
-
const std::string& sourceURL() const {
|
|
47
|
-
return sourceURL_;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
size_t size() const override {
|
|
51
|
-
return buf_->size();
|
|
52
|
-
}
|
|
53
|
-
const uint8_t* data() const override {
|
|
54
|
-
return buf_->data();
|
|
55
|
-
}
|
|
56
|
-
};
|
|
57
|
-
|
|
58
|
-
} // namespace jsi
|
|
59
|
-
} // namespace facebook
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Meta Platforms, Inc. and affiliates.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#pragma once
|
|
9
|
-
|
|
10
|
-
#include <mutex>
|
|
11
|
-
|
|
12
|
-
#include "jsi/decorator.h"
|
|
13
|
-
#include "jsi/jsi.h"
|
|
14
|
-
|
|
15
|
-
namespace facebook {
|
|
16
|
-
namespace jsi {
|
|
17
|
-
|
|
18
|
-
class ThreadSafeRuntime : public Runtime {
|
|
19
|
-
public:
|
|
20
|
-
virtual void lock() const = 0;
|
|
21
|
-
virtual void unlock() const = 0;
|
|
22
|
-
virtual Runtime& getUnsafeRuntime() = 0;
|
|
23
|
-
};
|
|
24
|
-
|
|
25
|
-
namespace detail {
|
|
26
|
-
|
|
27
|
-
template <typename R, typename L>
|
|
28
|
-
struct WithLock {
|
|
29
|
-
L lock;
|
|
30
|
-
WithLock(R& r) : lock(r) {}
|
|
31
|
-
void before() {
|
|
32
|
-
lock.lock();
|
|
33
|
-
}
|
|
34
|
-
void after() {
|
|
35
|
-
lock.unlock();
|
|
36
|
-
}
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
// The actual implementation of a given ThreadSafeRuntime. It's parameterized
|
|
40
|
-
// by:
|
|
41
|
-
//
|
|
42
|
-
// - R: The actual Runtime type that this wraps
|
|
43
|
-
// - L: A lock type that has three members:
|
|
44
|
-
// - L(R& r) // ctor
|
|
45
|
-
// - void lock()
|
|
46
|
-
// - void unlock()
|
|
47
|
-
template <typename R, typename L>
|
|
48
|
-
class ThreadSafeRuntimeImpl final
|
|
49
|
-
: public WithRuntimeDecorator<WithLock<R, L>, R, ThreadSafeRuntime> {
|
|
50
|
-
public:
|
|
51
|
-
template <typename... Args>
|
|
52
|
-
ThreadSafeRuntimeImpl(Args&&... args)
|
|
53
|
-
: WithRuntimeDecorator<WithLock<R, L>, R, ThreadSafeRuntime>(
|
|
54
|
-
unsafe_,
|
|
55
|
-
lock_),
|
|
56
|
-
unsafe_(std::forward<Args>(args)...),
|
|
57
|
-
lock_(unsafe_) {}
|
|
58
|
-
|
|
59
|
-
R& getUnsafeRuntime() override {
|
|
60
|
-
return WithRuntimeDecorator<WithLock<R, L>, R, ThreadSafeRuntime>::plain();
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
void lock() const override {
|
|
64
|
-
lock_.before();
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
void unlock() const override {
|
|
68
|
-
lock_.after();
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
private:
|
|
72
|
-
R unsafe_;
|
|
73
|
-
mutable WithLock<R, L> lock_;
|
|
74
|
-
};
|
|
75
|
-
|
|
76
|
-
} // namespace detail
|
|
77
|
-
|
|
78
|
-
} // namespace jsi
|
|
79
|
-
} // namespace facebook
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Kudo Chien.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#pragma once
|
|
9
|
-
|
|
10
|
-
#include "V8Runtime.h"
|
|
11
|
-
#include "jsi/jsi.h"
|
|
12
|
-
#include "v8.h"
|
|
13
|
-
|
|
14
|
-
namespace rnv8 {
|
|
15
|
-
|
|
16
|
-
class HostObjectProxy {
|
|
17
|
-
public:
|
|
18
|
-
HostObjectProxy(
|
|
19
|
-
V8Runtime &runtime,
|
|
20
|
-
v8::Isolate *isolate,
|
|
21
|
-
std::shared_ptr<facebook::jsi::HostObject> hostObject);
|
|
22
|
-
|
|
23
|
-
void BindFinalizer(const v8::Local<v8::Object> &object);
|
|
24
|
-
|
|
25
|
-
std::shared_ptr<facebook::jsi::HostObject> GetHostObject();
|
|
26
|
-
|
|
27
|
-
public:
|
|
28
|
-
static void Getter(
|
|
29
|
-
v8::Local<v8::Name> property,
|
|
30
|
-
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
31
|
-
|
|
32
|
-
static void Setter(
|
|
33
|
-
v8::Local<v8::Name> property,
|
|
34
|
-
v8::Local<v8::Value> value,
|
|
35
|
-
const v8::PropertyCallbackInfo<v8::Value> &info);
|
|
36
|
-
|
|
37
|
-
static void Enumerator(const v8::PropertyCallbackInfo<v8::Array> &info);
|
|
38
|
-
|
|
39
|
-
static void Finalizer(const v8::WeakCallbackInfo<HostObjectProxy> &data);
|
|
40
|
-
|
|
41
|
-
private:
|
|
42
|
-
V8Runtime &runtime_;
|
|
43
|
-
v8::Isolate *isolate_;
|
|
44
|
-
std::shared_ptr<facebook::jsi::HostObject> hostObject_;
|
|
45
|
-
v8::Global<v8::Object> weakHandle_;
|
|
46
|
-
};
|
|
47
|
-
|
|
48
|
-
class HostFunctionProxy {
|
|
49
|
-
public:
|
|
50
|
-
HostFunctionProxy(
|
|
51
|
-
V8Runtime &runtime,
|
|
52
|
-
v8::Isolate *isolate,
|
|
53
|
-
facebook::jsi::HostFunctionType &&hostFunction);
|
|
54
|
-
|
|
55
|
-
void BindFinalizer(const v8::Local<v8::Object> &object);
|
|
56
|
-
|
|
57
|
-
facebook::jsi::HostFunctionType &GetHostFunction();
|
|
58
|
-
|
|
59
|
-
public:
|
|
60
|
-
static void Finalizer(const v8::WeakCallbackInfo<HostFunctionProxy> &data);
|
|
61
|
-
|
|
62
|
-
static void FunctionCallback(const v8::FunctionCallbackInfo<v8::Value> &info);
|
|
63
|
-
|
|
64
|
-
private:
|
|
65
|
-
V8Runtime &runtime_;
|
|
66
|
-
v8::Isolate *isolate_;
|
|
67
|
-
facebook::jsi::HostFunctionType hostFunction_;
|
|
68
|
-
v8::Global<v8::Object> weakHandle_;
|
|
69
|
-
};
|
|
70
|
-
|
|
71
|
-
} // namespace rnv8
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Kudo Chien.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#pragma once
|
|
9
|
-
|
|
10
|
-
#include "V8Runtime.h"
|
|
11
|
-
#include "jsi/jsi.h"
|
|
12
|
-
#include "v8.h"
|
|
13
|
-
|
|
14
|
-
namespace rnv8 {
|
|
15
|
-
|
|
16
|
-
class JSIV8ValueConverter {
|
|
17
|
-
private:
|
|
18
|
-
JSIV8ValueConverter() = delete;
|
|
19
|
-
~JSIV8ValueConverter() = delete;
|
|
20
|
-
JSIV8ValueConverter(JSIV8ValueConverter &&) = delete;
|
|
21
|
-
|
|
22
|
-
public:
|
|
23
|
-
static facebook::jsi::Value ToJSIValue(
|
|
24
|
-
v8::Isolate *isolate,
|
|
25
|
-
const v8::Local<v8::Value> &value);
|
|
26
|
-
|
|
27
|
-
static v8::Local<v8::Value> ToV8Value(
|
|
28
|
-
const V8Runtime &runtime,
|
|
29
|
-
const facebook::jsi::Value &value);
|
|
30
|
-
|
|
31
|
-
static v8::Local<v8::String> ToV8String(
|
|
32
|
-
const V8Runtime &runtime,
|
|
33
|
-
const facebook::jsi::String &string);
|
|
34
|
-
|
|
35
|
-
static v8::Local<v8::String> ToV8String(
|
|
36
|
-
const V8Runtime &runtime,
|
|
37
|
-
const facebook::jsi::PropNameID &propName);
|
|
38
|
-
|
|
39
|
-
static v8::MaybeLocal<v8::String> ToV8String(
|
|
40
|
-
const V8Runtime &runtime,
|
|
41
|
-
const std::shared_ptr<const facebook::jsi::Buffer> &buffer);
|
|
42
|
-
|
|
43
|
-
static v8::Local<v8::Symbol> ToV8Symbol(
|
|
44
|
-
const V8Runtime &runtime,
|
|
45
|
-
const facebook::jsi::Symbol &symbol);
|
|
46
|
-
|
|
47
|
-
static v8::Local<v8::Object> ToV8Object(
|
|
48
|
-
const V8Runtime &runtime,
|
|
49
|
-
const facebook::jsi::Object &object);
|
|
50
|
-
|
|
51
|
-
static v8::Local<v8::BigInt> ToV8BigInt(
|
|
52
|
-
const V8Runtime &runtime,
|
|
53
|
-
const facebook::jsi::BigInt &bigInt);
|
|
54
|
-
|
|
55
|
-
static v8::Local<v8::Array> ToV8Array(
|
|
56
|
-
const V8Runtime &runtime,
|
|
57
|
-
const facebook::jsi::Array &array);
|
|
58
|
-
|
|
59
|
-
static v8::Local<v8::Function> ToV8Function(
|
|
60
|
-
const V8Runtime &runtime,
|
|
61
|
-
const facebook::jsi::Function &function);
|
|
62
|
-
|
|
63
|
-
static facebook::jsi::PropNameID ToJSIPropNameID(
|
|
64
|
-
const V8Runtime &runtime,
|
|
65
|
-
const v8::Local<v8::Name> &property);
|
|
66
|
-
|
|
67
|
-
static std::string ToSTLString(const v8::String::Utf8Value &string);
|
|
68
|
-
|
|
69
|
-
static std::string ToSTLString(
|
|
70
|
-
v8::Isolate *isolate,
|
|
71
|
-
const v8::Local<v8::Value> &string);
|
|
72
|
-
};
|
|
73
|
-
|
|
74
|
-
} // namespace rnv8
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Kudo Chien.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#pragma once
|
|
9
|
-
|
|
10
|
-
#include "V8Runtime.h"
|
|
11
|
-
#include "jsi/jsi.h"
|
|
12
|
-
#include "v8.h"
|
|
13
|
-
|
|
14
|
-
namespace rnv8 {
|
|
15
|
-
|
|
16
|
-
class V8PointerValue final : public V8Runtime::PointerValue {
|
|
17
|
-
public:
|
|
18
|
-
V8PointerValue(v8::Isolate *isolate, const v8::Local<v8::Value> &value);
|
|
19
|
-
|
|
20
|
-
// Passing Global value directly
|
|
21
|
-
V8PointerValue(v8::Isolate *isolate, v8::Global<v8::Value> &&value);
|
|
22
|
-
|
|
23
|
-
~V8PointerValue() override;
|
|
24
|
-
|
|
25
|
-
v8::Local<v8::Value> Get(v8::Isolate *isolate) const;
|
|
26
|
-
|
|
27
|
-
public:
|
|
28
|
-
static V8PointerValue *
|
|
29
|
-
createFromOneByte(v8::Isolate *isolate, const char *str, size_t length);
|
|
30
|
-
|
|
31
|
-
static V8PointerValue *
|
|
32
|
-
createFromUtf8(v8::Isolate *isolate, const uint8_t *str, size_t length);
|
|
33
|
-
|
|
34
|
-
private:
|
|
35
|
-
void invalidate() override;
|
|
36
|
-
|
|
37
|
-
private:
|
|
38
|
-
friend class JSIV8ValueConverter;
|
|
39
|
-
friend class V8Runtime;
|
|
40
|
-
v8::Isolate *isolate_;
|
|
41
|
-
v8::Global<v8::Value> value_;
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
} // namespace rnv8
|
|
@@ -1,240 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Kudo Chien.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#pragma once
|
|
9
|
-
|
|
10
|
-
#include "jsi/jsi.h"
|
|
11
|
-
#include "libplatform/libplatform.h"
|
|
12
|
-
#include "v8.h"
|
|
13
|
-
|
|
14
|
-
namespace rnv8 {
|
|
15
|
-
|
|
16
|
-
class V8Runtime;
|
|
17
|
-
class V8PointerValue;
|
|
18
|
-
|
|
19
|
-
class V8Runtime : public facebook::jsi::Runtime {
|
|
20
|
-
public:
|
|
21
|
-
V8Runtime();
|
|
22
|
-
|
|
23
|
-
//V8Runtime(const V8Runtime *v8Runtime);
|
|
24
|
-
|
|
25
|
-
~V8Runtime();
|
|
26
|
-
|
|
27
|
-
// Calling this function when the platform main runloop is idle
|
|
28
|
-
void OnMainLoopIdle();
|
|
29
|
-
|
|
30
|
-
private:
|
|
31
|
-
v8::Local<v8::Context> CreateGlobalContext(v8::Isolate *isolate);
|
|
32
|
-
v8::Isolate *GetIsolate();
|
|
33
|
-
facebook::jsi::Value ExecuteScript(
|
|
34
|
-
v8::Isolate *isolate,
|
|
35
|
-
const v8::Local<v8::String> &script,
|
|
36
|
-
const std::string &sourceURL);
|
|
37
|
-
void ReportException(v8::Isolate *isolate, v8::TryCatch *tryCatch) const;
|
|
38
|
-
|
|
39
|
-
std::unique_ptr<v8::ScriptCompiler::CachedData> LoadCodeCacheIfNeeded(
|
|
40
|
-
const std::string &codecachePath);
|
|
41
|
-
bool SaveCodeCacheIfNeeded(
|
|
42
|
-
const v8::Local<v8::Script> &script,
|
|
43
|
-
const std::string &codecachePath,
|
|
44
|
-
v8::ScriptCompiler::CachedData *cachedData);
|
|
45
|
-
std::unique_ptr<v8::ScriptCompiler::Source> UseFakeSourceIfNeeded(
|
|
46
|
-
const v8::ScriptOrigin &origin,
|
|
47
|
-
v8::ScriptCompiler::CachedData *cachedData);
|
|
48
|
-
|
|
49
|
-
static v8::Platform *GetPlatform();
|
|
50
|
-
|
|
51
|
-
//
|
|
52
|
-
// facebook::jsi::Runtime implementations
|
|
53
|
-
//
|
|
54
|
-
public:
|
|
55
|
-
facebook::jsi::Value evaluateJavaScript(
|
|
56
|
-
const std::shared_ptr<const facebook::jsi::Buffer> &buffer,
|
|
57
|
-
const std::string &sourceURL) override;
|
|
58
|
-
|
|
59
|
-
std::shared_ptr<const facebook::jsi::PreparedJavaScript> prepareJavaScript(
|
|
60
|
-
const std::shared_ptr<const facebook::jsi::Buffer> &buffer,
|
|
61
|
-
std::string sourceURL) override;
|
|
62
|
-
facebook::jsi::Value evaluatePreparedJavaScript(
|
|
63
|
-
const std::shared_ptr<const facebook::jsi::PreparedJavaScript> &js)
|
|
64
|
-
override;
|
|
65
|
-
|
|
66
|
-
bool drainMicrotasks(int maxMicrotasksHint = -1) override;
|
|
67
|
-
|
|
68
|
-
facebook::jsi::Object global() override;
|
|
69
|
-
std::string description() override;
|
|
70
|
-
bool isInspectable() override;
|
|
71
|
-
|
|
72
|
-
protected:
|
|
73
|
-
PointerValue *cloneSymbol(const Runtime::PointerValue *pv) override;
|
|
74
|
-
PointerValue *cloneBigInt(const Runtime::PointerValue *pv) override;
|
|
75
|
-
PointerValue *cloneString(const Runtime::PointerValue *pv) override;
|
|
76
|
-
PointerValue *cloneObject(const Runtime::PointerValue *pv) override;
|
|
77
|
-
PointerValue *clonePropNameID(const Runtime::PointerValue *pv) override;
|
|
78
|
-
|
|
79
|
-
facebook::jsi::PropNameID createPropNameIDFromAscii(
|
|
80
|
-
const char *str,
|
|
81
|
-
size_t length) override;
|
|
82
|
-
facebook::jsi::PropNameID createPropNameIDFromUtf8(
|
|
83
|
-
const uint8_t *utf8,
|
|
84
|
-
size_t length) override;
|
|
85
|
-
facebook::jsi::PropNameID createPropNameIDFromString(
|
|
86
|
-
const facebook::jsi::String &str) override;
|
|
87
|
-
|
|
88
|
-
facebook::jsi::PropNameID createPropNameIDFromSymbol(
|
|
89
|
-
const facebook::jsi::Symbol &sym) override;
|
|
90
|
-
|
|
91
|
-
std::string utf8(const facebook::jsi::PropNameID &) override;
|
|
92
|
-
bool compare(
|
|
93
|
-
const facebook::jsi::PropNameID &,
|
|
94
|
-
const facebook::jsi::PropNameID &) override;
|
|
95
|
-
|
|
96
|
-
std::string symbolToString(const facebook::jsi::Symbol &) override;
|
|
97
|
-
|
|
98
|
-
facebook::jsi::String createStringFromAscii(const char *str, size_t length)
|
|
99
|
-
override;
|
|
100
|
-
facebook::jsi::String createStringFromUtf8(const uint8_t *utf8, size_t length)
|
|
101
|
-
override;
|
|
102
|
-
std::string utf8(const facebook::jsi::String &) override;
|
|
103
|
-
|
|
104
|
-
facebook::jsi::Object createObject() override;
|
|
105
|
-
facebook::jsi::Object createObject(
|
|
106
|
-
std::shared_ptr<facebook::jsi::HostObject> hostObject) override;
|
|
107
|
-
|
|
108
|
-
facebook::jsi::ArrayBuffer createArrayBuffer(
|
|
109
|
-
std::shared_ptr<facebook::jsi::MutableBuffer> buffer) override;
|
|
110
|
-
|
|
111
|
-
std::shared_ptr<facebook::jsi::HostObject> getHostObject(
|
|
112
|
-
const facebook::jsi::Object &) override;
|
|
113
|
-
facebook::jsi::HostFunctionType &getHostFunction(
|
|
114
|
-
const facebook::jsi::Function &) override;
|
|
115
|
-
|
|
116
|
-
facebook::jsi::Value getProperty(
|
|
117
|
-
const facebook::jsi::Object &,
|
|
118
|
-
const facebook::jsi::PropNameID &name) override;
|
|
119
|
-
facebook::jsi::Value getProperty(
|
|
120
|
-
const facebook::jsi::Object &,
|
|
121
|
-
const facebook::jsi::String &name) override;
|
|
122
|
-
bool hasProperty(
|
|
123
|
-
const facebook::jsi::Object &,
|
|
124
|
-
const facebook::jsi::PropNameID &name) override;
|
|
125
|
-
bool hasProperty(
|
|
126
|
-
const facebook::jsi::Object &,
|
|
127
|
-
const facebook::jsi::String &name) override;
|
|
128
|
-
void setPropertyValue(
|
|
129
|
-
facebook::jsi::Object &,
|
|
130
|
-
const facebook::jsi::PropNameID &name,
|
|
131
|
-
const facebook::jsi::Value &value) override;
|
|
132
|
-
void setPropertyValue(
|
|
133
|
-
facebook::jsi::Object &,
|
|
134
|
-
const facebook::jsi::String &name,
|
|
135
|
-
const facebook::jsi::Value &value) override;
|
|
136
|
-
|
|
137
|
-
bool isArray(const facebook::jsi::Object &) const override;
|
|
138
|
-
bool isArrayBuffer(const facebook::jsi::Object &) const override;
|
|
139
|
-
bool isArrayBufferView(const facebook::jsi::Object &) const override;
|
|
140
|
-
bool isTypedArray(const facebook::jsi::Object &) const override;
|
|
141
|
-
bool isInt8Array(const facebook::jsi::Object &) const override;
|
|
142
|
-
bool isUint8Array(const facebook::jsi::Object &) const override;
|
|
143
|
-
bool isUint8ClampedArray(const facebook::jsi::Object &) const override;
|
|
144
|
-
bool isInt16Array(const facebook::jsi::Object &) const override;
|
|
145
|
-
bool isUint16Array(const facebook::jsi::Object &) const override;
|
|
146
|
-
bool isInt32Array(const facebook::jsi::Object &) const override;
|
|
147
|
-
bool isUint32Array(const facebook::jsi::Object &) const override;
|
|
148
|
-
bool isFloat32Array(const facebook::jsi::Object &) const override;
|
|
149
|
-
bool isBigInt64Array(const facebook::jsi::Object &) const override;
|
|
150
|
-
bool isBigUint64Array(const facebook::jsi::Object &) const override;
|
|
151
|
-
bool isFloat64Array(const facebook::jsi::Object &) const override;
|
|
152
|
-
|
|
153
|
-
bool isFunction(const facebook::jsi::Object &) const override;
|
|
154
|
-
bool isHostObject(const facebook::jsi::Object &) const override;
|
|
155
|
-
bool isHostFunction(const facebook::jsi::Function &) const override;
|
|
156
|
-
facebook::jsi::Array getPropertyNames(const facebook::jsi::Object &) override;
|
|
157
|
-
|
|
158
|
-
facebook::jsi::WeakObject createWeakObject(
|
|
159
|
-
const facebook::jsi::Object &) override;
|
|
160
|
-
facebook::jsi::Value lockWeakObject(facebook::jsi::WeakObject &) override;
|
|
161
|
-
|
|
162
|
-
facebook::jsi::Array createArray(size_t length) override;
|
|
163
|
-
size_t size(const facebook::jsi::Array &) override;
|
|
164
|
-
size_t size(const facebook::jsi::ArrayBuffer &) override;
|
|
165
|
-
size_t size(const facebook::jsi::TypedArray &) override;
|
|
166
|
-
size_t offset(const facebook::jsi::TypedArray &) override;
|
|
167
|
-
uint8_t *data(const facebook::jsi::ArrayBuffer &) override;
|
|
168
|
-
uint8_t *data(const facebook::jsi::TypedArray &) override;
|
|
169
|
-
facebook::jsi::Value getValueAtIndex(const facebook::jsi::Array &, size_t i)
|
|
170
|
-
override;
|
|
171
|
-
void setValueAtIndexImpl(
|
|
172
|
-
facebook::jsi::Array &,
|
|
173
|
-
size_t i,
|
|
174
|
-
const facebook::jsi::Value &value) override;
|
|
175
|
-
|
|
176
|
-
facebook::jsi::Function createFunctionFromHostFunction(
|
|
177
|
-
const facebook::jsi::PropNameID &name,
|
|
178
|
-
unsigned int paramCount,
|
|
179
|
-
facebook::jsi::HostFunctionType func) override;
|
|
180
|
-
facebook::jsi::Value call(
|
|
181
|
-
const facebook::jsi::Function &,
|
|
182
|
-
const facebook::jsi::Value &jsThis,
|
|
183
|
-
const facebook::jsi::Value *args,
|
|
184
|
-
size_t count) override;
|
|
185
|
-
facebook::jsi::Value callAsConstructor(
|
|
186
|
-
const facebook::jsi::Function &,
|
|
187
|
-
const facebook::jsi::Value *args,
|
|
188
|
-
size_t count) override;
|
|
189
|
-
|
|
190
|
-
bool strictEquals(
|
|
191
|
-
const facebook::jsi::Symbol &a,
|
|
192
|
-
const facebook::jsi::Symbol &b) const override;
|
|
193
|
-
|
|
194
|
-
bool strictEquals(
|
|
195
|
-
const facebook::jsi::BigInt &a,
|
|
196
|
-
const facebook::jsi::BigInt &b) const override;
|
|
197
|
-
|
|
198
|
-
bool strictEquals(
|
|
199
|
-
const facebook::jsi::String &a,
|
|
200
|
-
const facebook::jsi::String &b) const override;
|
|
201
|
-
bool strictEquals(
|
|
202
|
-
const facebook::jsi::Object &a,
|
|
203
|
-
const facebook::jsi::Object &b) const override;
|
|
204
|
-
|
|
205
|
-
bool instanceOf(
|
|
206
|
-
const facebook::jsi::Object &o,
|
|
207
|
-
const facebook::jsi::Function &f) override;
|
|
208
|
-
|
|
209
|
-
uint64_t uint64Value(const facebook::jsi::BigInt&, bool* lossless = nullptr) const override;
|
|
210
|
-
|
|
211
|
-
int64_t int64Value(const facebook::jsi::BigInt&, bool* lossless = nullptr) const override;
|
|
212
|
-
|
|
213
|
-
private:
|
|
214
|
-
friend class V8PointerValue;
|
|
215
|
-
friend class JSIV8ValueConverter;
|
|
216
|
-
|
|
217
|
-
//
|
|
218
|
-
// JS function/object handler callbacks
|
|
219
|
-
//
|
|
220
|
-
private:
|
|
221
|
-
// For `global._v8runtime()`
|
|
222
|
-
static void GetRuntimeInfo(const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
223
|
-
|
|
224
|
-
// For `HostFunctionContainer()`, will call underlying HostFunction
|
|
225
|
-
static void OnHostFuncionContainerCallback(
|
|
226
|
-
const v8::FunctionCallbackInfo<v8::Value> &args);
|
|
227
|
-
|
|
228
|
-
private:
|
|
229
|
-
static std::unique_ptr<v8::Platform> s_platform;
|
|
230
|
-
|
|
231
|
-
private:
|
|
232
|
-
std::unique_ptr<v8::ArrayBuffer::Allocator> arrayBufferAllocator_;
|
|
233
|
-
std::unique_ptr<v8::StartupData> snapshotBlob_;
|
|
234
|
-
v8::Isolate *isolate_;
|
|
235
|
-
v8::Global<v8::Context> context_;
|
|
236
|
-
bool isSharedRuntime_ = false;
|
|
237
|
-
//std::shared_ptr<facebook::react::MessageQueueThread> jsQueue_;
|
|
238
|
-
};
|
|
239
|
-
|
|
240
|
-
} // namespace rnv8
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Kudo Chien.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#pragma once
|
|
9
|
-
|
|
10
|
-
#include <string>
|
|
11
|
-
#include <vector>
|
|
12
|
-
|
|
13
|
-
namespace rnv8 {
|
|
14
|
-
|
|
15
|
-
struct V8RuntimeConfig {
|
|
16
|
-
V8RuntimeConfig() {}
|
|
17
|
-
~V8RuntimeConfig() = default;
|
|
18
|
-
|
|
19
|
-
V8RuntimeConfig(const V8RuntimeConfig &rhs) = delete;
|
|
20
|
-
V8RuntimeConfig &operator=(const V8RuntimeConfig &rhs) = delete;
|
|
21
|
-
|
|
22
|
-
V8RuntimeConfig(V8RuntimeConfig &&rhs) = default;
|
|
23
|
-
V8RuntimeConfig &operator=(V8RuntimeConfig &&rhs) = default;
|
|
24
|
-
};
|
|
25
|
-
|
|
26
|
-
} // namespace rnv8
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) Kudo Chien.
|
|
3
|
-
*
|
|
4
|
-
* This source code is licensed under the MIT license found in the
|
|
5
|
-
* LICENSE file in the root directory of this source tree.
|
|
6
|
-
*/
|
|
7
|
-
|
|
8
|
-
#pragma once
|
|
9
|
-
|
|
10
|
-
#include <memory.h>
|
|
11
|
-
#include "jsi/jsi.h"
|
|
12
|
-
|
|
13
|
-
namespace rnv8 {
|
|
14
|
-
|
|
15
|
-
std::unique_ptr<facebook::jsi::Runtime> createV8Runtime();
|
|
16
|
-
|
|
17
|
-
//std::unique_ptr<facebook::jsi::Runtime> createSharedV8Runtime(
|
|
18
|
-
// const facebook::jsi::Runtime *sharedRuntime,
|
|
19
|
-
// std::unique_ptr<V8RuntimeConfig> config);
|
|
20
|
-
|
|
21
|
-
} // namespace rnv8
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|