/arkcompiler/runtime_core/static_core/plugins/ets/tests/interop_js/gtest_plugin/ |
D | ets_interop_js_gtest.cpp | 66 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/ |
D | jsvaluerefisjs_fuzzer.cpp | 39 Local<JSValueRef> jsArray = JSNApiHelper::ToLocal<JSTypedArray>(jsArrayTag); in JSValueRefIsJSArrayFuzzTest() local 40 jsArray->IsJSArray(vm); in JSValueRefIsJSArrayFuzzTest()
|
/arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
D | builtins_set_test.cpp | 73 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()
|
D | builtins_map_test.cpp | 73 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()
|
D | builtins_collator_test.cpp | 174 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()
|
D | builtins_date_time_format_first_test.cpp | 175 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()
|
D | builtins_array_test.cpp | 95 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 …]
|
D | builtins_typedarray_test.cpp | 97 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()
|
D | builtins_number_format_test.cpp | 112 JSArray *jsArray = in BuiltinsFormatTest() local 114 JSHandle<JSObject> jsObject(thread, jsArray); in BuiltinsFormatTest()
|
D | builtins_date_time_format_second_test.cpp | 220 JSArray *jsArray = in JSDateTime() local 222 JSHandle<JSObject> jsObject(thread, jsArray); in JSDateTime()
|
D | builtins_json_test.cpp | 529 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/ |
D | slow_runtime_stub.cpp | 54 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/ |
D | js_locale_test.cpp | 176 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()
|
D | js_api_lightweightset_test.cpp | 147 JSHandle<JSTaggedValue> jsArray = JSArray::ArrayCreate(thread, JSTaggedNumber(0)); in HWTEST_F_L0() local 155 result = JSAPILightWeightSet::Equal(thread, lws, jsArray); in HWTEST_F_L0()
|
D | dump_test.cpp | 772 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/ |
D | jsnapi_second_tests.cpp | 683 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/ |
D | js_serializer.cpp | 1456 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/ |
D | jsnapi_expo.cpp | 1740 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/ |
D | runtime_stubs-inl.h | 2400 …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()
|
D | runtime_stubs.cpp | 977 …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()
|