Home
last modified time | relevance | path

Searched refs:jsArray (Results 1 – 20 of 20) sorted by relevance

/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/gtest_plugin/
Dets_interop_js_gtest.cpp66 napi_value jsArray = jsArgv.front(); in Main() local
68 status = napi_get_array_length(env, jsArray, &jsArrayLength); in Main()
74 status = napi_get_element(env, jsArray, i, &jsArrayElement); in Main()
/arkcompiler/ets_runtime/test/fuzztest/jsvaluerefisjs_fuzzer/
Djsvaluerefisjs_fuzzer.cpp39 Local<JSValueRef> jsArray = JSNApiHelper::ToLocal<JSTypedArray>(jsArrayTag); in JSValueRefIsJSArrayFuzzTest() local
40 jsArray->IsJSArray(vm); in JSValueRefIsJSArrayFuzzTest()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_set_test.cpp73 JSArray *jsArray = JSArray::Cast(GetThis(argv)->GetTaggedObject()); in TestFunc() local
74 uint32_t length = jsArray->GetArrayLength() + 1U; in TestFunc()
75 jsArray->SetArrayLength(argv->GetThread(), length); in TestFunc()
223 JSHandle<JSArray> jsArray(JSArray::ArrayCreate(thread, JSTaggedNumber(0))); in HWTEST_F_L0() local
231 ecmaRuntimeCallInfo1->SetCallArg(1, jsArray.GetTaggedValue()); in HWTEST_F_L0()
238 EXPECT_EQ(jsArray->GetArrayLength(), 5U); in HWTEST_F_L0()
Dbuiltins_map_test.cpp73 JSArray *jsArray = JSArray::Cast(GetThis(argv)->GetTaggedObject()); in TestFunc() local
74 int length = jsArray->GetArrayLength() + num; in TestFunc()
75 jsArray->SetArrayLength(argv->GetThread(), length); in TestFunc()
206 JSHandle<JSArray> jsArray(JSArray::ArrayCreate(thread, JSTaggedNumber(0))); in HWTEST_F_L0() local
213 ecmaRuntimeCallInfo1->SetCallArg(1, jsArray.GetTaggedValue()); in HWTEST_F_L0()
220 EXPECT_EQ(jsArray->GetArrayLength(), 10U); in HWTEST_F_L0()
Dbuiltins_collator_test.cpp174 JSArray *jsArray = in HWTEST_F_L0() local
176 JSHandle<JSObject> jsObject(thread, jsArray); in HWTEST_F_L0()
223 JSArray *jsArray = in HWTEST_F_L0() local
225 JSHandle<JSObject> jsObject(thread, jsArray); in HWTEST_F_L0()
279 JSArray *jsArray = in HWTEST_F_L0() local
281 JSHandle<JSObject> jsObject(thread, jsArray); in HWTEST_F_L0()
Dbuiltins_date_time_format_first_test.cpp175 JSArray *jsArray = in HWTEST_F_L0() local
177 JSHandle<JSObject> jsObject(thread, jsArray); in HWTEST_F_L0()
215 JSArray *jsArray = in HWTEST_F_L0() local
217 JSHandle<JSObject> jsObject(thread, jsArray); in HWTEST_F_L0()
Dbuiltins_array_test.cpp95 JSArray *jsArray = JSArray::Cast(GetThis(argv)->GetTaggedObject()); in TestForEachFunc() local
96 uint32_t length = jsArray->GetArrayLength() + 1U; in TestForEachFunc()
97 jsArray->SetArrayLength(argv->GetThread(), length); in TestForEachFunc()
514 JSHandle<JSArray> jsArray = factory->NewJSArray(); in HWTEST_F_L0() local
521 ecmaRuntimeCallInfo1->SetCallArg(1, jsArray.GetTaggedValue()); in HWTEST_F_L0()
550 JSHandle<JSArray> jsArray(JSArray::ArrayCreate(thread, JSTaggedNumber(0))); in HWTEST_F_L0() local
557 ecmaRuntimeCallInfo1->SetCallArg(1, jsArray.GetTaggedValue()); in HWTEST_F_L0()
882 JSHandle<JSArray> jsArray(JSArray::ArrayCreate(thread, JSTaggedNumber(0))); in HWTEST_F_L0() local
889 ecmaRuntimeCallInfo1->SetCallArg(1, jsArray.GetTaggedValue()); in HWTEST_F_L0()
921 JSHandle<JSArray> jsArray(JSArray::ArrayCreate(thread, JSTaggedNumber(0))); in HWTEST_F_L0() local
[all …]
Dbuiltins_typedarray_test.cpp97 JSArray *jsArray = JSArray::Cast(GetThis(argv)->GetTaggedObject()); in TestForEachFunc() local
98 uint32_t length = jsArray->GetArrayLength() + 1U; in TestForEachFunc()
99 jsArray->SetArrayLength(argv->GetThread(), length); in TestForEachFunc()
Dbuiltins_number_format_test.cpp112 JSArray *jsArray = in BuiltinsFormatTest() local
114 JSHandle<JSObject> jsObject(thread, jsArray); in BuiltinsFormatTest()
Dbuiltins_date_time_format_second_test.cpp220 JSArray *jsArray = in JSDateTime() local
222 JSHandle<JSObject> jsObject(thread, jsArray); in JSDateTime()
Dbuiltins_json_test.cpp529 JSHandle<JSTaggedValue> jsArray(JSArray::CreateArrayFromList(thread, array)); in HWTEST_F_L0() local
535 ecmaRuntimeCallInfo1->SetCallArg(0, jsArray.GetTaggedValue()); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/interpreter/
Dslow_runtime_stub.cpp54 JSHandle<JSTaggedValue> jsArray(thread, array); in CallSpread() local
56 return RuntimeStubs::RuntimeCallSpread(thread, jsFunc, taggedObj, jsArray); in CallSpread()
494 JSHandle<JSTaggedValue> jsArray(thread, array); in NewObjApply() local
495 return RuntimeStubs::RuntimeNewObjApply(thread, funcHandle, jsArray); in NewObjApply()
1020 JSHandle<JSTaggedValue> jsArray(thread, array); in SuperCallSpread() local
1021 return RuntimeStubs::RuntimeSuperCallSpread(thread, funcHandle, newTargetHandle, jsArray); in SuperCallSpread()
1071 JSHandle<JSTaggedValue> jsArray(thread, array); in GetCallSpreadArgs() local
1072 return RuntimeStubs::RuntimeGetCallSpreadArgs(thread, jsArray); in GetCallSpreadArgs()
/arkcompiler/ets_runtime/ecmascript/tests/
Djs_locale_test.cpp176 JSHandle<JSArray> jsArray = factory->NewJSArray(); in HWTEST_F_L0() local
183 …JSHandle<JSObject> recordObj = JSLocale::PutElement(thread, index, jsArray, fieldTypeString, value… in HWTEST_F_L0()
189 …EXPECT_TRUE(JSObject::GetProperty(thread, JSHandle<JSObject>(jsArray), indexKey).GetValue()->IsECM… in HWTEST_F_L0()
Djs_api_lightweightset_test.cpp147 JSHandle<JSTaggedValue> jsArray = JSArray::ArrayCreate(thread, JSTaggedNumber(0)); in HWTEST_F_L0() local
155 result = JSAPILightWeightSet::Equal(thread, lws, jsArray); in HWTEST_F_L0()
Ddump_test.cpp772 JSHandle<JSArray> jsArray = factory->NewJSArray(); in HWTEST_F_L0() local
773 DUMP_FOR_HANDLE(jsArray); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/napi/test/
Djsnapi_second_tests.cpp683 Local<JSValueRef> jsArray = JSNApiHelper::ToLocal<JSTypedArray>(jsArrayTag); in HWTEST_F_L0() local
684 EXPECT_TRUE(jsArray->IsJSArray(vm_)); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/
Djs_serializer.cpp1456 JSHandle<JSArray> jsArray = thread_->GetEcmaVM()->GetFactory()->NewJSArray(); in ReadJSArray() local
1457 JSHandle<JSTaggedValue> arrayTag = JSHandle<JSTaggedValue>::Cast(jsArray); in ReadJSArray()
1466 jsArray->SetLength(arrLength); in ReadJSArray()
/arkcompiler/ets_runtime/ecmascript/napi/
Djsnapi_expo.cpp1740 JSHandle<JSTaggedValue> jsArray(JSArray::CreateArrayFromList(thread, array)); in GetOwnPropertyNames() local
1741 return JSNApiHelper::ToLocal<ArrayRef>(jsArray); in GetOwnPropertyNames()
1753 JSHandle<JSTaggedValue> jsArray(JSArray::CreateArrayFromList(thread, array)); in GetAllPropertyNames() local
1754 return JSNApiHelper::ToLocal<ArrayRef>(jsArray); in GetAllPropertyNames()
1764 JSHandle<JSTaggedValue> jsArray(JSArray::CreateArrayFromList(thread, array)); in GetOwnEnumerablePropertyNames() local
1765 return JSNApiHelper::ToLocal<ArrayRef>(jsArray); in GetOwnEnumerablePropertyNames()
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs-inl.h2400 …ue RuntimeStubs::RuntimeGetCallSpreadArgs(JSThread *thread, const JSHandle<JSTaggedValue> &jsArray) in RuntimeGetCallSpreadArgs() argument
2402 uint32_t argvMayMaxLength = JSHandle<JSArray>::Cast(jsArray)->GetArrayLength(); in RuntimeGetCallSpreadArgs()
2406 JSHandle<JSTaggedValue> itor = JSIterator::GetIterator(thread, jsArray); in RuntimeGetCallSpreadArgs()
2409 if (jsArray->IsStableJSArray(thread) && itor->IsJSArrayIterator()) { in RuntimeGetCallSpreadArgs()
2410 JSHandle<TaggedArray> srcElements(thread, JSHandle<JSObject>::Cast(jsArray)->GetElements()); in RuntimeGetCallSpreadArgs()
Druntime_stubs.cpp977 …JSHandle<JSTaggedValue> jsArray = GetHArg<JSTaggedValue>(argv, argc, 0); // 0: means the zeroth p… in DEF_RUNTIME_STUBS() local
978 return RuntimeGetCallSpreadArgs(thread, jsArray).GetRawData(); in DEF_RUNTIME_STUBS()