Home
last modified time | relevance | path

Searched refs:ArrayHelper (Results 1 – 16 of 16) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/base/tests/
Darray_helper_test.cpp49 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/
Darray_helper.cpp23 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 …]
Dsort_helper.cpp67 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 …]
Darray_helper.h36 class ArrayHelper {
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_array.cpp28 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 …]
Dbuiltins_shared_array.cpp31 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/
Djs_array.cpp22 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()
Djs_stable_array.cpp670 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()
Dtagged_list.cpp464 … compareResult = base::ArrayHelper::SortCompare(thread, callbackFn, middleValue, presentValue); in Sort()
/arkcompiler/ets_runtime/ecmascript/shared_objects/
Djs_shared_array.cpp22 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/
Dvalue_serializer.cpp437 int len = base::ArrayHelper::GetArrayLength(thread, transfer); in PrepareTransfer()
461 int len = base::ArrayHelper::GetArrayLength(thread, cloneList); in PrepareClone()
/arkcompiler/ets_runtime/
Dlibark_jsruntime.map324 panda::ecmascript::base::ArrayHelper::GetLength*;
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_arraylist.cpp599 double compareResult = base::ArrayHelper::SortCompare(thread, callbackFnHandle, in Sort()
Dcontainers_vector.cpp768 …double compareResult = base::ArrayHelper::SortCompare(thread, callbackFnHandle, middleValue, prese… in Sort()
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs-inl.h58 using ArrayHelper = base::ArrayHelper; variable
3376 … double compareResult = ArrayHelper::StringSortCompare(thread, middleString, presentString); in ArrayNumberSort()
Druntime_stubs.cpp3645 int64_t len = ArrayHelper::GetArrayLength(thread, JSHandle<JSTaggedValue>(thisObjHandle)); in RuntimeArraySort()