Home
last modified time | relevance | path

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

/arkcompiler/ets_runtime/ecmascript/base/tests/
Darray_helper_test.cpp72 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/
Darray_helper.cpp30 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 …]
Darray_helper.h36 class ArrayHelper {
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_array.cpp43 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/
Djs_array.cpp28 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()
Djs_stable_array.cpp329 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()
Dtagged_list.cpp467 … compareResult = base::ArrayHelper::SortCompare(thread, callbackFn, middleValue, presentValue); in Sort()
Djs_serializer.cpp2038 int len = base::ArrayHelper::GetArrayLength(thread, transfer); in PrepareTransfer()
/arkcompiler/ets_runtime/ecmascript/serializer/
Dvalue_serializer.cpp382 int len = base::ArrayHelper::GetArrayLength(thread, transfer); in PrepareTransfer()
406 int len = base::ArrayHelper::GetArrayLength(thread, cloneList); in PrepareClone()
/arkcompiler/ets_runtime/ecmascript/containers/
Dcontainers_vector.cpp773 …double compareResult = base::ArrayHelper::SortCompare(thread, callbackFnHandle, middleValue, prese… in Sort()
Dcontainers_arraylist.cpp596 double compareResult = base::ArrayHelper::SortCompare(thread, callbackFnHandle, in Sort()
/arkcompiler/ets_runtime/ecmascript/stubs/
Druntime_stubs-inl.h50 using ArrayHelper = base::ArrayHelper; variable
3126 … double compareResult = ArrayHelper::StringSortCompare(thread, middleString, presentString); in ArrayNumberSort()
Druntime_stubs.cpp3136 int64_t len = ArrayHelper::GetArrayLength(thread, JSHandle<JSTaggedValue>(thisObjHandle)); in RuntimeArraySort()