Home
last modified time | relevance | path

Searched refs:GetArrayLength (Results 1 – 25 of 58) sorted by relevance

123

/arkcompiler/ets_runtime/ecmascript/
Dtagged_queue.h38 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 …]
Djs_typed_array.cpp113 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 …]
Djs_array_iterator.cpp58 length = JSHandle<JSTypedArray>::Cast(array)->GetArrayLength(); in Next()
60 length = JSHandle<JSArray>(array)->GetArrayLength(); in Next()
Djs_stable_array.cpp38 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 …]
Dtemplate_map.h34 uint32_t len = array->GetArrayLength(); in Hash()
Djs_array.cpp47 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()
Dtemplate_string.cpp39 uint32_t count = cookedStrings->GetArrayLength(); in GetTemplateObject()
Djs_array.h50 inline uint32_t GetArrayLength() const in GetArrayLength() function
/arkcompiler/ets_runtime/ecmascript/js_api/
Djs_api_queue.cpp29 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 …]
Djs_api_queue.h52 return GetLength().GetArrayLength(); in GetSize()
74 static uint32_t GetArrayLength(JSThread *thread, const JSHandle<JSAPIQueue> &queue);
Djs_api_arraylist.cpp34 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()
Djs_api_arraylist_iterator.cpp55 length = JSHandle<JSAPIArrayList>(arrayList)->GetLength().GetArrayLength(); in Next()
Djs_api_queue_iterator.cpp49 uint32_t length = JSAPIQueue::GetArrayLength(thread, JSHandle<JSAPIQueue>(queue)); in Next()
/arkcompiler/ets_runtime/ecmascript/base/
Darray_helper.cpp130 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()
Darray_helper.h40 static int64_t GetArrayLength(JSThread *thread, const JSHandle<JSTaggedValue> &thisHandle);
/arkcompiler/ets_runtime/ecmascript/base/tests/
Darray_helper_test.cpp150 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()
Dtyped_array_helper_test.cpp156 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/
Djs_api_arraylist_test.cpp402 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()
Djs_array_iterator_test.cpp84 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()
Djs_stable_array_test.cpp90 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()
Djs_api_queue_test.cpp101 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/
Dtyped_array_stub_builder.h43 GateRef GetArrayLength(GateRef array) in GetArrayLength() function
/arkcompiler/ets_runtime/ecmascript/builtins/
Dbuiltins_typedarray.cpp498 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/
Dcontainers_queue_stub_builder.h31 GateRef GetArrayLength(GateRef obj) in GetArrayLength() function
/arkcompiler/ets_runtime/ecmascript/builtins/tests/
Dbuiltins_intl_test.cpp73 EXPECT_EQ(resultHandle->GetArrayLength(), 0U); in HWTEST_F_L0()

123