/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/ |
H A D | ark_js_value.cpp | 23 const EcmaVM* vm = pandaRuntime->GetEcmaVm(); in ToInt32() 35 const EcmaVM* vm = pandaRuntime->GetEcmaVm(); in ToDouble() 52 const EcmaVM* vm = pandaRuntime->GetEcmaVm(); in ToString() 69 LocalScope scope(pandaRuntime->GetEcmaVm()); in ToBoolean() 71 return value_->BooleaValue(pandaRuntime->GetEcmaVm()); in ToBoolean() 105 return !value_.IsEmpty() && value_->IsString(pandaRuntime->GetEcmaVm()); in IsString() 117 return !value_.IsEmpty() && value_->IsObject(pandaRuntime->GetEcmaVm()); in IsObject() 123 return !value_.IsEmpty() && value_->IsArray(pandaRuntime->GetEcmaVm()); in IsArray() 129 return !value_.IsEmpty() && value_->IsFunction(pandaRuntime->GetEcmaVm()); in IsFunction() 143 const EcmaVM* vm = pandaRuntime->GetEcmaVm(); in Call() [all...] |
H A D | ark_js_value.h | 40 ArkJSValue(const shared_ptr<ArkJSRuntime> &runtime, Local<JSValueRef> value) : value_(runtime->GetEcmaVm(), value) in ArkJSValue() 92 return value_.ToLocal(runtime->GetEcmaVm()); in GetValue() 97 value_ = Global<JSValueRef>(runtime->GetEcmaVm(), value); in SetValue()
|
H A D | jsi_xcomponent_bridge.cpp | 115 LocalScope scope(pandaRuntime->GetEcmaVm()); in HandleContext() 116 Local<ObjectRef> obj = arkObjectRef->ToObject(pandaRuntime->GetEcmaVm()); in HandleContext()
|
H A D | js_runtime.h | 91 virtual const panda::EcmaVM* GetEcmaVm() const { return nullptr; } in GetEcmaVm() function in OHOS::Ace::Framework::JsRuntime
|
/foundation/arkui/napi/native_engine/ |
H A D | native_api.cpp | 74 explicit HandleScopeWrapper(NativeEngine* engine) : scope_(engine->GetEcmaVm()) {} in HandleScopeWrapper() 83 : scope_(engine->GetEcmaVm()), escapeCalled_(false) {} in EscapableHandleScopeWrapper() 141 auto vm = reinterpret_cast<NativeEngine*>(env)->GetEcmaVm(); in napi_get_undefined() 153 auto vm = reinterpret_cast<NativeEngine*>(env)->GetEcmaVm(); in napi_get_null() 165 auto vm = reinterpret_cast<NativeEngine*>(env)->GetEcmaVm(); in napi_get_global() 177 auto vm = reinterpret_cast<NativeEngine*>(env)->GetEcmaVm(); in napi_get_boolean() 193 auto vm = reinterpret_cast<NativeEngine*>(env)->GetEcmaVm(); in napi_create_object() 222 auto vm = reinterpret_cast<NativeEngine*>(env)->GetEcmaVm(); in napi_create_object_with_properties() 247 auto vm = reinterpret_cast<NativeEngine*>(env)->GetEcmaVm(); in napi_create_object_with_named_properties() 260 auto vm = reinterpret_cast<NativeEngine*>(env)->GetEcmaVm(); in napi_create_array() [all...] |
H A D | native_async_hook_context.h | 41 bool isExternalResource) : env_(env), resource_(env->GetEcmaVm(), resourceObject) in NativeAsyncHookContext() 96 auto ecmaVm = env_->GetEcmaVm(); in EnsureReference() 156 auto vm = engine->GetEcmaVm(); in InternalMakeCallback() 199 auto vm = engine->GetEcmaVm(); in MakeCallback()
|
H A D | native_sendable.cpp | 57 auto vm = engine->GetEcmaVm(); in InitSendablePropertiesInfo() 113 auto vm = const_cast<EcmaVM*>(engine->GetEcmaVm()); in NapiNativeCreateSendableFunction() 141 auto vm = engine->GetEcmaVm(); in NapiDefineSendabledProperty()
|
H A D | native_engine.cpp | 333 auto vm = GetEcmaVm(); in CreateAsyncWork() 414 auto vm = GetEcmaVm(); in EncodeToUtf8() 481 auto vm = GetEcmaVm(); in EncodeToChinese() 839 EcmaVM* vm = const_cast<EcmaVM*>(GetEcmaVm()); in RunScriptForAbc() 888 auto vm = GetEcmaVm(); in RunScriptInRestrictedThread() 1061 auto vm = GetEcmaVm(); in ThrowException()
|
H A D | native_node_api.cpp | 99 auto ecmaVm = reinterpret_cast<NativeEngine*>(env)->GetEcmaVm(); in napi_fatal_exception() 123 auto ecmaVm = engine->GetEcmaVm(); in napi_create_async_work() 496 auto ecmaVm = reinterpret_cast<NativeEngine*>(env)->GetEcmaVm(); in napi_async_init() 608 auto vm = engine->GetEcmaVm(); in napi_make_callback()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/jsi/ |
H A D | jsi_object_template.cpp | 23 auto vm = runtime->GetEcmaVm(); in JsiObjectTemplate() 24 proto_ = panda::CopyableGlobal<panda::ObjectRef>(runtime->GetEcmaVm(), panda::ObjectRef::New(vm)); in JsiObjectTemplate() 35 return panda::ObjectRef::New(runtime->GetEcmaVm()); in NewInstance()
|
H A D | jsi_types.cpp | 146 return JsiRef<JsiValue>::Make(panda::JSValueRef::Undefined(runtime->GetEcmaVm())); in Undefined() 152 return JsiRef<JsiValue>::Make(panda::JSValueRef::Null(runtime->GetEcmaVm())); in Null() 158 return JsiRef<JsiValue>::Make(panda::JSValueRef::True(runtime->GetEcmaVm())); in True() 164 return JsiRef<JsiValue>::Make(panda::JSValueRef::False(runtime->GetEcmaVm())); in False() 401 return panda::FunctionRef::New(const_cast<EcmaVM*>(runtime->GetEcmaVm()), func); in New() 425 return panda::ObjectRef::New(runtime->GetEcmaVm()); in New() 537 return panda::StringRef::NewFromUtf8(runtime->GetEcmaVm(), str); in New() 554 return JsiRef<JsiValue>::Make(panda::DateRef::New(runtime->GetEcmaVm(), value)); in New()
|
H A D | jsi_value_conversions.h | 89 auto vm = runtime->GetEcmaVm(); in toJsiValue() 96 return runtime->GetEcmaVm(); in getEcmaVm()
|
H A D | jsi_declarative_engine.cpp | 480 LocalScope scope(std::static_pointer_cast<ArkJSRuntime>(runtime_)->GetEcmaVm()); in InitJsObject() 501 auto vm = std::static_pointer_cast<ArkJSRuntime>(runtime_)->GetEcmaVm(); in InitJsObject() 582 EcmaVM* vm = const_cast<EcmaVM*>(nativeArkEngine->GetEcmaVm()); in PreloadAceModuleWorker() 639 EcmaVM* vm = const_cast<EcmaVM*>(nativeArkEngine->GetEcmaVm()); in PreloadAceModule() 799 RegisterStringCacheTable(runtime->GetEcmaVm(), MAX_STRING_CACHE_SIZE); in InitGlobalObjectTemplate() 800 JsRegisterViews(JSNApi::GetGlobalObject(runtime->GetEcmaVm()), reinterpret_cast<void*>(nativeEngine_)); in InitGlobalObjectTemplate() 810 JsUINodeRegisterCleanUp(JSNApi::GetGlobalObject(runtime->GetEcmaVm())); in InitGroupJsBridge() 830 engineInstance->SetRootView(page->GetPageId(), panda::Global<panda::ObjectRef>(arkRuntime->GetEcmaVm(), value)); in RootViewHandle() 844 panda::Local<panda::ObjectRef> rootView = iter->second.ToLocal(arkRuntime->GetEcmaVm()); in DestroyRootViewHandle() 845 auto* jsView = static_cast<JSView*>(rootView->GetNativePointerField(arkRuntime->GetEcmaVm(), in DestroyRootViewHandle() [all...] |
/foundation/arkui/napi/native_engine/impl/ark/ |
H A D | ark_native_deferred.cpp | 27 : engine_(engine), deferred_(engine->GetEcmaVm(), deferred) in ArkNativeDeferred() 45 auto vm = engine_->GetEcmaVm(); in Resolve() 54 auto vm = engine_->GetEcmaVm(); in Reject()
|
H A D | ark_native_reference.cpp | 37 value_(engine->GetEcmaVm(), LocalValueFromJsValue(value)), in ArkNativeReference() 59 value_(engine->GetEcmaVm(), value), in ArkNativeReference() 124 Local<JSValueRef> value = value_.ToLocal(engine->GetEcmaVm()); in Get() 139 Local<JSValueRef> value = value_.ToLocal(engine_->GetEcmaVm()); in Get()
|
/foundation/arkui/ace_engine/interfaces/inner_api/xcomponent_controller/ |
H A D | xcomponent_controller.cpp | 33 const auto* vm = reinterpret_cast<NativeEngine*>(env)->GetEcmaVm(); in GetXComponentControllerFromNapiValue() 52 const auto* vm = reinterpret_cast<NativeEngine*>(env)->GetEcmaVm(); in SetSurfaceCallbackMode()
|
/foundation/arkui/ace_engine/frameworks/bridge/declarative_frontend/engine/ |
H A D | js_execution_scope_defines.h | 24 panda::LocalScope socpe(runtime->GetEcmaVm());
|
H A D | js_types.h | 48 inline const panda::ecmascript::EcmaVM* GetEcmaVm() in GetEcmaVm() function
|
/foundation/ability/ability_runtime/frameworks/native/runtime/ |
H A D | js_runtime.cpp | 215 EcmaVM* vm = GetEcmaVm(); in DebuggerConnectionHandler() 359 EcmaVM* vm = GetEcmaVm(); in DebuggerConnectionManager() 431 auto vm = GetEcmaVm(); in LoadRepairPatch() 479 auto vm = GetEcmaVm(); in UnLoadRepairPatch() 530 auto vm = GetEcmaVm(); in LoadScript() 582 auto vm = GetEcmaVm(); in FinishPreload() 589 auto vm = GetEcmaVm(); in PostPreload() 625 auto vm = GetEcmaVm(); in LoadAotFile() 661 auto vm = GetEcmaVm(); in Initialize() 951 auto vm = GetEcmaVm(); in LoadJsModule() 1287 panda::ecmascript::EcmaVM* JsRuntime::GetEcmaVm() const GetEcmaVm() function in OHOS::AbilityRuntime::JsRuntime [all...] |
/foundation/arkui/napi/callback_scope_manager/ |
H A D | native_callback_scope_manager.cpp | 25 [[maybe_unused]] panda::LocalScope scope(env_->GetEcmaVm()); in NativeCallbackScope()
|
/foundation/ability/ability_runtime/interfaces/inner_api/runtime/include/ |
H A D | js_runtime_lite.h | 50 panda::ecmascript::EcmaVM* GetEcmaVm(const std::shared_ptr<JsEnv::JsEnvironment>& jsEnv) const;
|
/foundation/arkui/napi/interfaces/inner_api/cjffi/ark_interop/ |
H A D | ark_interop_loader.cpp | 58 auto vm = const_cast<EcmaVM*>(engine->GetEcmaVm()); in LoadArkCJModule()
|
/foundation/arkui/napi/test/unittest/engine/ |
H A D | test_ark.cpp | 121 const EcmaVM *vm = reinterpret_cast<ArkNativeEngine*>(engine_)->GetEcmaVm(); in HWTEST_F()
|
/foundation/arkui/napi/test/unittest/ |
H A D | test_ark_api_allowlist.cpp | 145 const EcmaVM* vm = arkNativeEngine->GetEcmaVm(); in HWTEST_F() 197 const EcmaVM* vm = arkNativeEngine->GetEcmaVm(); in HWTEST_F()
|
/foundation/ability/ability_runtime/frameworks/native/appkit/app/ |
H A D | dump_runtime_helper.cpp | 55 auto vm = (static_cast<AbilityRuntime::JsRuntime&>(*runtime)).GetEcmaVm(); in SetAppFreezeFilterCallback()
|