Home
last modified time | relevance | path

Searched refs:cloneArray (Results 1 – 2 of 2) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/tests/
Djs_array_test.cpp200 JSHandle<JSArray> cloneArray = factory->CloneArrayLiteral(array); in HWTEST_F_L0() local
203 … JSTaggedValue value1 = TaggedArray::Cast(cloneArray->GetElements().GetTaggedObject())->Get(i); in HWTEST_F_L0()
210 EXPECT_EQ(cloneArray->GetElements().GetTaggedObject(), array->GetElements().GetTaggedObject()); in HWTEST_F_L0()
215 … JSArray::FastSetPropertyByValue(thread, JSHandle<JSTaggedValue>(cloneArray), 0, lengthKeyHandle); in HWTEST_F_L0()
217 EXPECT_TRUE(TaggedArray::Cast(cloneArray->GetElements().GetTaggedObject())->Get(0) != in HWTEST_F_L0()
221 …EXPECT_TRUE(cloneArray->GetElements().GetTaggedObject() != array->GetElements().GetTaggedObject()); in HWTEST_F_L0()
225 … JSTaggedValue value1 = TaggedArray::Cast(cloneArray->GetElements().GetTaggedObject())->Get(i); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_array_test.cpp641 …JSHandle<JSArray> cloneArray = thread->GetEcmaVM()->GetFactory()->CloneArrayLiteral(JSHandle<JSArr… in HWTEST_F_L0() local
645 ecmaRuntimeCallInfo1->SetThis(cloneArray.GetTaggedValue()); in HWTEST_F_L0()
663 EXPECT_EQ(JSArray::GetProperty(thread, JSHandle<JSTaggedValue>(cloneArray), in HWTEST_F_L0()
665 JSObject::GetOwnProperty(thread, JSHandle<JSObject>(cloneArray), key0, descRes); in HWTEST_F_L0()
667 JSObject::GetOwnProperty(thread, JSHandle<JSObject>(cloneArray), key1, descRes); in HWTEST_F_L0()
669 JSObject::GetOwnProperty(thread, JSHandle<JSObject>(cloneArray), key2, descRes); in HWTEST_F_L0()
828 JSHandle<JSArray> cloneArray = factory->CloneArrayLiteral(array); in HWTEST_F_L0() local
832 ecmaRuntimeCallInfo1->SetThis(cloneArray.GetTaggedValue()); in HWTEST_F_L0()
1168 JSHandle<JSArray> cloneArray = factory->CloneArrayLiteral(array); in HWTEST_F_L0() local
1172 ecmaRuntimeCallInfo1->SetThis(cloneArray.GetTaggedValue()); in HWTEST_F_L0()
[all …]