| /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() 296 uint32_t bufferKeysLen = arrayObj->GetArrayLength(); in OwnPropertyKeys() 347 uint32_t bufferKeysLen = arrayObj->GetArrayLength(); in OwnEnumPropertyKeys() 410 uint32_t arrLen = typedarrayObj->GetArrayLength(); in IntegerIndexedElementGet() 451 uint32_t arrLen = typedarrayObj->GetArrayLength(); in IsValidIntegerIndex() 514 uint32_t arrLen = typedarrayObj->GetArrayLength(); in FastCopyElementToArray() 551 uint32_t arrLen = typedarrayObj->GetArrayLength(); in FastElementGet() 662 uint32_t arrLen = typedarrayObj->GetArrayLength(); in FastGetPropertyByIndex() 697 uint32_t arrLen = typedarrayObj->GetArrayLength(); in FastSetPropertyByIndex() [all …]
|
| D | js_array_iterator.cpp | 62 length = JSHandle<JSTypedArray>::Cast(array)->GetArrayLength(); in NextInternal() 64 length = JSHandle<JSArray>(array)->GetArrayLength(); in NextInternal()
|
| D | template_map.h | 34 uint32_t len = array->GetArrayLength(); in Hash()
|
| D | js_array.cpp | 43 uint32_t oldLen = JSArray::Cast(*self)->GetArrayLength(); in LengthSetter() 56 uint32_t actualLen = JSArray::Cast(*self)->GetArrayLength(); in LengthSetter() 316 uint32_t arrayLength = JSArray::Cast(*array)->GetArrayLength(); in ArraySetLength() 417 int64_t len = ArrayHelper::GetArrayLength(thread, obj); in Sort() 536 int32_t length = static_cast<int32_t>(arrayObj->GetArrayLength()); in IncludeInSortedValue() 561 uint32_t length = arrayObj->GetArrayLength(); in ToTaggedArray()
|
| D | byte_array.h | 46 size_t byteSize = ComputeDataSize(GetArrayLength(), GetByteLength()); in GetPointerLength()
|
| D | template_string.cpp | 39 uint32_t count = cookedStrings->GetArrayLength(); in GetTemplateObject()
|
| D | js_stable_array.cpp | 44 uint32_t oldLength = receiver->GetArrayLength(); in Push() 65 uint32_t length = receiver->GetArrayLength(); in Pop() 198 uint32_t length = receiver->GetArrayLength(); in Shift() 238 uint32_t length = receiver->GetArrayLength(); in Join() 329 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() 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() 881 uint32_t targetLength = targetArray->GetArrayLength(); in FastCopyFromArrayToTypedArray() [all …]
|
| /arkcompiler/runtime_core/static_core/plugins/ets/tests/mock/ |
| D | array_native_test.cpp | 33 EXPECT_EQ(env_->GetArrayLength(array1), static_cast<ets_size>(0)); in TEST_F() 38 EXPECT_EQ(env_->GetArrayLength(array2), static_cast<ets_size>(0)); in TEST_F() 43 EXPECT_EQ(env_->GetArrayLength(array3), static_cast<ets_size>(0)); in TEST_F() 48 EXPECT_EQ(env_->GetArrayLength(array4), static_cast<ets_size>(0)); in TEST_F() 53 EXPECT_EQ(env_->GetArrayLength(array5), static_cast<ets_size>(0)); in TEST_F() 58 EXPECT_EQ(env_->GetArrayLength(array6), static_cast<ets_size>(0)); in TEST_F() 63 EXPECT_EQ(env_->GetArrayLength(array7), static_cast<ets_size>(0)); in TEST_F() 68 EXPECT_EQ(env_->GetArrayLength(array8), static_cast<ets_size>(0)); in TEST_F() 77 ets_size length = env_->GetArrayLength(array); in TEST_F() 116 ets_size length = env_->GetArrayLength(array); in TEST_F() [all …]
|
| /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/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()
|
| /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_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() 171 uint32_t len = JSHandle<JSArray>::Cast(thisObjHandle)->GetArrayLength(); in HWTEST_F_L0() 177 EXPECT_EQ(handleArrCombinedOfDeletedElements->GetArrayLength(), actualDeleteCount); in HWTEST_F_L0() 187 EXPECT_EQ(handleArr->GetArrayLength(), lengthArr - actualDeleteCount + countInsert); in HWTEST_F_L0() 226 EXPECT_EQ(handleArr->GetArrayLength(), static_cast<uint32_t>(lengthArr - (i + 1))); 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_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/base/ |
| D | array_helper.cpp | 250 return JSArray::Cast(thisHandle->GetTaggedObject())->GetArrayLength(); in GetLength() 253 return JSHandle<JSTypedArray>::Cast(thisHandle)->GetArrayLength(); in GetLength() 263 int64_t ArrayHelper::GetArrayLength(JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle) in GetArrayLength() function in panda::ecmascript::base::ArrayHelper 266 return JSArray::Cast(thisHandle->GetTaggedObject())->GetArrayLength(); in GetArrayLength()
|
| D | array_helper.h | 68 static int64_t GetArrayLength(JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle);
|
| /arkcompiler/ets_runtime/ecmascript/builtins/ |
| D | builtins_typedarray.cpp | 512 uint32_t len = JSHandle<JSTypedArray>::Cast(thisObjHandle)->GetArrayLength(); in Every() 591 uint32_t len = thisObj->GetArrayLength(); in Filter() 700 uint32_t len = JSHandle<JSTypedArray>::Cast(thisObjHandle)->GetArrayLength(); in ForEach() 770 uint32_t length = JSHandle<JSTypedArray>::Cast(thisHandle)->GetArrayLength(); in Join() 909 uint32_t length = JSHandle<JSTypedArray>(thisHandle)->GetArrayLength(); in GetLength() 930 uint32_t len = thisObj->GetArrayLength(); in Map() 1021 int64_t len = JSHandle<JSTypedArray>::Cast(thisHandle)->GetArrayLength(); in Reverse() 1124 uint32_t targetLength = targetObj->GetArrayLength(); in Set() 1134 uint32_t length = JSHandle<JSArray>::Cast(argArray)->GetArrayLength(); in Set() 1238 uint32_t srcLength = typedArray->GetArrayLength(); in Set() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
| D | builtins_array_stub_builder.cpp | 62 GateRef thisLen = ZExtInt32ToInt64(GetArrayLength(thisValue)); in Concat() 63 GateRef argLen = ZExtInt32ToInt64(GetArrayLength(arg0)); in Concat() 184 GateRef len = ZExtInt32ToInt64(GetArrayLength(thisValue)); in Filter() 276 GateRef tmpArrLen = ZExtInt32ToInt64(GetArrayLength(thisValue)); in Filter() 400 GateRef thisLen = ZExtInt32ToInt64(GetArrayLength(thisValue)); in Pop() 523 GateRef thisArrLen = ZExtInt32ToInt64(GetArrayLength(thisValue)); in Slice() 746 GateRef len = ZExtInt32ToInt64(GetArrayLength(thisValue)); in Sort() 859 thisLen = GetArrayLength(thisValue); in Reduce() 1006 GateRef thisArrLen = ZExtInt32ToInt64(GetArrayLength(thisValue)); in Reverse() 1070 result.WriteVariable(Int32UnsignedLessThanOrEqual(GetArrayLength(object), Int32(maxLength))); in IsJsArrayWithLengthLimit() [all …]
|
| /arkcompiler/ets_runtime/ecmascript/compiler/ |
| D | typed_array_stub_builder.h | 48 GateRef GetArrayLength(GateRef array) in GetArrayLength() function
|
| D | typed_array_stub_builder.cpp | 94 GateRef arrLen = GetArrayLength(array); in CheckTypedArrayIndexInRange() 191 GateRef arrLen = GetArrayLength(array); in FastGetPropertyByIndex() 236 GateRef arrLen = GetArrayLength(typedArray); in FastCopyElementToArray() 436 GateRef arrayLen = GetArrayLength(thisValue); in SubArray()
|