| /arkcompiler/ets_runtime/ecmascript/ |
| D | tagged_queue.h | 38 uint32_t start = GetStart().GetArrayLength(); in Pop() 42 uint32_t capacity = GetCapacity().GetArrayLength(); in Pop() 51 uint32_t capacity = queue->GetCapacity().GetArrayLength(); in Push() 63 uint32_t start = queue->GetStart().GetArrayLength(); in Push() 64 uint32_t end = queue->GetEnd().GetArrayLength(); in Push() 98 uint32_t end = queue->GetEnd().GetArrayLength(); in PushFixedQueue() 99 uint32_t capacity = queue->GetCapacity().GetArrayLength(); in PushFixedQueue() 115 uint32_t start = GetStart().GetArrayLength(); in Front() 124 return JSTaggedValue(Get(GetEnd().GetArrayLength() - 1)); in Back() 129 uint32_t capacity = GetCapacity().GetArrayLength(); in Size() [all …]
|
| D | js_typed_array.cpp | 113 uint32_t arrLen = typedarrayObj->GetArrayLength(); in HasProperty() 176 uint32_t arrLen = typedarrayObj->GetArrayLength(); in DefineOwnProperty() 288 uint32_t bufferKeysLen = arrayObj->GetArrayLength(); in OwnPropertyKeys() 339 uint32_t bufferKeysLen = arrayObj->GetArrayLength(); in OwnEnumPropertyKeys() 400 uint32_t arrLen = typedarrayObj->GetArrayLength(); in IntegerIndexedElementGet() 441 uint32_t arrLen = typedarrayObj->GetArrayLength(); in IsValidIntegerIndex() 504 uint32_t arrLen = typedarrayObj->GetArrayLength(); in FastCopyElementToArray() 541 uint32_t arrLen = typedarrayObj->GetArrayLength(); in FastElementGet() 653 uint32_t arrLen = typedarrayObj->GetArrayLength(); in FastGetPropertyByIndex() 688 uint32_t arrLen = typedarrayObj->GetArrayLength(); in FastSetPropertyByIndex() [all …]
|
| D | js_array_iterator.cpp | 58 length = JSHandle<JSTypedArray>::Cast(array)->GetArrayLength(); in Next() 60 length = JSHandle<JSArray>(array)->GetArrayLength(); in Next()
|
| D | js_stable_array.cpp | 38 uint32_t oldLength = receiver->GetArrayLength(); in Push() 58 uint32_t length = receiver->GetArrayLength(); in Pop() 86 uint32_t len = receiver->GetArrayLength(); in Splice() 189 uint32_t length = receiver->GetArrayLength(); in Shift() 218 uint32_t length = receiver->GetArrayLength(); in Join() 315 uint64_t len = static_cast<uint64_t>(base::ArrayHelper::GetArrayLength(thread, thisObjVal)); in HandleFindIndexOfStable() 336 if (base::ArrayHelper::GetArrayLength(thread, thisObjVal) > static_cast<int64_t>(len)) { in HandleFindIndexOfStable() 371 if (base::ArrayHelper::GetArrayLength(thread, thisObjVal) - 1 < k) { in HandleFindLastIndexOfStable() 388 uint64_t len = static_cast<uint64_t>(base::ArrayHelper::GetArrayLength(thread, thisObjVal)); in HandleEveryOfStable() 435 uint64_t len = static_cast<uint64_t>(base::ArrayHelper::GetArrayLength(thread, thisObjVal)); in HandleforEachOfStable() [all …]
|
| D | template_map.h | 34 uint32_t len = array->GetArrayLength(); in Hash()
|
| D | js_array.cpp | 47 uint32_t oldLen = JSArray::Cast(*self)->GetArrayLength(); in LengthSetter() 297 uint32_t arrayLength = JSArray::Cast(*array)->GetArrayLength(); in ArraySetLength() 396 int64_t len = base::ArrayHelper::GetArrayLength(thread, JSHandle<JSTaggedValue>(obj)); in Sort() 443 int32_t length = static_cast<int32_t>(arrayObj->GetArrayLength()); in IncludeInSortedValue() 468 uint32_t length = arrayObj->GetArrayLength(); in ToTaggedArray()
|
| D | template_string.cpp | 39 uint32_t count = cookedStrings->GetArrayLength(); in GetTemplateObject()
|
| D | js_array.h | 50 inline uint32_t GetArrayLength() const in GetArrayLength() function
|
| /arkcompiler/ets_runtime/ecmascript/js_api/ |
| D | js_api_queue.cpp | 29 uint32_t length = queue->GetLength().GetArrayLength(); in Add() 73 if (queue->GetLength().GetArrayLength() < 1) { in GetFirst() 86 uint32_t length = queue->GetLength().GetArrayLength(); in Pop() 125 if (index < 0 || index >= GetLength().GetArrayLength()) { in Set() 128 << (GetLength().GetArrayLength() - 1) << ". Received value is: " << index; in Set() 158 uint32_t length = obj->GetLength().GetArrayLength(); in OwnKeys() 177 uint32_t length = obj->GetLength().GetArrayLength(); in OwnEnumKeys() 208 uint32_t length = obj->GetLength().GetArrayLength(); in GetOwnProperty() 225 int length = static_cast<int>(obj->GetLength().GetArrayLength()); in GetProperty() 244 int length = static_cast<int>(obj->GetLength().GetArrayLength()); in SetProperty() [all …]
|
| D | js_api_queue.h | 52 return GetLength().GetArrayLength(); in GetSize() 74 static uint32_t GetArrayLength(JSThread *thread, const JSHandle<JSAPIQueue> &queue);
|
| D | js_api_arraylist.cpp | 34 uint32_t length = arrayList->GetLength().GetArrayLength(); in Add() 116 uint32_t length = arrayList->GetLength().GetArrayLength(); in TrimToCurrentLength() 127 if (index >= GetLength().GetArrayLength()) { in Get() 130 << (GetLength().GetArrayLength() - 1) << ". Received value is: " << index; in Get() 149 uint32_t length = arrayList->GetLength().GetArrayLength(); in GetIndexOf() 279 if (index >= GetLength().GetArrayLength()) { in Set() 282 << (GetLength().GetArrayLength() - 1) << ". Received value is: " << index; in Set() 416 uint32_t length = obj->GetLength().GetArrayLength(); in GetOwnProperty()
|
| D | js_api_arraylist_iterator.cpp | 55 length = JSHandle<JSAPIArrayList>(arrayList)->GetLength().GetArrayLength(); in Next()
|
| D | js_api_queue_iterator.cpp | 49 uint32_t length = JSAPIQueue::GetArrayLength(thread, JSHandle<JSAPIQueue>(queue)); in Next()
|
| /arkcompiler/ets_runtime/ecmascript/base/ |
| D | array_helper.cpp | 130 return JSArray::Cast(thisHandle->GetTaggedObject())->GetArrayLength(); in GetLength() 133 return JSHandle<JSTypedArray>::Cast(thisHandle)->GetArrayLength(); in GetLength() 143 int64_t ArrayHelper::GetArrayLength(JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle) in GetArrayLength() function in panda::ecmascript::base::ArrayHelper 146 return JSArray::Cast(thisHandle->GetTaggedObject())->GetArrayLength(); in GetArrayLength()
|
| D | array_helper.h | 40 static int64_t GetArrayLength(JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle);
|
| /arkcompiler/ets_runtime/ecmascript/base/tests/ |
| D | array_helper_test.cpp | 150 HWTEST_F_L0(ArrayHelperTest, GetArrayLength) in HWTEST_F_L0() argument 164 EXPECT_EQ(ArrayHelper::GetArrayLength(thread, JSHandle<JSTaggedValue>(objectHandle)), 0U); in HWTEST_F_L0() 167 EXPECT_EQ(ArrayHelper::GetArrayLength(thread, JSHandle<JSTaggedValue>(objectHandle)), in HWTEST_F_L0()
|
| D | typed_array_helper_test.cpp | 156 EXPECT_EQ(jsTypedArray->GetArrayLength(), 0U); in HWTEST_F_L0() 177 EXPECT_EQ(jsTypedArray->GetArrayLength(), 256U); in HWTEST_F_L0() 192 uint32_t len = arrayObj->GetArrayLength(); in HWTEST_F_L0() 198 uint32_t newLen = JSHandle<JSTypedArray>::Cast(newArrObj)->GetArrayLength(); in HWTEST_F_L0() 213 uint32_t len = JSHandle<JSTypedArray>::Cast(newArrObj)->GetArrayLength(); in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/ecmascript/tests/ |
| D | js_api_arraylist_test.cpp | 402 uint32_t length = arrayList->GetLength().GetArrayLength(); in HWTEST_F_L0() 415 uint32_t bigIndex = arrayList->GetLength().GetArrayLength() + 10; in HWTEST_F_L0() 468 uint32_t length = arrayList->GetLength().GetArrayLength(); in HWTEST_F_L0() 497 for (uint32_t i = 0; i < subArrayList->GetLength().GetArrayLength(); i++) { in HWTEST_F_L0() 504 uint32_t bigIndex = arrayList->GetLength().GetArrayLength() + 10; in HWTEST_F_L0() 531 uint32_t arrayLength = arrayList->GetLength().GetArrayLength(); in HWTEST_F_L0() 537 int newLength = static_cast<int>(newSubArrayList->GetLength().GetArrayLength()); in HWTEST_F_L0() 632 uint32_t length = arrayList->GetLength().GetArrayLength(); in HWTEST_F_L0()
|
| D | js_array_iterator_test.cpp | 84 EXPECT_EQ(handleJSArrayTo1->GetArrayLength(), static_cast<uint32_t>(numArrayFrom1)); in HWTEST_F_L0() 94 EXPECT_EQ(handleJSArrayTo2->GetArrayLength(), static_cast<uint32_t>(numArrayFrom2)); in HWTEST_F_L0()
|
| D | js_stable_array_test.cpp | 90 EXPECT_EQ(handleArr->GetArrayLength(), static_cast<size_t>(lengthArr + numElementsPush)); in HWTEST_F_L0() 122 EXPECT_EQ(handleArr->GetArrayLength(), static_cast<uint32_t>(lengthArr - i)); in HWTEST_F_L0() 172 EXPECT_EQ(handleArrCombinedOfDeletedElements->GetArrayLength(), actualDeleteCount); in HWTEST_F_L0() 182 EXPECT_EQ(handleArr->GetArrayLength(), lengthArr - actualDeleteCount + countInsert); in HWTEST_F_L0() 221 EXPECT_EQ(handleArr->GetArrayLength(), static_cast<uint32_t>(lengthArr - (i + 1))); in HWTEST_F_L0()
|
| D | js_api_queue_test.cpp | 101 EXPECT_EQ(JSAPIQueue::GetArrayLength(thread, jsQueue), DEFAULT_LENGTH); in HWTEST_F_L0() 136 EXPECT_EQ(JSAPIQueue::GetArrayLength(thread, jsQueue), DEFAULT_LENGTH); in HWTEST_F_L0() 147 EXPECT_EQ(JSAPIQueue::GetArrayLength(thread, jsQueue), (DEFAULT_LENGTH - i - 1U)); in HWTEST_F_L0()
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | typed_array_stub_builder.h | 43 GateRef GetArrayLength(GateRef array) in GetArrayLength() function
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_typedarray.cpp | 498 uint32_t len = JSHandle<JSTypedArray>::Cast(thisObjHandle)->GetArrayLength(); in Every() 577 uint32_t len = thisObj->GetArrayLength(); in Filter() 686 uint32_t len = JSHandle<JSTypedArray>::Cast(thisObjHandle)->GetArrayLength(); in ForEach() 756 uint32_t length = JSHandle<JSTypedArray>::Cast(thisHandle)->GetArrayLength(); in Join() 891 uint32_t length = JSHandle<JSTypedArray>(thisHandle)->GetArrayLength(); in GetLength() 912 uint32_t len = thisObj->GetArrayLength(); in Map() 1056 uint32_t targetLength = targetObj->GetArrayLength(); in Set() 1066 uint32_t length = JSHandle<JSArray>::Cast(argArray)->GetArrayLength(); in Set() 1170 uint32_t srcLength = typedArray->GetArrayLength(); in Set() 1258 uint32_t len = thisObj->GetArrayLength(); in Slice() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
| D | containers_queue_stub_builder.h | 31 GateRef GetArrayLength(GateRef obj) in GetArrayLength() function
|
| /arkcompiler/ets_runtime/ecmascript/builtins/tests/ |
| D | builtins_intl_test.cpp | 73 EXPECT_EQ(resultHandle->GetArrayLength(), 0U); in HWTEST_F_L0()
|