| /arkcompiler/ets_runtime/ecmascript/base/tests/ |
| D | array_helper_test.cpp | 72 EXPECT_FALSE(ArrayHelper::IsConcatSpreadable(thread, handleValue)); in HWTEST_F_L0() 73 EXPECT_TRUE(ArrayHelper::IsConcatSpreadable(thread, handleArray)); in HWTEST_F_L0() 74 EXPECT_TRUE(ArrayHelper::IsConcatSpreadable(thread, handleObjectArr)); in HWTEST_F_L0() 95 …int32_t resultValue1 = ArrayHelper::SortCompare(thread, callbackfnHandle, handleValueX1, handleVal… in HWTEST_F_L0() 96 …int32_t resultValue2 = ArrayHelper::SortCompare(thread, callbackfnHandle, handleValueX1, handleVal… in HWTEST_F_L0() 97 …int32_t resultValue3 = ArrayHelper::SortCompare(thread, callbackfnHandle, handleValueX2, handleVal… in HWTEST_F_L0() 98 …int32_t resultValue4 = ArrayHelper::SortCompare(thread, callbackfnHandle, handleValueX2, handleVal… in HWTEST_F_L0() 99 …int32_t resultValue5 = ArrayHelper::SortCompare(thread, callbackfnHandle, handleValueX3, handleVal… in HWTEST_F_L0() 100 …int32_t resultValue6 = ArrayHelper::SortCompare(thread, callbackfnHandle, handleValueX2, handleVal… in HWTEST_F_L0() 126 EXPECT_EQ(ArrayHelper::GetLength(thread, arrayHandle), 10U); in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | array_helper.cpp | 30 int64_t ArrayHelper::GetStartIndex(JSThread *thread, const JSHandle<JSTaggedValue> &startIndexHandl… in GetStartIndex() 59 int64_t ArrayHelper::GetStartIndexFromArgs(JSThread *thread, EcmaRuntimeCallInfo *argv, in GetStartIndexFromArgs() 70 int64_t ArrayHelper::GetLastStartIndex(JSThread *thread, const JSHandle<JSTaggedValue> &startIndexH… in GetLastStartIndex() 97 int64_t ArrayHelper::GetLastStartIndexFromArgs(JSThread *thread, EcmaRuntimeCallInfo *argv, in GetLastStartIndexFromArgs() 108 bool ArrayHelper::ElementIsStrictEqualTo(JSThread *thread, const JSHandle<JSTaggedValue> &thisObjVa… in ElementIsStrictEqualTo() 123 bool ArrayHelper::IsConcatSpreadable(JSThread *thread, const JSHandle<JSTaggedValue> &obj) in IsConcatSpreadable() 150 double ArrayHelper::SortCompare(JSThread *thread, const JSHandle<JSTaggedValue> &callbackfnHandle, in SortCompare() 227 double ArrayHelper::StringSortCompare(JSThread *thread, const JSHandle<JSTaggedValue> &valueX, in StringSortCompare() 247 int64_t ArrayHelper::GetLength(JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle) in GetLength() 263 int64_t ArrayHelper::GetArrayLength(JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle) in GetArrayLength() [all …]
|
| D | array_helper.h | 36 class ArrayHelper {
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_array.cpp | 43 using ArrayHelper = base::ArrayHelper; typedef 275 int64_t len = ArrayHelper::GetArrayLength(thread, arrayLike); in From() 461 bool isSpreadable = ArrayHelper::IsConcatSpreadable(thread, ele); in Concat() 468 int64_t len = ArrayHelper::GetArrayLength(thread, ele); in Concat() 538 int64_t len = ArrayHelper::GetLength(thread, thisObjVal); in CopyWithin() 681 uint64_t len = static_cast<uint64_t>(ArrayHelper::GetArrayLength(thread, thisObjVal)); in Every() 780 int64_t len = ArrayHelper::GetLength(thread, thisObjVal); in Fill() 898 uint64_t len = static_cast<uint64_t>(ArrayHelper::GetArrayLength(thread, thisObjVal)); in Filter() 960 int64_t len = ArrayHelper::GetLength(thread, thisObjVal); in Find() 1022 uint64_t len = static_cast<uint64_t>(ArrayHelper::GetLength(thread, thisObjVal)); in FindIndex() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_array.cpp | 28 using base::ArrayHelper; 417 int64_t len = ArrayHelper::GetArrayLength(thread, obj); in Sort() 430 ArrayHelper::SortIndexedProperties(thread, obj, len, fn, base::HolesType::SKIP_HOLES); in Sort() 477 … double compareResult = base::ArrayHelper::SortCompare(thread, fn, middleValue, presentValue); in SortElements() 512 … int32_t compareResult = base::ArrayHelper::SortCompare(thread, fn, middleValue, presentValue); in SortElementsByObject()
|
| D | js_stable_array.cpp | 329 uint64_t len = static_cast<uint64_t>(base::ArrayHelper::GetArrayLength(thread, thisObjVal)); in HandleFindIndexOfStable() 399 if (base::ArrayHelper::GetArrayLength(thread, thisObjVal) - 1 < k) { in HandleFindLastIndexOfStable() 416 uint64_t len = static_cast<uint64_t>(base::ArrayHelper::GetArrayLength(thread, thisObjVal)); in HandleEveryOfStable() 534 bool found = base::ArrayHelper::ElementIsStrictEqualTo( in FindRawData() 577 bool found = base::ArrayHelper::ElementIsStrictEqualTo( in FindLastRawData() 738 uint64_t len = static_cast<uint64_t>(base::ArrayHelper::GetArrayLength(thread, thisObjVal)); in Filter() 852 int64_t thisLen = base::ArrayHelper::GetArrayLength(thread, thisObjVal); in Concat()
|
| D | tagged_list.cpp | 467 … compareResult = base::ArrayHelper::SortCompare(thread, callbackFn, middleValue, presentValue); in Sort()
|
| D | js_serializer.cpp | 2038 int len = base::ArrayHelper::GetArrayLength(thread, transfer); in PrepareTransfer()
|
| /arkcompiler/ets_runtime/ecmascript/serializer/ |
| D | value_serializer.cpp | 382 int len = base::ArrayHelper::GetArrayLength(thread, transfer); in PrepareTransfer() 406 int len = base::ArrayHelper::GetArrayLength(thread, cloneList); in PrepareClone()
|
| /arkcompiler/ets_runtime/ecmascript/containers/ |
| D | containers_vector.cpp | 773 …double compareResult = base::ArrayHelper::SortCompare(thread, callbackFnHandle, middleValue, prese… in Sort()
|
| D | containers_arraylist.cpp | 596 double compareResult = base::ArrayHelper::SortCompare(thread, callbackFnHandle, in Sort()
|
| /arkcompiler/ets_runtime/ecmascript/stubs/ |
| D | runtime_stubs-inl.h | 50 using ArrayHelper = base::ArrayHelper; variable 3126 … double compareResult = ArrayHelper::StringSortCompare(thread, middleString, presentString); in ArrayNumberSort()
|
| D | runtime_stubs.cpp | 3136 int64_t len = ArrayHelper::GetArrayLength(thread, JSHandle<JSTaggedValue>(thisObjHandle)); in RuntimeArraySort()
|