/arkcompiler/ets_runtime/ecmascript/napi/ |
D | jsnapi_expo.cpp | 207 return JSNApiHelper::ToLocal<PrimitiveRef>( in Undefined() 213 return JSNApiHelper::ToLocal<PrimitiveRef>( in Null() 219 return JSNApiHelper::ToLocal<PrimitiveRef>( in True() 225 return JSNApiHelper::ToLocal<PrimitiveRef>( in False() 235 JSHandle<JSTaggedValue> obj(JSTaggedValue::ToObject(thread, JSNApiHelper::ToJSHandle(this))); in ToObject() 238 return JSNApiHelper::ToLocal<ObjectRef>(obj); in ToObject() 244 JSHandle<JSTaggedValue> obj = JSNApiHelper::ToJSHandle(this); in ToString() 250 return JSNApiHelper::ToLocal<StringRef>(obj); in ToString() 256 JSHandle<JSTaggedValue> obj = JSNApiHelper::ToJSHandle(this); in ToNativePointer() 258 return JSNApiHelper::ToLocal<NativePointerRef>(obj); in ToNativePointer() [all …]
|
D | jsnapi.cpp | 207 …JSHandle<JSArrayBuffer> arrayBuffer(JSNApiHelper::ToJSHandle(buffer)); \ 217 …return JSNApiHelper::ToLocal<Type##Ref>(resultHandle); \ 228 auto ecmaStr = EcmaString::Cast(JSNApiHelper::ToJSTaggedValue(*string).GetTaggedObject()); in TYPED_ARRAY_ALL() 232 … result = parser.Parse(EcmaString::Cast(JSNApiHelper::ToJSTaggedValue(*string).GetTaggedObject())); in TYPED_ARRAY_ALL() 235 … result = parser.Parse(EcmaString::Cast(JSNApiHelper::ToJSTaggedValue(*string).GetTaggedObject())); in TYPED_ARRAY_ALL() 238 return JSNApiHelper::ToLocal<JSValueRef>(result); in TYPED_ARRAY_ALL() 247 …JSNApiHelper::ToJSHandle(json), constants->GetHandledUndefined(), constants->GetHandledUndefined()… in Stringify() 249 return JSNApiHelper::ToLocal<JSValueRef>(str); in Stringify() 255 JSHandle<JSRegExp> regExp(JSNApiHelper::ToJSHandle(this)); in GetOriginalSource() 260 return JSNApiHelper::ToLocal<StringRef>(constants->GetHandledEmptyString()); in GetOriginalSource() [all …]
|
D | JSNapi接口说明.md | 1868 Local<GeneratorObjectRef> genObjectRef = JSNApiHelper::ToLocal<GeneratorObjectRef>(genObjTagHandleV… 2563 Local<JSValueRef> JSArrayObject = JSNApiHelper::ToLocal<JSValueRef>(obj); 2594 Local<JSValueRef> funConstructor = JSNApiHelper::ToLocal<JSValueRef>(funcHandle); 2622 bool result = JSNApiHelper::ToLocal<JSValueRef>(value);->IsWeakRef(); 2650 bool result = JSNApiHelper::ToLocal<JSValueRef>(jsTagValue)->IsStringIterator(); 2675 bool result = JSNApiHelper::ToLocal<StringRef>(setTag)->IsStringIterator(); 2701 bool result = JSNApiHelper::ToLocal<JSValueRef>(jsPriTagValue)->IsJSPrimitiveInt(); 2729 bool result = JSNApiHelper::ToLocal<ArrayRef>(treeMapTagValue)->IsTreeMap(); 2757 bool result = JSNApiHelper::ToLocal<ArrayRef>(treeSetTagValue)->IsTreeSet(); 2784 bool result = JSNApiHelper::ToLocal<ArrayRef>(vectorTagValue)->IsVector(); [all …]
|
/arkcompiler/ets_runtime/ecmascript/debugger/ |
D | debugger_api.cpp | 143 return frameHandler->SetVRegValue(index, JSNApiHelper::ToJSTaggedValue(*value)); in SetVRegValue() 227 return JSNApiHelper::ToLocal<JSValueRef>(handledValue); in GetVRegValue() 236 return JSNApiHelper::ToLocal<JSValueRef>(handledException); in GetAndClearException() 241 ecmaVm->GetJSThread()->SetException(JSNApiHelper::ToJSTaggedValue(*exception)); in SetException() 326 return JSNApiHelper::ToLocal<JSValueRef>(handledValue); in GetProperties() 338 JSTaggedValue target = JSNApiHelper::ToJSHandle(value).GetTaggedValue(); in SetProperties() 370 JSTaggedValue key = JSNApiHelper::ToJSTaggedValue(*name); in GetGlobalValue() 375 return JSNApiHelper::ToLocal<JSValueRef>(JSHandle<JSTaggedValue>(thread, result)); in GetGlobalValue() 380 return JSNApiHelper::ToLocal<JSValueRef>(JSHandle<JSTaggedValue>(thread, globalVar)); in GetGlobalValue() 383 return JSNApiHelper::ToLocal<JSValueRef>(JSHandle<JSTaggedValue>(thread, result)); in GetGlobalValue() [all …]
|
/arkcompiler/ets_runtime/test/fuzztest/publicapilocalregexpref_fuzzer/ |
D | publicapilocalregexpref_fuzzer.cpp | 48 Local<RegExpRef> object = JSNApiHelper::ToLocal<RegExpRef>(jsregtag); in LocalRegExpGetOriginalSourceFuzzTest() 74 Local<RegExpRef> object = JSNApiHelper::ToLocal<RegExpRef>(jsregtag); in LocalRegExpRefGetOriginalFlagsFuzzTest() 93 Local<RegExpRef> object = JSNApiHelper::ToLocal<RegExpRef>(jsregtag); in LocalRegExpIsGlobalRefFuzzTest() 114 Local<RegExpRef> object = JSNApiHelper::ToLocal<RegExpRef>(jsregtag); in LocalRegExpIsIgnoreCaseFuzzTest() 135 Local<RegExpRef> object = JSNApiHelper::ToLocal<RegExpRef>(jsregtag); in LocalRegExpIsMultilineFuzzTest() 156 Local<RegExpRef> object = JSNApiHelper::ToLocal<RegExpRef>(jsregtag); in LocalRegExpIsDotAllFuzzTest() 177 Local<RegExpRef> object = JSNApiHelper::ToLocal<RegExpRef>(jsregtag); in LocalRegExpIsUtf16FuzzTest() 198 Local<RegExpRef> object = JSNApiHelper::ToLocal<RegExpRef>(jsregtag); in LocalRegExpIsSticklFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefisjsprimitive_fuzzer/ |
D | jsvaluerefisjsprimitive_fuzzer.cpp | 40 Local<JSValueRef> object = JSNApiHelper::ToLocal<JSValueRef>(jsTagPrimitive); in IsJSPrimitiveSymbolFuzztest() 58 Local<JSValueRef> object = JSNApiHelper::ToLocal<JSValueRef>(jsTagPrimitive); in IsJSPrimitiveStringFuzztest() 76 Local<JSValueRef> object = JSNApiHelper::ToLocal<JSValueRef>(jsTagPrimitive); in IsJSPrimitiveIntFuzztest()
|
/arkcompiler/ets_runtime/ecmascript/napi/test/ |
D | jsnapi_second_tests.cpp | 103 JSTaggedType res = JSNApiHelper::ToJSTaggedValue(*obj).GetRawData(); in TestNumberRef() 283 Local<MapIteratorRef> mapIterator4 = JSNApiHelper::ToLocal<MapIteratorRef>(jsMapIteratorTag4); in HWTEST_F_L0() 315 Local<MapIteratorRef> mapIterator = JSNApiHelper::ToLocal<MapIteratorRef>(jsMapIteratorTag); in HWTEST_F_L0() 320 Local<MapIteratorRef> mapIterator1 = JSNApiHelper::ToLocal<MapIteratorRef>(jsMapIteratorTag1); in HWTEST_F_L0() 324 Local<MapIteratorRef> mapIterator2 = JSNApiHelper::ToLocal<MapIteratorRef>(jsMapIteratorTag2); in HWTEST_F_L0() 353 Local<MapIteratorRef> mapIterator1 = JSNApiHelper::ToLocal<MapIteratorRef>(jsMapIteratorTag1); in HWTEST_F_L0() 382 Local<MapIteratorRef> mapIterator2 = JSNApiHelper::ToLocal<MapIteratorRef>(jsMapIteratorTag2); in HWTEST_F_L0() 418 Local<MapIteratorRef> mapIterator = JSNApiHelper::ToLocal<MapIteratorRef>(jsMapIteratorTag); in HWTEST_F_L0() 457 JSHandle<JSTaggedValue> obj = JSNApiHelper::ToJSHandle(Local<JSValueRef>(cls)); in HWTEST_F_L0() 623 Local<JSValueRef> TreeMap = JSNApiHelper::ToLocal<JSAPITreeSet>(argumentTag); in HWTEST_F_L0() [all …]
|
D | jsnapi_first_tests.cpp | 103 JSTaggedType res = JSNApiHelper::ToJSTaggedValue(*obj).GetRawData(); in TestNumberRef() 1091 Local<FunctionRef> setLocal = JSNApiHelper::ToLocal<FunctionRef>(set); in HWTEST_F_L0() 1094 Local<FunctionRef> mapLocal = JSNApiHelper::ToLocal<FunctionRef>(map); in HWTEST_F_L0() 1119 JSHandle<JSTaggedValue> sonHandle = JSNApiHelper::ToJSHandle(mapLocal); in HWTEST_F_L0() 1144 JSHandle<JSFunction> son1Handle = JSHandle<JSFunction>::Cast(JSNApiHelper::ToJSHandle(son1)); in HWTEST_F_L0() 1154 Local<FunctionRef> weakSetLocal = JSNApiHelper::ToLocal<FunctionRef>(weakSet); in HWTEST_F_L0() 1157 Local<FunctionRef> weakMapLocal = JSNApiHelper::ToLocal<FunctionRef>(weakMap); in HWTEST_F_L0() 1168 JSHandle<JSTaggedValue> sonHandle = JSNApiHelper::ToJSHandle(weakMapLocal); in HWTEST_F_L0() 1171 JSHandle<JSTaggedValue> fatherHandle = JSNApiHelper::ToJSHandle(weakSetLocal); in HWTEST_F_L0() 1193 …Local<FunctionRef> protoLocal = JSNApiHelper::ToLocal<FunctionRef>(JSHandle<JSTaggedValue>(protoFu… in HWTEST_F_L0() [all …]
|
D | jsnapi_third_tests.cpp | 103 JSTaggedType res = JSNApiHelper::ToJSTaggedValue(*obj).GetRawData(); in TestNumberRef() 192 Local<JSValueRef> genObjectRef = JSNApiHelper::ToLocal<GeneratorObjectRef>(genObjTagHandleVal); in HWTEST_F_L0() 233 Local<JSValueRef> proxy = JSNApiHelper::ToLocal<JSProxy>(JSHandle<JSTaggedValue>(proxyHandle)); in HWTEST_F_L0() 812 Local<WeakMapRef> map = JSNApiHelper::ToLocal<WeakMapRef>(weakMapTag); in HWTEST_F_L0() 936 JSHandle<JSObject> obj(JSNApiHelper::ToJSHandle(object)); in HWTEST_F_L0() 971 JSHandle<JSTaggedValue> obj = JSNApiHelper::ToJSHandle(object); in HWTEST_F_L0() 995 JSHandle<JSTaggedValue> obj = JSNApiHelper::ToJSHandle(object); in HWTEST_F_L0() 1018 JSHandle<JSObject> obj(JSNApiHelper::ToJSHandle(object)); in HWTEST_F_L0() 1050 JSHandle<JSTaggedValue> obj = JSNApiHelper::ToJSHandle(object); in HWTEST_F_L0() 1069 JSHandle<JSTaggedValue> obj = JSNApiHelper::ToJSHandle(object); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/test/fuzztest/functionrefinherit_fuzzer/ |
D | functionrefinherit_fuzzer.cpp | 39 Local<FunctionRef> setLocal = JSNApiHelper::ToLocal<FunctionRef>(set); in FunctionRefInheritFuzzTest() 41 Local<FunctionRef> mapLocal = JSNApiHelper::ToLocal<FunctionRef>(map); in FunctionRefInheritFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefiscontainer_fuzzer/ |
D | jsvaluerefiscontainer_fuzzer.cpp | 52 Local<JSValueRef> isVector = JSNApiHelper::ToLocal<JSAPIVector>(argumentTag); in JSValueRefIsVectorFuzzTest() 92 Local<JSValueRef> regexp = JSNApiHelper::ToLocal<JSRegExp>(argumentTag); in JSValueRefIsRegExpFuzzTest() 115 Local<SetRef> isSet = JSNApiHelper::ToLocal<SetRef>(setTag); in JSValueRefIsSetFuzzTest() 138 Local<JSValueRef> isTreeMap = JSNApiHelper::ToLocal<JSAPITreeMap>(argumentTag); in JSValueRefIsTreeMapFuzzTest() 160 Local<JSValueRef> isTreeSet = JSNApiHelper::ToLocal<JSAPITreeSet>(argumentTag); in JSValueRefIsTreeSetFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefisjs_fuzzer/ |
D | jsvaluerefisjs_fuzzer.cpp | 39 Local<JSValueRef> jsArray = JSNApiHelper::ToLocal<JSTypedArray>(jsArrayTag); in JSValueRefIsJSArrayFuzzTest() 57 Local<JSValueRef> object = JSNApiHelper::ToLocal<JSValueRef>(jspri); in JSValueRefIsJSPrimitiveNumberFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefismodulenamespace_fuzzer/ |
D | jsvaluerefismodulenamespace_fuzzer.cpp | 61 Local<JSValueRef> moduleNamespace = JSNApiHelper::ToLocal<ModuleNamespace>(moduleNamespaceTag); in IsModuleNamespaceObjectFuzztest() 83 Local<JSValueRef> proxy = JSNApiHelper::ToLocal<JSProxy>(JSHandle<JSTaggedValue>(proxyHandle)); in IsProxyFuzztest() 107 Local<JSValueRef> object = JSNApiHelper::ToLocal<JSValueRef>(collatorTagHandleVal); in IsJSCollatorFuzztest() 132 Local<JSValueRef> object = JSNApiHelper::ToLocal<JSValueRef>(tagPlureRules); in IsJSPluralRulesFuzztest() 181 Local<JSValueRef> jsValueRef = JSNApiHelper::ToLocal<JSPrimitiveRef>(jsTaggedValue); in IsJSPrimitiveRefFuzztest() 206 Local<JSValueRef> jsValueRef = JSNApiHelper::ToLocal<ArrayRef>(Que); in IsDequeFuzztest() 219 return JSNApiHelper::ToLocal<JSValueRef>(jsTaggedValue); in CreateJSValueRef()
|
/arkcompiler/ets_runtime/test/fuzztest/weaksetref_fuzzer/ |
D | weaksetref_fuzzer.cpp | 48 Local<WeakSetRef> set = JSNApiHelper::ToLocal<WeakSetRef>(weakSetTag); in WeakSetRefGetSizeFuzzTest() 73 Local<WeakSetRef> set = JSNApiHelper::ToLocal<WeakSetRef>(weakSetTag); in WeakSetRefGetTotalElementsFuzzTest() 98 Local<WeakSetRef> set = JSNApiHelper::ToLocal<WeakSetRef>(weakSetTag); in WeakSetRefGetValueFuzzTest()
|
/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/test/fuzztest/mapiteratorefget_fuzzer/ |
D | mapiteratorefget_fuzzer.cpp | 81 Local<MapIteratorRef> object = JSNApiHelper::ToLocal<MapIteratorRef>(mapIteratorVal); in MapIteratorRefGetIndexFuzzTest() 103 Local<MapIteratorRef> object = JSNApiHelper::ToLocal<MapIteratorRef>(mapIteratorVal); in MapIteratorRefGetKindFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefisasync_fuzzer/ |
D | jsvaluerefisasync_fuzzer.cpp | 43 Local<JSValueRef> object = JSNApiHelper::ToLocal<JSValueRef>(asyncgefu); in JSValueRefIsAsyncGeneratorFunctionTrueFuzzTest() 81 Local<JSValueRef> object = JSNApiHelper::ToLocal<JSValueRef>(asyncgefu); in JSValueRefIsAsyncGeneratorObjectTrueFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/primitiverefgetvalue_fuzzer/ |
D | primitiverefgetvalue_fuzzer.cpp | 45 Local<PrimitiveRef> jsValueRef = JSNApiHelper::ToLocal<JSPrimitiveRef>(jsTaggedValue); in PrimitiveRefGetValueFuzztest()
|
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefisgenerator_fuzzer/ |
D | jsvaluerefisgenerator_fuzzer.cpp | 50 Local<JSValueRef> genObjectRef = JSNApiHelper::ToLocal<GeneratorObjectRef>(genObjTagHandleVal); in IsGeneratorObjectFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/getformatfunction_fuzzer/ |
D | getformatfunction_fuzzer.cpp | 47 … Local<NumberFormatRef> object = JSNApiHelper::ToLocal<NumberFormatRef>(numberformatTagHandleVal); in NumberGetFormatFunctionFuzzerTest()
|
/arkcompiler/ets_runtime/test/fuzztest/setrefgettotalelements_fuzzer/ |
D | setrefgettotalelements_fuzzer.cpp | 49 Local<SetRef> set = JSNApiHelper::ToLocal<SetRef>(setTag); in SetRefGetTotalElementsFuzztest()
|
/arkcompiler/ets_runtime/test/fuzztest/setrefgetsize_fuzzer/ |
D | setrefgetsize_fuzzer.cpp | 49 Local<SetRef> set = JSNApiHelper::ToLocal<SetRef>(setTag); in SetRefGetSizeFuzztest()
|
/arkcompiler/ets_runtime/test/fuzztest/publicapicollatorrefget_fuzzer/ |
D | publicapicollatorrefget_fuzzer.cpp | 47 Local<CollatorRef> object = JSNApiHelper::ToLocal<CollatorRef>(collatorTagHandleVal); in GetCompareFunctionFuzzTest()
|
/arkcompiler/ets_runtime/test/fuzztest/weakmapref_fuzzer/ |
D | weakmapref_fuzzer.cpp | 53 Local<WeakMapRef> map = JSNApiHelper::ToLocal<WeakMapRef>(weakMapTag); in WeakMapRefFuzzTest()
|