Searched refs:JSNApiHelper (Results 1 – 11 of 11) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/napi/ |
D | jsnapi.cpp | 396 thread->SetException(JSNApiHelper::ToJSTaggedValue(*error)); in ThrowException() 408 JSHandle<JSTaggedValue> exceptionHandle = JSNApiHelper::ToJSHandle(exception); in PrintExceptionInfo() 681 return JSNApiHelper::ToLocal<ObjectRef>(vm->GetEcmaUncaughtException()); in GetUncaughtException() 686 return JSNApiHelper::ToLocal<ObjectRef>(vm->GetAndClearEcmaUncaughtException()); in GetAndClearUncaughtException() 703 return JSNApiHelper::ToLocal<ObjectRef>(global); in GetGlobalObject() 785 JSHandle<JSTaggedValue> arkValue = JSNApiHelper::ToJSHandle(value); in SerializeValue() 786 JSHandle<JSTaggedValue> arkTransfer = JSNApiHelper::ToJSHandle(transfer); in SerializeValue() 805 return JSNApiHelper::ToLocal<ObjectRef>(result); in DeserializeValue() 825 …Local<JSValueRef> promiseVal = JSNApiHelper::ToLocal<JSValueRef>(JSHandle<JSTaggedValue>::Cast(pro… in HostPromiseRejectionTracker() 826 PromiseRejectInfo promiseRejectInfo(promiseVal, JSNApiHelper::ToLocal<JSValueRef>(reason), in HostPromiseRejectionTracker() [all …]
|
D | jsnapi_helper.h | 72 class JSNApiHelper {
|
/arkcompiler/ets_runtime/ecmascript/debugger/ |
D | debugger_api.cpp | 126 return frameHandler->SetVRegValue(index, JSNApiHelper::ToJSTaggedValue(*value)); in SetVRegValue() 196 return JSNApiHelper::ToLocal<JSValueRef>(handledValue); in GetVRegValue() 205 return JSNApiHelper::ToLocal<JSValueRef>(handledException); in GetAndClearException() 210 ecmaVm->GetJSThread()->SetException(JSNApiHelper::ToJSTaggedValue(*exception)); in SetException() 268 return JSNApiHelper::ToLocal<JSValueRef>(handledValue); in GetProperties() 280 JSTaggedValue target = JSNApiHelper::ToJSHandle(value).GetTaggedValue(); in SetProperties() 312 JSTaggedValue key = JSNApiHelper::ToJSTaggedValue(*name); in GetGlobalValue() 317 return JSNApiHelper::ToLocal<JSValueRef>(JSHandle<JSTaggedValue>(thread, result)); in GetGlobalValue() 322 return JSNApiHelper::ToLocal<JSValueRef>(JSHandle<JSTaggedValue>(thread, globalVar)); in GetGlobalValue() 325 return JSNApiHelper::ToLocal<JSValueRef>(JSHandle<JSTaggedValue>(thread, result)); in GetGlobalValue() [all …]
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | js_relative_time_format_test.cpp | 123 …Local<FunctionRef> relativeTimeFormatLocal = JSNApiHelper::ToLocal<FunctionRef>(relativeTimeFormat… in HWTEST_F_L0() 125 Local<FunctionRef> disPlayNamesLocal = JSNApiHelper::ToLocal<FunctionRef>(disPlayNamesFunc); in HWTEST_F_L0() 128 JSHandle<JSTaggedValue> disPlayNamesHandle = JSNApiHelper::ToJSHandle(disPlayNamesLocal); in HWTEST_F_L0()
|
D | js_number_format_test.cpp | 210 Local<FunctionRef> numberFormatLocal = JSNApiHelper::ToLocal<FunctionRef>(numberFormatFunc); in HWTEST_F_L0() 212 Local<FunctionRef> disPlayNamesLocal = JSNApiHelper::ToLocal<FunctionRef>(disPlayNamesFunc); in HWTEST_F_L0() 215 JSHandle<JSTaggedValue> disPlayNamesHandle = JSNApiHelper::ToJSHandle(disPlayNamesLocal); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/napi/test/ |
D | jsnapi_tests.cpp | 787 Local<FunctionRef> setLocal = JSNApiHelper::ToLocal<FunctionRef>(set); in HWTEST_F_L0() 790 Local<FunctionRef> mapLocal = JSNApiHelper::ToLocal<FunctionRef>(map); in HWTEST_F_L0() 815 JSHandle<JSTaggedValue> sonHandle = JSNApiHelper::ToJSHandle(mapLocal); in HWTEST_F_L0() 840 JSHandle<JSFunction> son1Handle = JSHandle<JSFunction>::Cast(JSNApiHelper::ToJSHandle(son1)); in HWTEST_F_L0() 850 Local<FunctionRef> weakSetLocal = JSNApiHelper::ToLocal<FunctionRef>(weakSet); in HWTEST_F_L0() 853 Local<FunctionRef> weakMapLocal = JSNApiHelper::ToLocal<FunctionRef>(weakMap); in HWTEST_F_L0() 864 JSHandle<JSTaggedValue> sonHandle = JSNApiHelper::ToJSHandle(weakMapLocal); in HWTEST_F_L0() 868 JSHandle<JSTaggedValue> fatherHandle = JSNApiHelper::ToJSHandle(weakSetLocal); in HWTEST_F_L0() 891 …Local<FunctionRef> protoLocal = JSNApiHelper::ToLocal<FunctionRef>(JSHandle<JSTaggedValue>(protoFu… in HWTEST_F_L0() 895 …Local<FunctionRef> noProtoLocal = JSNApiHelper::ToLocal<FunctionRef>(JSHandle<JSTaggedValue>(noPro… in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/ |
D | ecma_vm.cpp | 610 …concurrentCallback_(JSNApiHelper::ToLocal<JSValueRef>(JSHandle<JSTaggedValue>(thread_, result)), s… in TriggerConcurrentCallback()
|
D | js_serializer.cpp | 1531 return JSNApiHelper::ToJSHandle(attachVal); in ReadNativeBindingObject()
|
/arkcompiler/ets_runtime/ecmascript/napi/include/ |
D | jsnapi.h | 33 class JSNApiHelper; variable 132 friend JSNApiHelper; variable
|
/arkcompiler/toolchain/tooling/agent/ |
D | debugger_impl.cpp | 1182 Local<JSValueRef> thisVal = JSNApiHelper::ToLocal<JSValueRef>( in GetLocalScopeChain() 1300 Local<JSValueRef> value = JSNApiHelper::ToLocal<JSValueRef>( in GetClosureVariables()
|
/arkcompiler/ets_runtime/ecmascript/module/ |
D | js_module_source_text.cpp | 312 return globalObject->Get(vm, JSNApiHelper::ToLocal<StringRef>(funcName)); in GetRequireNativeModuleFunc() 371 requiredModule->StoreModuleValue(thread, 0, JSNApiHelper::ToJSHandle(exportObject)); in LoadNativeModule()
|