Searched refs:ArrayHelper (Results 1 – 10 of 10) sorted by relevance
| /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 bool ArrayHelper::IsConcatSpreadable(JSThread *thread, const JSHandle<JSTaggedValue> &obj) in IsConcatSpreadable() 57 double ArrayHelper::SortCompare(JSThread *thread, const JSHandle<JSTaggedValue> &callbackfnHandle, in SortCompare() 127 int64_t ArrayHelper::GetLength(JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle) in GetLength() 143 int64_t ArrayHelper::GetArrayLength(JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle) in GetArrayLength() 156 JSTaggedValue ArrayHelper::FlattenIntoArray(JSThread *thread, const JSHandle<JSObject> &newArrayHan… in FlattenIntoArray() 228 tempArgs.sourceLen = ArrayHelper::GetLength(thread, element); in FlattenIntoArray() 257 JSTaggedValue ArrayHelper::SortIndexedProperties(JSThread *thread, const JSHandle<JSObject> &thisOb… in SortIndexedProperties()
|
| D | array_helper.h | 34 class ArrayHelper {
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_array.cpp | 40 using ArrayHelper = base::ArrayHelper; typedef 259 int64_t len = ArrayHelper::GetArrayLength(thread, arrayLike); in From() 428 uint32_t arrLen = ArrayHelper::GetArrayLength(thread, thisObjVal); in Concat() 431 uint32_t argLen = ArrayHelper::GetArrayLength(thread, argHandle); in Concat() 454 bool isSpreadable = ArrayHelper::IsConcatSpreadable(thread, ele); in Concat() 461 int64_t len = ArrayHelper::GetArrayLength(thread, ele); in Concat() 531 int64_t len = ArrayHelper::GetLength(thread, thisObjVal); in CopyWithin() 674 uint64_t len = static_cast<uint64_t>(ArrayHelper::GetArrayLength(thread, thisObjVal)); in Every() 762 int64_t len = ArrayHelper::GetLength(thread, thisObjVal); in Fill() 851 uint64_t len = static_cast<uint64_t>(ArrayHelper::GetArrayLength(thread, thisObjVal)); in Filter() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/ |
| D | js_stable_array.cpp | 318 uint64_t len = static_cast<uint64_t>(base::ArrayHelper::GetArrayLength(thread, thisObjVal)); in HandleFindIndexOfStable() 339 if (base::ArrayHelper::GetArrayLength(thread, thisObjVal) > static_cast<int64_t>(len)) { in HandleFindIndexOfStable() 374 if (base::ArrayHelper::GetArrayLength(thread, thisObjVal) - 1 < k) { in HandleFindLastIndexOfStable() 391 uint64_t len = static_cast<uint64_t>(base::ArrayHelper::GetArrayLength(thread, thisObjVal)); in HandleEveryOfStable() 438 uint64_t len = static_cast<uint64_t>(base::ArrayHelper::GetArrayLength(thread, thisObjVal)); in HandleforEachOfStable() 518 uint64_t len = static_cast<uint64_t>(base::ArrayHelper::GetArrayLength(thread, thisObjVal)); in Filter() 647 int64_t thisLen = base::ArrayHelper::GetArrayLength(thread, thisObjVal); in Concat()
|
| D | js_array.cpp | 396 int64_t len = base::ArrayHelper::GetArrayLength(thread, JSHandle<JSTaggedValue>(obj)); in Sort() 413 … int32_t compareResult = base::ArrayHelper::SortCompare(thread, fn, middleValue, presentValue); in Sort()
|
| D | tagged_list.cpp | 430 … compareResult = base::ArrayHelper::SortCompare(thread, callbackFn, middleValue, presentValue); in Sort()
|
| D | js_serializer.cpp | 2006 int len = base::ArrayHelper::GetArrayLength(thread, transfer); in PrepareTransfer()
|
| /arkcompiler/ets_runtime/ecmascript/containers/ |
| D | containers_vector.cpp | 773 …int32_t compareResult = base::ArrayHelper::SortCompare(thread, callbackFnHandle, middleValue, pres… in Sort()
|
| D | containers_arraylist.cpp | 596 int32_t compareResult = base::ArrayHelper::SortCompare(thread, callbackFnHandle, in Sort()
|