Searched refs:ecmaVm (Results 1 - 5 of 5) sorted by relevance
/foundation/arkui/napi/native_engine/impl/ark/ |
H A D | ark_native_engine.cpp | 309 const std::string apiPath = context.moduleName->ToString(context.ecmaVm); in CheckArkApiAllowList() 311 CopyPropertyApiFilter(apiAllowListChecker, context.ecmaVm, context.exportObj, exportCopy, apiPath); in CheckArkApiAllowList() 319 const EcmaVM* ecmaVm, const panda::Local<panda::ObjectRef> exportObj, panda::Local<panda::ObjectRef>& exportCopy, in CopyPropertyApiFilter() 322 panda::Local<panda::ArrayRef> namesArrayRef = exportObj->GetAllPropertyNames(ecmaVm, NATIVE_DEFAULT); in CopyPropertyApiFilter() 323 for (uint32_t i = 0; i < namesArrayRef->Length(ecmaVm); ++i) { in CopyPropertyApiFilter() 324 const panda::Local<panda::JSValueRef> nameValue = panda::ArrayRef::GetValueAt(ecmaVm, namesArrayRef, i); in CopyPropertyApiFilter() 325 const panda::Local<panda::JSValueRef> value = exportObj->Get(ecmaVm, nameValue); in CopyPropertyApiFilter() 326 const std::string curPath = apiPath + "." + nameValue->ToString(ecmaVm)->ToString(ecmaVm); in CopyPropertyApiFilter() 328 const std::string valueType = value->Typeof(ecmaVm) in CopyPropertyApiFilter() 318 CopyPropertyApiFilter(const std::unique_ptr<ApiAllowListChecker>& apiAllowListChecker, const EcmaVM* ecmaVm, const panda::Local<panda::ObjectRef> exportObj, panda::Local<panda::ObjectRef>& exportCopy, const std::string& apiPath) CopyPropertyApiFilter() argument [all...] |
H A D | ark_native_engine.h | 49 EcmaVM* ecmaVm; member 369 const EcmaVM* ecmaVm, const panda::Local<panda::ObjectRef> exportObj,
|
/foundation/arkui/napi/native_engine/ |
H A D | native_node_api.cpp | 99 auto ecmaVm = reinterpret_cast<NativeEngine*>(env)->GetEcmaVm(); in napi_fatal_exception() local 100 RETURN_STATUS_IF_FALSE(env, exceptionValue->IsError(ecmaVm), napi_invalid_arg); in napi_fatal_exception() 123 auto ecmaVm = engine->GetEcmaVm(); in napi_create_async_work() local 133 uint32_t copied = nativeString->WriteUtf8(ecmaVm, name, 63, true) - 1; // 63:NAME_BUFFER_SIZE in napi_create_async_work() 496 auto ecmaVm = reinterpret_cast<NativeEngine*>(env)->GetEcmaVm(); in napi_async_init() local 501 resource = nativeValue->ToObject(ecmaVm); in napi_async_init() 504 resource = panda::ObjectRef::New(ecmaVm); in napi_async_init() 509 auto resourceName = nativeValue->ToString(ecmaVm); in napi_async_init()
|
H A D | native_async_hook_context.h | 96 auto ecmaVm = env_->GetEcmaVm(); in EnsureReference() local 97 panda::Global<panda::ObjectRef> resource(ecmaVm, panda::ObjectRef::New(ecmaVm)); in EnsureReference()
|
/foundation/arkui/ace_engine/adapter/ohos/entrance/pa_engine/engine/jsi/ |
H A D | jsi_pa_engine.cpp | 283 auto ecmaVm = GetEcmaVm(); in InitJsEnv() local 284 CHECK_NULL_RETURN(ecmaVm, false); in InitJsEnv() 286 if (!arkJSRuntime->InitializeFromExistVM(ecmaVm)) { in InitJsEnv()
|
Completed in 9 milliseconds