Home
last modified time | relevance | path

Searched refs:JSNApiHelper (Results 1 – 25 of 49) sorted by relevance

12

/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi_expo.cpp207 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 …]
Djsnapi.cpp207 …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()
247JSNApiHelper::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 …]
DJSNapi接口说明.md1868 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/
Ddebugger_api.cpp143 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/
Dpublicapilocalregexpref_fuzzer.cpp48 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/
Djsvaluerefisjsprimitive_fuzzer.cpp40 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/
Djsnapi_second_tests.cpp103 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 …]
Djsnapi_first_tests.cpp103 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 …]
Djsnapi_third_tests.cpp103 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/
Dfunctionrefinherit_fuzzer.cpp39 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/
Djsvaluerefiscontainer_fuzzer.cpp52 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/
Djsvaluerefisjs_fuzzer.cpp39 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/
Djsvaluerefismodulenamespace_fuzzer.cpp61 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/
Dweaksetref_fuzzer.cpp48 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/
Djs_relative_time_format_test.cpp123 …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()
Djs_number_format_test.cpp210 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/
Dmapiteratorefget_fuzzer.cpp81 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/
Djsvaluerefisasync_fuzzer.cpp43 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/
Dprimitiverefgetvalue_fuzzer.cpp45 Local<PrimitiveRef> jsValueRef = JSNApiHelper::ToLocal<JSPrimitiveRef>(jsTaggedValue); in PrimitiveRefGetValueFuzztest()
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefisgenerator_fuzzer/
Djsvaluerefisgenerator_fuzzer.cpp50 Local<JSValueRef> genObjectRef = JSNApiHelper::ToLocal<GeneratorObjectRef>(genObjTagHandleVal); in IsGeneratorObjectFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/getformatfunction_fuzzer/
Dgetformatfunction_fuzzer.cpp47 … Local<NumberFormatRef> object = JSNApiHelper::ToLocal<NumberFormatRef>(numberformatTagHandleVal); in NumberGetFormatFunctionFuzzerTest()
/arkcompiler/ets_runtime/test/fuzztest/setrefgettotalelements_fuzzer/
Dsetrefgettotalelements_fuzzer.cpp49 Local<SetRef> set = JSNApiHelper::ToLocal<SetRef>(setTag); in SetRefGetTotalElementsFuzztest()
/arkcompiler/ets_runtime/test/fuzztest/setrefgetsize_fuzzer/
Dsetrefgetsize_fuzzer.cpp49 Local<SetRef> set = JSNApiHelper::ToLocal<SetRef>(setTag); in SetRefGetSizeFuzztest()
/arkcompiler/ets_runtime/test/fuzztest/publicapicollatorrefget_fuzzer/
Dpublicapicollatorrefget_fuzzer.cpp47 Local<CollatorRef> object = JSNApiHelper::ToLocal<CollatorRef>(collatorTagHandleVal); in GetCompareFunctionFuzzTest()
/arkcompiler/ets_runtime/test/fuzztest/weakmapref_fuzzer/
Dweakmapref_fuzzer.cpp53 Local<WeakMapRef> map = JSNApiHelper::ToLocal<WeakMapRef>(weakMapTag); in WeakMapRefFuzzTest()

12