• Home
  • Raw
  • Download

Lines Matching refs:v8impl

83   inspector_agent_ = new v8impl::Agent(this);  in JSVM_Env__()
93 v8impl::RefTracker::FinalizeAll(&finalizing_reflist); in DeleteMe()
94 v8impl::RefTracker::FinalizeAll(&reflist); in DeleteMe()
119 void JSVM_Env__::InvokeFinalizerFromGC(v8impl::RefTracker* finalizer) { in InvokeFinalizerFromGC()
134 namespace v8impl { namespace
174 isolate->SetData(v8impl::kIsolateData, data); in CreateIsolateData()
178 auto data = isolate->GetData(v8impl::kIsolateData); in GetIsolateData()
184 isolate->SetData(v8impl::kIsolateSnapshotCreatorSlot, creator); in SetIsolateSnapshotCreator()
188 auto data = isolate->GetData(v8impl::kIsolateSnapshotCreatorSlot); in GetIsolateSnapshotCreator()
237 *result = v8impl::JsValueFromV8LocalValue(str_maybe.ToLocalChecked()); in NewString()
358 v8impl::V8LocalValueFromJsValue(p->name); in V8NameFromPropertyDescriptor()
390 v8impl::Persistent<v8::Value>* local) { in JsDeferredFromNodePersistent()
394 inline v8impl::Persistent<v8::Value>* NodePersistentFromJsDeferred( in NodePersistentFromJsDeferred()
396 return reinterpret_cast<v8impl::Persistent<v8::Value>*>(local); in NodePersistentFromJsDeferred()
456 v8impl::Persistent<v8::Value>* deferred_ref = in ConcludeDeferred()
465 context, v8impl::V8LocalValueFromJsValue(result)) in ConcludeDeferred()
467 context, v8impl::V8LocalValueFromJsValue(result)); in ConcludeDeferred()
490 v8::Local<v8::Value> value = v8impl::V8LocalValueFromJsValue(jsObject); in Unwrap()
498 static_cast<v8impl::Reference*>(val.As<v8::External>()->Value()); in Unwrap()
536 v8impl::JSVM_PropertyHandlerCfgStruct* cb) { in New()
582 auto env = v8impl::GetContextEnv(context); in InvokeCallback()
615 v8::Local<v8::Value> cbdata = v8impl::CallbackBundle::New(env, cb); in NewFunction()
631 v8::Local<v8::Value> cbdata = v8impl::CallbackBundle::New(env, cb); in NewTemplate()
644 return v8impl::JsValueFromV8LocalValue(_cbinfo.NewTarget()); in GetNewTarget()
656 buffer[i] = v8impl::JsValueFromV8LocalValue(_cbinfo[i]); in Args()
661 v8impl::JsValueFromV8LocalValue(v8::Undefined(_cbinfo.GetIsolate())); in Args()
670 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in SetReturnValue()
683 …_cb = (v8impl::JSVM_PropertyHandlerCfgStruct *)_cbinfo.Data().template As<v8::External>()->Value(); in PropertyCallbackWrapperBase()
689 auto env = v8impl::GetContextEnv(context); in NameSetterInvokeCallback()
694 v8impl::Reference* reference = reinterpret_cast<v8impl::Reference*>(_cb->namedPropertyData_); in NameSetterInvokeCallback()
695 innerData = v8impl::JsValueFromV8LocalValue(reference->Get()); in NameSetterInvokeCallback()
722 auto env = v8impl::GetContextEnv(context); in NameGetterInvokeCallback()
727 v8impl::Reference* reference = reinterpret_cast<v8impl::Reference*>(_cb->namedPropertyData_); in NameGetterInvokeCallback()
728 innerData = v8impl::JsValueFromV8LocalValue(reference->Get()); in NameGetterInvokeCallback()
753 auto env = v8impl::GetContextEnv(context); in NameDeleterInvokeCallback()
758 v8impl::Reference* reference = reinterpret_cast<v8impl::Reference*>(_cb->namedPropertyData_); in NameDeleterInvokeCallback()
759 innerData = v8impl::JsValueFromV8LocalValue(reference->Get()); in NameDeleterInvokeCallback()
779 if (v8impl::V8LocalValueFromJsValue(result)->IsBoolean()) { in NameDeleterInvokeCallback()
787 auto env = v8impl::GetContextEnv(context); in NameEnumeratorInvokeCallback()
792 v8impl::Reference* reference = reinterpret_cast<v8impl::Reference*>(_cb->namedPropertyData_); in NameEnumeratorInvokeCallback()
793 innerData = v8impl::JsValueFromV8LocalValue(reference->Get()); in NameEnumeratorInvokeCallback()
812 if (v8impl::V8LocalValueFromJsValue(result)->IsArray()) { in NameEnumeratorInvokeCallback()
820 auto env = v8impl::GetContextEnv(context); in IndexSetterInvokeCallback()
825v8impl::Reference* reference = reinterpret_cast<v8impl::Reference*>(_cb->indexedPropertyData_); in IndexSetterInvokeCallback()
826 innerData = v8impl::JsValueFromV8LocalValue(reference->Get()); in IndexSetterInvokeCallback()
853 auto env = v8impl::GetContextEnv(context); in IndexGetterInvokeCallback()
858v8impl::Reference* reference = reinterpret_cast<v8impl::Reference*>(_cb->indexedPropertyData_); in IndexGetterInvokeCallback()
859 innerData = v8impl::JsValueFromV8LocalValue(reference->Get()); in IndexGetterInvokeCallback()
885 auto env = v8impl::GetContextEnv(context); in IndexDeleterInvokeCallback()
890v8impl::Reference* reference = reinterpret_cast<v8impl::Reference*>(_cb->indexedPropertyData_); in IndexDeleterInvokeCallback()
891 innerData = v8impl::JsValueFromV8LocalValue(reference->Get()); in IndexDeleterInvokeCallback()
911 if (v8impl::V8LocalValueFromJsValue(result)->IsBoolean()) { in IndexDeleterInvokeCallback()
919 auto env = v8impl::GetContextEnv(context); in IndexEnumeratorInvokeCallback()
924v8impl::Reference* reference = reinterpret_cast<v8impl::Reference*>(_cb->indexedPropertyData_); in IndexEnumeratorInvokeCallback()
925 innerData = v8impl::JsValueFromV8LocalValue(reference->Get()); in IndexEnumeratorInvokeCallback()
944 if (v8impl::V8LocalValueFromJsValue(result)->IsArray()) { in IndexEnumeratorInvokeCallback()
1012 v8::Local<T> val = v8impl::V8LocalValueFromJsValue(value).As<T>(); in SetReturnValue()
1031 v8::Local<v8::Value> value = v8impl::V8LocalValueFromJsValue(jsObject); in Wrap()
1041 v8impl::Reference* reference = nullptr; in Wrap()
1048 reference = v8impl::Reference::New(env, in Wrap()
1051 v8impl::Ownership::kUserland, in Wrap()
1058 reference = v8impl::Reference::New( in Wrap()
1062 v8impl::Ownership::kRuntime, in Wrap()
1297 return v8impl::g_platform.get(); in platform()
1302 v8::V8::InitializePlatform(v8impl::g_platform.get()); in OH_JSVM_Init()
1309 const auto cb = v8impl::FunctionCallbackWrapper::Invoke; in OH_JSVM_Init()
1310 v8impl::externalReferenceRegistry.push_back((intptr_t)cb); in OH_JSVM_Init()
1313 v8impl::externalReferenceRegistry.push_back(*p); in OH_JSVM_Init()
1316 v8impl::externalReferenceRegistry.push_back(0); in OH_JSVM_Init()
1329 auto externalReferences = v8impl::externalReferenceRegistry.data(); in OH_JSVM_CreateVM()
1350 v8impl::SetIsolateSnapshotCreator(isolate, creator); in OH_JSVM_CreateVM()
1356 v8impl::CreateIsolateData(isolate, snapshotBlob); in OH_JSVM_CreateVM()
1365 auto creator = v8impl::GetIsolateSnapshotCreator(isolate); in OH_JSVM_DestroyVM()
1366 auto data = v8impl::GetIsolateData(isolate); in OH_JSVM_DestroyVM()
1417 v8impl::V8PropertyAttributesFromDescriptor(p); in OH_JSVM_CreateEnv()
1423 STATUS_CALL(v8impl::FunctionCallbackWrapper::NewTemplate( in OH_JSVM_CreateEnv()
1427 STATUS_CALL(v8impl::FunctionCallbackWrapper::NewTemplate( in OH_JSVM_CreateEnv()
1435 STATUS_CALL(v8impl::FunctionCallbackWrapper::NewTemplate( in OH_JSVM_CreateEnv()
1440 v8::Local<v8::Value> value = v8impl::V8LocalValueFromJsValue(p->value); in OH_JSVM_CreateEnv()
1447 v8impl::SetContextEnv(context, env); in OH_JSVM_CreateEnv()
1467 v8impl::SetContextEnv(context, env); in OH_JSVM_CreateEnvFromSnapshot()
1505 v8::Local<v8::Value> v8_script = v8impl::V8LocalValueFromJsValue(script); in OH_JSVM_CompileScript()
1592 v8::Local<v8::Value> v8_script = v8impl::V8LocalValueFromJsValue(script); in OH_JSVM_CompileScriptWithOrigin()
1659 *result = v8impl::JsValueFromV8LocalValue(script_result.ToLocalChecked()); in OH_JSVM_RunScript()
1669 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(json_string); in OH_JSVM_JsonParse()
1674 *result = v8impl::JsValueFromV8LocalValue(maybe.ToLocalChecked()); in OH_JSVM_JsonParse()
1684 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(json_object); in OH_JSVM_JsonStringify()
1688 *result = v8impl::JsValueFromV8LocalValue(maybe.ToLocalChecked()); in OH_JSVM_JsonStringify()
1700 auto creator = v8impl::GetIsolateSnapshotCreator(isolate); in OH_JSVM_CreateSnapshot()
1783 v8impl::OutputStream os(stream, streamData); in OH_JSVM_StopCpuProfiler()
1794 v8impl::OutputStream os(stream, streamData); in OH_JSVM_TakeHeapSnapshot()
1839 *result = v8::platform::PumpMessageLoop(v8impl::g_platform.get(), isolate); in OH_JSVM_PumpMessageLoop()
1914 STATUS_CALL(v8impl::FunctionCallbackWrapper::NewFunction( in OH_JSVM_CreateFunction()
1924 *result = v8impl::JsValueFromV8LocalValue(return_value); in OH_JSVM_CreateFunction()
1949 STATUS_CALL(v8impl::FunctionCallbackWrapper::NewTemplate( in OH_JSVM_DefineClass()
1967 STATUS_CALL(v8impl::V8NameFromPropertyDescriptor(env, p, &property_name)); in OH_JSVM_DefineClass()
1970 v8impl::V8PropertyAttributesFromDescriptor(p); in OH_JSVM_DefineClass()
1980 STATUS_CALL(v8impl::FunctionCallbackWrapper::NewTemplate( in OH_JSVM_DefineClass()
1984 STATUS_CALL(v8impl::FunctionCallbackWrapper::NewTemplate( in OH_JSVM_DefineClass()
1995 STATUS_CALL(v8impl::FunctionCallbackWrapper::NewTemplate( in OH_JSVM_DefineClass()
2000 v8::Local<v8::Value> value = v8impl::V8LocalValueFromJsValue(p->value); in OH_JSVM_DefineClass()
2006 *result = v8impl::JsValueFromV8LocalValue( in OH_JSVM_DefineClass()
2110 v8impl::JsValueFromV8LocalValue(maybe_all_propertynames.ToLocalChecked()); in OH_JSVM_GetAllPropertyNames()
2127 v8::Local<v8::Value> k = v8impl::V8LocalValueFromJsValue(key); in OH_JSVM_SetProperty()
2128 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_SetProperty()
2149 v8::Local<v8::Value> k = v8impl::V8LocalValueFromJsValue(key); in OH_JSVM_HasProperty()
2167 v8::Local<v8::Value> k = v8impl::V8LocalValueFromJsValue(key); in OH_JSVM_GetProperty()
2177 *result = v8impl::JsValueFromV8LocalValue(val); in OH_JSVM_GetProperty()
2189 v8::Local<v8::Value> k = v8impl::V8LocalValueFromJsValue(key); in OH_JSVM_DeleteProperty()
2213 v8::Local<v8::Value> k = v8impl::V8LocalValueFromJsValue(key); in OH_JSVM_HasOwnProperty()
2237 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_SetNamedProperty()
2289 *result = v8impl::JsValueFromV8LocalValue(val); in OH_JSVM_GetNamedProperty()
2305 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_SetElement()
2349 *result = v8impl::JsValueFromV8LocalValue(get_maybe.ToLocalChecked()); in OH_JSVM_GetElement()
2390 STATUS_CALL(v8impl::V8NameFromPropertyDescriptor(env, p, &property_name)); in OH_JSVM_DefineProperties()
2397 STATUS_CALL(v8impl::FunctionCallbackWrapper::NewFunction( in OH_JSVM_DefineProperties()
2401 STATUS_CALL(v8impl::FunctionCallbackWrapper::NewFunction( in OH_JSVM_DefineProperties()
2417 STATUS_CALL(v8impl::FunctionCallbackWrapper::NewFunction( in OH_JSVM_DefineProperties()
2431 v8::Local<v8::Value> value = v8impl::V8LocalValueFromJsValue(p->value); in OH_JSVM_DefineProperties()
2502 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_IsArray()
2515 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_GetArrayLength()
2533 v8::Local<v8::Value> a = v8impl::V8LocalValueFromJsValue(lhs); in OH_JSVM_StrictEquals()
2534 v8::Local<v8::Value> b = v8impl::V8LocalValueFromJsValue(rhs); in OH_JSVM_StrictEquals()
2549 v8::Local<v8::Value> a = v8impl::V8LocalValueFromJsValue(lhs); in OH_JSVM_Equals()
2550 v8::Local<v8::Value> b = v8impl::V8LocalValueFromJsValue(rhs); in OH_JSVM_Equals()
2569 *result = v8impl::JsValueFromV8LocalValue(val); in OH_JSVM_GetPrototype()
2577 *result = v8impl::JsValueFromV8LocalValue(v8::Object::New(env->isolate)); in OH_JSVM_CreateObject()
2586 *result = v8impl::JsValueFromV8LocalValue(v8::Array::New(env->isolate)); in OH_JSVM_CreateArray()
2598 v8impl::JsValueFromV8LocalValue(v8::Array::New(env->isolate, length)); in OH_JSVM_CreateArrayWithLength()
2607 return v8impl::NewString(env, str, length, result, [&](v8::Isolate* isolate) { in OH_JSVM_CreateStringLatin1()
2619 return v8impl::NewString(env, str, length, result, [&](v8::Isolate* isolate) { in OH_JSVM_CreateStringUtf8()
2629 return v8impl::NewString(env, str, length, result, [&](v8::Isolate* isolate) { in OH_JSVM_CreateStringUtf16()
2644 v8impl::JsValueFromV8LocalValue(v8::Number::New(env->isolate, value)); in OH_JSVM_CreateDouble()
2656 v8impl::JsValueFromV8LocalValue(v8::Integer::New(env->isolate, value)); in OH_JSVM_CreateInt32()
2667 *result = v8impl::JsValueFromV8LocalValue( in OH_JSVM_CreateUint32()
2679 *result = v8impl::JsValueFromV8LocalValue( in OH_JSVM_CreateInt64()
2692 v8impl::JsValueFromV8LocalValue(v8::BigInt::New(env->isolate, value)); in OH_JSVM_CreateBigintInt64()
2703 *result = v8impl::JsValueFromV8LocalValue( in OH_JSVM_CreateBigintUint64()
2727 *result = v8impl::JsValueFromV8LocalValue(b.ToLocalChecked()); in OH_JSVM_CreateBigintWords()
2740 *result = v8impl::JsValueFromV8LocalValue(v8::True(isolate)); in OH_JSVM_GetBoolean()
2742 *result = v8impl::JsValueFromV8LocalValue(v8::False(isolate)); in OH_JSVM_GetBoolean()
2757 *result = v8impl::JsValueFromV8LocalValue(v8::Symbol::New(isolate)); in OH_JSVM_CreateSymbol()
2759 v8::Local<v8::Value> desc = v8impl::V8LocalValueFromJsValue(description); in OH_JSVM_CreateSymbol()
2762 *result = v8impl::JsValueFromV8LocalValue( in OH_JSVM_CreateSymbol()
2780 v8impl::V8LocalValueFromJsValue(js_description_string).As<v8::String>(); in OH_JSVM_SymbolFor()
2782 *result = v8impl::JsValueFromV8LocalValue( in OH_JSVM_SymbolFor()
2796 v8::Local<v8::Value> code_value = v8impl::V8LocalValueFromJsValue(code); in set_error_code()
2798 code_value = v8impl::V8LocalValueFromJsValue(code); in set_error_code()
2822 v8::Local<v8::Value> message_value = v8impl::V8LocalValueFromJsValue(msg); in OH_JSVM_CreateError()
2829 *result = v8impl::JsValueFromV8LocalValue(error_obj); in OH_JSVM_CreateError()
2842 v8::Local<v8::Value> message_value = v8impl::V8LocalValueFromJsValue(msg); in OH_JSVM_CreateTypeError()
2849 *result = v8impl::JsValueFromV8LocalValue(error_obj); in OH_JSVM_CreateTypeError()
2862 v8::Local<v8::Value> message_value = v8impl::V8LocalValueFromJsValue(msg); in OH_JSVM_CreateRangeError()
2869 *result = v8impl::JsValueFromV8LocalValue(error_obj); in OH_JSVM_CreateRangeError()
2882 v8::Local<v8::Value> message_value = v8impl::V8LocalValueFromJsValue(msg); in OH_JSVM_CreateSyntaxError()
2889 *result = v8impl::JsValueFromV8LocalValue(error_obj); in OH_JSVM_CreateSyntaxError()
2903 v8::Local<v8::Value> v = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_Typeof()
2941 *result = v8impl::JsValueFromV8LocalValue(v8::Undefined(env->isolate)); in OH_JSVM_GetUndefined()
2950 *result = v8impl::JsValueFromV8LocalValue(v8::Null(env->isolate)); in OH_JSVM_GetNull()
2967 v8impl::CallbackWrapper* info = in OH_JSVM_GetCbInfo()
2968 reinterpret_cast<v8impl::CallbackWrapper*>(cbinfo); in OH_JSVM_GetCbInfo()
2994 v8impl::CallbackWrapper* info = in OH_JSVM_GetNewTarget()
2995 reinterpret_cast<v8impl::CallbackWrapper*>(cbinfo); in OH_JSVM_GetNewTarget()
3015 v8::Local<v8::Value> v8recv = v8impl::V8LocalValueFromJsValue(recv); in OH_JSVM_CallFunction()
3031 *result = v8impl::JsValueFromV8LocalValue(maybe.ToLocalChecked()); in OH_JSVM_CallFunction()
3041 *result = v8impl::JsValueFromV8LocalValue(env->context()->Global()); in OH_JSVM_GetGlobal()
3052 isolate->ThrowException(v8impl::V8LocalValueFromJsValue(error)); in OH_JSVM_Throw()
3139 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_IsError()
3154 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_GetValueDouble()
3171 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_GetValueInt32()
3195 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_GetValueUint32()
3219 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_GetValueInt64()
3253 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_GetValueBigintInt64()
3271 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_GetValueBigintUint64()
3289 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_GetValueBigintWords()
3319 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_GetValueBool()
3340 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_GetValueStringLatin1()
3378 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_GetValueStringUtf8()
3419 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_GetValueStringUtf16()
3453 v8impl::V8LocalValueFromJsValue(value)->ToBoolean(isolate); in OH_JSVM_CoerceToBool()
3454 *result = v8impl::JsValueFromV8LocalValue(b); in OH_JSVM_CoerceToBool()
3470 *result = v8impl::JsValueFromV8LocalValue(str); \
3486 return v8impl::Wrap( in GEN_COERCE_FUNCTION()
3493 return v8impl::Unwrap(env, obj, result, v8impl::KeepWrap); in OH_JSVM_Unwrap()
3499 return v8impl::Unwrap(env, obj, result, v8impl::RemoveWrap); in OH_JSVM_RemoveWrap()
3517 v8impl::Reference::New(env, in OH_JSVM_CreateExternal()
3520 v8impl::Ownership::kRuntime, in OH_JSVM_CreateExternal()
3526 *result = v8impl::JsValueFromV8LocalValue(external_value); in OH_JSVM_CreateExternal()
3606 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_GetValueExternal()
3626 v8::Local<v8::Value> v8_value = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_CreateReference()
3627 v8impl::Reference* reference = v8impl::Reference::New( in OH_JSVM_CreateReference()
3628 env, v8_value, initialRefcount, v8impl::Ownership::kUserland); in OH_JSVM_CreateReference()
3642 delete reinterpret_cast<v8impl::Reference*>(ref); in OH_JSVM_DeleteReference()
3660 v8impl::Reference* reference = reinterpret_cast<v8impl::Reference*>(ref); in OH_JSVM_ReferenceRef()
3682 v8impl::Reference* reference = reinterpret_cast<v8impl::Reference*>(ref); in OH_JSVM_ReferenceUnref()
3709 v8impl::Reference* reference = reinterpret_cast<v8impl::Reference*>(ref); in OH_JSVM_GetReferenceValue()
3710 *result = v8impl::JsValueFromV8LocalValue(reference->Get()); in OH_JSVM_GetReferenceValue()
3722 *result = v8impl::JsHandleScopeFromV8HandleScope( in OH_JSVM_OpenHandleScope()
3723 new v8impl::HandleScopeWrapper(env->isolate)); in OH_JSVM_OpenHandleScope()
3739 delete v8impl::V8HandleScopeFromJsHandleScope(scope); in OH_JSVM_CloseHandleScope()
3750 *result = v8impl::JsEscapableHandleScopeFromV8EscapableHandleScope( in OH_JSVM_OpenEscapableHandleScope()
3751 new v8impl::EscapableHandleScopeWrapper(env->isolate)); in OH_JSVM_OpenEscapableHandleScope()
3766 delete v8impl::V8EscapableHandleScopeFromJsEscapableHandleScope(scope); in OH_JSVM_CloseEscapableHandleScope()
3782 v8impl::EscapableHandleScopeWrapper* s = in OH_JSVM_EscapeHandle()
3783 v8impl::V8EscapableHandleScopeFromJsEscapableHandleScope(scope); in OH_JSVM_EscapeHandle()
3785 *result = v8impl::JsValueFromV8LocalValue( in OH_JSVM_EscapeHandle()
3786 s->Escape(v8impl::V8LocalValueFromJsValue(escapee))); in OH_JSVM_EscapeHandle()
3816 *result = v8impl::JsValueFromV8LocalValue(maybe.ToLocalChecked()); in OH_JSVM_NewInstance()
3844 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(object); in OH_JSVM_Instanceof()
3872 *result = v8impl::JsValueFromV8LocalValue( in OH_JSVM_GetAndClearLastException()
3887 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_IsArraybuffer()
3910 *result = v8impl::JsValueFromV8LocalValue(buffer); in OH_JSVM_CreateArraybuffer()
3938 v8::Local<v8::Value> value = v8impl::V8LocalValueFromJsValue(arraybuffer); in OH_JSVM_GetArraybufferInfo()
3961 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_IsTypedarray()
3977 v8::Local<v8::Value> value = v8impl::V8LocalValueFromJsValue(arraybuffer); in OH_JSVM_CreateTypedarray()
4032 *result = v8impl::JsValueFromV8LocalValue(typedArray); in OH_JSVM_CreateTypedarray()
4046 v8::Local<v8::Value> value = v8impl::V8LocalValueFromJsValue(typedarray); in OH_JSVM_GetTypedarrayInfo()
4093 *arraybuffer = v8impl::JsValueFromV8LocalValue(buffer); in OH_JSVM_GetTypedarrayInfo()
4112 v8::Local<v8::Value> value = v8impl::V8LocalValueFromJsValue(arraybuffer); in OH_JSVM_CreateDataview()
4126 *result = v8impl::JsValueFromV8LocalValue(DataView); in OH_JSVM_CreateDataview()
4137 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_IsDataview()
4152 v8::Local<v8::Value> value = v8impl::V8LocalValueFromJsValue(dataview); in OH_JSVM_GetDataviewInfo()
4173 *arraybuffer = v8impl::JsValueFromV8LocalValue(buffer); in OH_JSVM_GetDataviewInfo()
4201 auto v8_deferred = new v8impl::Persistent<v8::Value>(); in OH_JSVM_CreatePromise()
4204 *deferred = v8impl::JsDeferredFromNodePersistent(v8_deferred); in OH_JSVM_CreatePromise()
4205 *promise = v8impl::JsValueFromV8LocalValue(v8_resolver->GetPromise()); in OH_JSVM_CreatePromise()
4212 return v8impl::ConcludeDeferred(env, deferred, resolution, true); in OH_JSVM_ResolveDeferred()
4218 return v8impl::ConcludeDeferred(env, deferred, resolution, false); in OH_JSVM_RejectDeferred()
4228 *is_promise = v8impl::V8LocalValueFromJsValue(value)->IsPromise(); in OH_JSVM_IsPromise()
4242 *result = v8impl::JsValueFromV8LocalValue(maybe_date.ToLocalChecked()); in OH_JSVM_CreateDate()
4254 *isDate = v8impl::V8LocalValueFromJsValue(value)->IsDate(); in OH_JSVM_IsDate()
4266 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_GetDateValue()
4287 v8::Local<v8::Value> v8_value = v8impl::V8LocalValueFromJsValue(jsObject); in OH_JSVM_AddFinalizer()
4292 v8impl::Ownership ownership = result == nullptr in OH_JSVM_AddFinalizer()
4293 ? v8impl::Ownership::kRuntime in OH_JSVM_AddFinalizer()
4294 : v8impl::Ownership::kUserland; in OH_JSVM_AddFinalizer()
4295 v8impl::Reference* reference = v8impl::Reference::New( in OH_JSVM_AddFinalizer()
4322 v8impl::RefBase* old_data = static_cast<v8impl::RefBase*>(env->instance_data); in OH_JSVM_SetInstanceData()
4329 env->instance_data = v8impl::RefBase::New( in OH_JSVM_SetInstanceData()
4330 env, 0, v8impl::Ownership::kRuntime, finalizeCb, data, finalizeHint); in OH_JSVM_SetInstanceData()
4339 v8impl::RefBase* idata = static_cast<v8impl::RefBase*>(env->instance_data); in OH_JSVM_GetInstanceData()
4351 v8::Local<v8::Value> value = v8impl::V8LocalValueFromJsValue(arraybuffer); in OH_JSVM_DetachArraybuffer()
4371 v8::Local<v8::Value> value = v8impl::V8LocalValueFromJsValue(arraybuffer); in OH_JSVM_IsDetachedArraybuffer()
4402 STATUS_CALL(v8impl::FunctionCallbackWrapper::NewTemplate( in OH_JSVM_DefineClassWithPropertyHandler()
4420 STATUS_CALL(v8impl::V8NameFromPropertyDescriptor(env, p, &property_name)); in OH_JSVM_DefineClassWithPropertyHandler()
4421 v8::PropertyAttribute attributes = v8impl::V8PropertyAttributesFromDescriptor(p); in OH_JSVM_DefineClassWithPropertyHandler()
4431 STATUS_CALL(v8impl::FunctionCallbackWrapper::NewTemplate( in OH_JSVM_DefineClassWithPropertyHandler()
4435 STATUS_CALL(v8impl::FunctionCallbackWrapper::NewTemplate( in OH_JSVM_DefineClassWithPropertyHandler()
4446 STATUS_CALL(v8impl::FunctionCallbackWrapper::NewTemplate( in OH_JSVM_DefineClassWithPropertyHandler()
4451 v8::Local<v8::Value> value = v8impl::V8LocalValueFromJsValue(p->value); in OH_JSVM_DefineClassWithPropertyHandler()
4457v8impl::JSVM_PropertyHandlerCfgStruct* propertyHandleCfg = v8impl::CreatePropertyCfg(env, property… in OH_JSVM_DefineClassWithPropertyHandler()
4461 v8::Local<v8::Value> cbdata = v8impl::CallbackBundle::New(env, propertyHandleCfg); in OH_JSVM_DefineClassWithPropertyHandler()
4466 namedPropertyHandler.getter = v8impl::PropertyCallbackWrapper<v8::Value>::NameGetterInvoke; in OH_JSVM_DefineClassWithPropertyHandler()
4469 namedPropertyHandler.setter = v8impl::PropertyCallbackWrapper<v8::Value>::NameSetterInvoke; in OH_JSVM_DefineClassWithPropertyHandler()
4472 namedPropertyHandler.deleter = v8impl::PropertyCallbackWrapper<v8::Boolean>::NameDeleterInvoke; in OH_JSVM_DefineClassWithPropertyHandler()
4475 …namedPropertyHandler.enumerator = v8impl::PropertyCallbackWrapper<v8::Array>::NameEnumeratorInvoke; in OH_JSVM_DefineClassWithPropertyHandler()
4483 indexPropertyHandler.getter = v8impl::PropertyCallbackWrapper<v8::Value>::IndexGetterInvoke; in OH_JSVM_DefineClassWithPropertyHandler()
4486 indexPropertyHandler.setter = v8impl::PropertyCallbackWrapper<v8::Value>::IndexSetterInvoke; in OH_JSVM_DefineClassWithPropertyHandler()
4489 indexPropertyHandler.deleter = v8impl::PropertyCallbackWrapper<v8::Boolean>::IndexDeleterInvoke; in OH_JSVM_DefineClassWithPropertyHandler()
4492 …indexPropertyHandler.enumerator = v8impl::PropertyCallbackWrapper<v8::Array>::IndexEnumeratorInvok… in OH_JSVM_DefineClassWithPropertyHandler()
4499 v8::Local<v8::Value> funcCbdata = v8impl::CallbackBundle::New(env, callAsFunctionCallback); in OH_JSVM_DefineClassWithPropertyHandler()
4500 …tpl->InstanceTemplate()->SetCallAsFunctionHandler(v8impl::FunctionCallbackWrapper::Invoke, funcCbd… in OH_JSVM_DefineClassWithPropertyHandler()
4504 *result = v8impl::JsValueFromV8LocalValue( in OH_JSVM_DefineClassWithPropertyHandler()
4507v8impl::Reference::New(env, v8impl::V8LocalValueFromJsValue(*result), 0, v8impl::Ownership::kRunti… in OH_JSVM_DefineClassWithPropertyHandler()
4508 v8impl::CfgFinalizedCallback, propertyHandleCfg, nullptr); in OH_JSVM_DefineClassWithPropertyHandler()
4568 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_IsCallable()
4583 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_IsUndefined()
4598 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_IsNull()
4613 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_IsNullOrUndefined()
4628 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_IsBoolean()
4643 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_IsNumber()
4658 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_IsString()
4673 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_IsSymbol()
4688 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_IsFunction()
4703 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_IsObject()
4718 v8::Local<v8::Value> val = v8impl::V8LocalValueFromJsValue(value); in OH_JSVM_IsBigInt()