| /arkcompiler/ets_runtime/ecmascript/base/tests/ |
| D | array_helper_test.cpp | 49 EXPECT_FALSE(ArrayHelper::IsConcatSpreadable(thread, handleValue)); in HWTEST_F_L0() 50 EXPECT_TRUE(ArrayHelper::IsConcatSpreadable(thread, handleArray)); in HWTEST_F_L0() 51 EXPECT_TRUE(ArrayHelper::IsConcatSpreadable(thread, handleObjectArr)); in HWTEST_F_L0() 72 …int32_t resultValue1 = ArrayHelper::SortCompare(thread, callbackfnHandle, handleValueX1, handleVal… in HWTEST_F_L0() 73 …int32_t resultValue2 = ArrayHelper::SortCompare(thread, callbackfnHandle, handleValueX1, handleVal… in HWTEST_F_L0() 74 …int32_t resultValue3 = ArrayHelper::SortCompare(thread, callbackfnHandle, handleValueX2, handleVal… in HWTEST_F_L0() 75 …int32_t resultValue4 = ArrayHelper::SortCompare(thread, callbackfnHandle, handleValueX2, handleVal… in HWTEST_F_L0() 76 …int32_t resultValue5 = ArrayHelper::SortCompare(thread, callbackfnHandle, handleValueX3, handleVal… in HWTEST_F_L0() 77 …int32_t resultValue6 = ArrayHelper::SortCompare(thread, callbackfnHandle, handleValueX2, handleVal… in HWTEST_F_L0() 103 EXPECT_EQ(ArrayHelper::GetLength(thread, arrayHandle), 10U); in HWTEST_F_L0() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | array_helper.cpp | 23 int64_t ArrayHelper::GetStartIndex(JSThread *thread, const JSHandle<JSTaggedValue> &startIndexHandl… in GetStartIndex() 52 int64_t ArrayHelper::GetStartIndexFromArgs(JSThread *thread, EcmaRuntimeCallInfo *argv, in GetStartIndexFromArgs() 63 int64_t ArrayHelper::GetLastStartIndex(JSThread *thread, const JSHandle<JSTaggedValue> &startIndexH… in GetLastStartIndex() 90 int64_t ArrayHelper::GetLastStartIndexFromArgs(JSThread *thread, EcmaRuntimeCallInfo *argv, in GetLastStartIndexFromArgs() 101 bool ArrayHelper::ElementIsStrictEqualTo(JSThread *thread, const JSHandle<JSTaggedValue> &thisObjVa… in ElementIsStrictEqualTo() 118 bool ArrayHelper::IsConcatSpreadable(JSThread *thread, const JSHandle<JSTaggedValue> &obj) in IsConcatSpreadable() 145 double ArrayHelper::SortCompare(JSThread *thread, const JSHandle<JSTaggedValue> &callbackfnHandle, in SortCompare() 222 double ArrayHelper::StringSortCompare(JSThread *thread, const JSHandle<JSTaggedValue> &valueX, in StringSortCompare() 242 int64_t ArrayHelper::GetLength(JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle) in GetLength() 261 int64_t ArrayHelper::GetArrayLength(JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle) in GetArrayLength() [all …]
|
| D | sort_helper.cpp | 67 double order = ArrayHelper::SortCompare(thread, fn, runHiValue, previousValue); in CountRunAndMakeAscending() 72 order = ArrayHelper::SortCompare(thread, fn, runHiValue, previousValue); in CountRunAndMakeAscending() 119 if (ArrayHelper::SortCompare(thread, fn, pivotVal, midVal) < 0) { in BinarySort() 216 double order = ArrayHelper::SortCompare(thread_, fn_, key, baseHintElement); in GallopLeft() 221 order = ArrayHelper::SortCompare(thread_, fn_, key, offsetElement); in GallopLeft() 239 order = ArrayHelper::SortCompare(thread_, fn_, key, offsetElement); in GallopLeft() 260 if (ArrayHelper::SortCompare(thread_, fn_, key, mElement) > 0) { in GallopLeft() 279 double order = ArrayHelper::SortCompare(thread_, fn_, key, baseHintElement); in GallopRight() 284 order = ArrayHelper::SortCompare(thread_, fn_, key, offsetElement); in GallopRight() 303 order = ArrayHelper::SortCompare(thread_, fn_, key, offsetElement); in GallopRight() [all …]
|
| D | array_helper.h | 36 class ArrayHelper {
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_array.cpp | 28 using ArrayHelper = base::ArrayHelper; typedef 245 int64_t len = ArrayHelper::GetArrayLength(thread, arrayLike); in From() 265 len = ArrayHelper::GetArrayLength(thread, arrayLike); in From() 325 int64_t len = ArrayHelper::GetArrayLength(thread, arrayLike); in From() 513 bool isSpreadable = ArrayHelper::IsConcatSpreadable(thread, ele); in Concat() 520 int64_t len = ArrayHelper::GetArrayLength(thread, ele); in Concat() 593 int64_t len = ArrayHelper::GetLength(thread, thisObjVal); in CopyWithin() 737 uint64_t len = static_cast<uint64_t>(ArrayHelper::GetArrayLength(thread, thisObjVal)); in Every() 831 int64_t len = ArrayHelper::GetArrayLength(thread, thisObjVal); in Fill() 942 uint64_t len = static_cast<uint64_t>(ArrayHelper::GetArrayLength(thread, thisObjVal)); in Filter() [all …]
|
| D | builtins_shared_array.cpp | 31 using ArrayHelper = base::ArrayHelper; typedef 244 int64_t len = ArrayHelper::GetArrayLength(thread, arrayLike); in From() 439 bool isSpreadable = ArrayHelper::IsConcatSpreadable(thread, ele); in Concat() 446 int64_t len = ArrayHelper::GetArrayLength(thread, ele); in Concat() 576 int64_t len = ArrayHelper::GetLength(thread, thisObjVal); in Fill() 700 uint64_t len = static_cast<uint64_t>(ArrayHelper::GetArrayLength(thread, thisObjVal)); in Filter() 771 int64_t len = ArrayHelper::GetLength(thread, thisObjVal); in Find() 838 uint64_t len = static_cast<uint64_t>(ArrayHelper::GetLength(thread, thisObjVal)); in FindIndex() 913 uint64_t len = static_cast<uint64_t>(ArrayHelper::GetArrayLength(thread, thisObjVal)); in ForEach() 975 int64_t length = ArrayHelper::GetLength(thread, thisObjVal); in IndexOfSlowPath() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_array.cpp | 22 using base::ArrayHelper; 482 int64_t len = ArrayHelper::GetArrayLength(thread, obj); in Sort() 495 ArrayHelper::SortIndexedProperties(thread, obj, len, fn, base::HolesType::SKIP_HOLES); in Sort() 578 int64_t compareRet = base::ArrayHelper::SortCompare(thread, fn, leftValue, rightValue); in MergeSortedElements() 619 … double compareResult = base::ArrayHelper::SortCompare(thread, fn, middleValue, presentValue); in SortElementsByInsertionSort() 654 … int32_t compareResult = base::ArrayHelper::SortCompare(thread, fn, middleValue, presentValue); in SortElementsByObject()
|
| D | js_stable_array.cpp | 670 uint64_t len = static_cast<uint64_t>(base::ArrayHelper::GetArrayLength(thread, thisObjVal)); in HandleFindIndexOfStable() 740 if (base::ArrayHelper::GetArrayLength(thread, thisObjVal) - 1 < k) { in HandleFindLastIndexOfStable() 757 uint64_t len = static_cast<uint64_t>(base::ArrayHelper::GetArrayLength(thread, thisObjVal)); in HandleEveryOfStable() 802 uint64_t len = static_cast<uint64_t>(base::ArrayHelper::GetArrayLength(thread, thisObjVal)); in HandleSomeOfStable() 920 bool found = base::ArrayHelper::ElementIsStrictEqualTo( in FindRawData() 963 bool found = base::ArrayHelper::ElementIsStrictEqualTo( in FindLastRawData() 1124 uint64_t len = static_cast<uint64_t>(base::ArrayHelper::GetArrayLength(thread, thisObjVal)); in Filter() 1249 int64_t thisLen = base::ArrayHelper::GetArrayLength(thread, thisObjVal); in Concat() 1670 int64_t len = static_cast<int64_t>(base::ArrayHelper::GetArrayLength(thread, thisObjVal)); in HandleReduceRightOfStable() 1701 … int64_t newLen = static_cast<int64_t>(base::ArrayHelper::GetArrayLength(thread, thisObjVal)); in HandleReduceRightOfStable()
|
| D | tagged_list.cpp | 464 … compareResult = base::ArrayHelper::SortCompare(thread, callbackFn, middleValue, presentValue); in Sort()
|
| /arkcompiler/ets_runtime/ecmascript/shared_objects/ |
| D | js_shared_array.cpp | 22 using base::ArrayHelper; 465 int64_t len = ArrayHelper::GetArrayLength(thread, obj); in Sort() 478 ArrayHelper::SortIndexedProperties(thread, obj, len, fn, base::HolesType::SKIP_HOLES); in Sort()
|
| /arkcompiler/ets_runtime/ecmascript/serializer/ |
| D | value_serializer.cpp | 437 int len = base::ArrayHelper::GetArrayLength(thread, transfer); in PrepareTransfer() 461 int len = base::ArrayHelper::GetArrayLength(thread, cloneList); in PrepareClone()
|
| /arkcompiler/ets_runtime/ |
| D | libark_jsruntime.map | 324 panda::ecmascript::base::ArrayHelper::GetLength*;
|
| /arkcompiler/ets_runtime/ecmascript/containers/ |
| D | containers_arraylist.cpp | 599 double compareResult = base::ArrayHelper::SortCompare(thread, callbackFnHandle, in Sort()
|
| D | containers_vector.cpp | 768 …double compareResult = base::ArrayHelper::SortCompare(thread, callbackFnHandle, middleValue, prese… in Sort()
|
| /arkcompiler/ets_runtime/ecmascript/stubs/ |
| D | runtime_stubs-inl.h | 58 using ArrayHelper = base::ArrayHelper; variable 3376 … double compareResult = ArrayHelper::StringSortCompare(thread, middleString, presentString); in ArrayNumberSort()
|
| D | runtime_stubs.cpp | 3645 int64_t len = ArrayHelper::GetArrayLength(thread, JSHandle<JSTaggedValue>(thisObjHandle)); in RuntimeArraySort()
|