Home
last modified time | relevance | path

Searched refs:GetEcmaVm (Results 1 - 25 of 50) sorted by relevance

12

/foundation/arkui/ace_engine/frameworks/bridge/js_frontend/engine/jsi/
H A Dark_js_value.cpp23 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 Dark_js_value.h40 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 Djsi_xcomponent_bridge.cpp115 LocalScope scope(pandaRuntime->GetEcmaVm()); in HandleContext()
116 Local<ObjectRef> obj = arkObjectRef->ToObject(pandaRuntime->GetEcmaVm()); in HandleContext()
H A Djs_runtime.h91 virtual const panda::EcmaVM* GetEcmaVm() const { return nullptr; } in GetEcmaVm() function in OHOS::Ace::Framework::JsRuntime
/foundation/arkui/napi/native_engine/
H A Dnative_api.cpp74 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 Dnative_async_hook_context.h41 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 Dnative_sendable.cpp57 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 Dnative_engine.cpp333 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 Dnative_node_api.cpp99 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 Djsi_object_template.cpp23 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 Djsi_types.cpp146 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 Djsi_value_conversions.h89 auto vm = runtime->GetEcmaVm(); in toJsiValue()
96 return runtime->GetEcmaVm(); in getEcmaVm()
H A Djsi_declarative_engine.cpp480 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 Dark_native_deferred.cpp27 : engine_(engine), deferred_(engine->GetEcmaVm(), deferred) in ArkNativeDeferred()
45 auto vm = engine_->GetEcmaVm(); in Resolve()
54 auto vm = engine_->GetEcmaVm(); in Reject()
H A Dark_native_reference.cpp37 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 Dxcomponent_controller.cpp33 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 Djs_execution_scope_defines.h24 panda::LocalScope socpe(runtime->GetEcmaVm());
H A Djs_types.h48 inline const panda::ecmascript::EcmaVM* GetEcmaVm() in GetEcmaVm() function
/foundation/ability/ability_runtime/frameworks/native/runtime/
H A Djs_runtime.cpp215 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 Dnative_callback_scope_manager.cpp25 [[maybe_unused]] panda::LocalScope scope(env_->GetEcmaVm()); in NativeCallbackScope()
/foundation/ability/ability_runtime/interfaces/inner_api/runtime/include/
H A Djs_runtime_lite.h50 panda::ecmascript::EcmaVM* GetEcmaVm(const std::shared_ptr<JsEnv::JsEnvironment>& jsEnv) const;
/foundation/arkui/napi/interfaces/inner_api/cjffi/ark_interop/
H A Dark_interop_loader.cpp58 auto vm = const_cast<EcmaVM*>(engine->GetEcmaVm()); in LoadArkCJModule()
/foundation/arkui/napi/test/unittest/engine/
H A Dtest_ark.cpp121 const EcmaVM *vm = reinterpret_cast<ArkNativeEngine*>(engine_)->GetEcmaVm(); in HWTEST_F()
/foundation/arkui/napi/test/unittest/
H A Dtest_ark_api_allowlist.cpp145 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 Ddump_runtime_helper.cpp55 auto vm = (static_cast<AbilityRuntime::JsRuntime&>(*runtime)).GetEcmaVm(); in SetAppFreezeFilterCallback()

Completed in 21 milliseconds

12