/arkcompiler/ets_runtime/ecmascript/js_api/ |
D | js_api_queue.cpp | 29 uint32_t length = queue->GetLength().GetArrayLength(); in Add() 38 uint32_t elementsSize = elements->GetLength(); in Add() 51 uint32_t oldLength = oldElements->GetLength(); in GrowCapacity() 73 if (queue->GetLength().GetArrayLength() < 1) { in GetFirst() 86 uint32_t length = queue->GetLength().GetArrayLength(); in Pop() 97 uint32_t elementsSize = elements->GetLength(); in Pop() 116 uint32_t capacity = elements->GetLength(); in Get() 125 if (index < 0 || index >= GetLength().GetArrayLength()) { in Set() 128 << (GetLength().GetArrayLength() - 1) << ". Received value is: " << index; in Set() 143 uint32_t capacity = elements->GetLength(); in Has() [all …]
|
D | js_api_plain_array.cpp | 33 uint32_t size = obj->GetLength(); in Add() 45 uint32_t capacity = valueArray->GetLength(); in Add() 71 uint32_t size = GetLength(); in AdjustForward() 84 uint32_t size = GetLength(); in AdjustArray() 129 uint32_t size = GetLength(); in Clear() 139 int32_t size = static_cast<int32_t>(GetLength()); in RemoveRangeFrom() 171 uint32_t size = obj->GetLength(); in GetOwnProperty() 189 uint32_t size = obj->GetLength(); in GetProperty() 209 uint32_t size = obj->GetLength(); in SetProperty() 226 uint32_t length = obj->GetLength(); in Clone() [all …]
|
D | js_api_lightweightset.cpp | 35 int32_t size = static_cast<int32_t>(obj->GetLength()); in Add() 45 uint32_t capacity = hashArray->GetLength(); in Add() 147 uint32_t capacity = hashes->GetLength(); in EnsureCapacity() 173 return GetLength() == 0; in IsEmpty() 178 int32_t size = static_cast<int32_t>(GetLength()); in GetValueAt() 188 int32_t size = static_cast<int32_t>(GetLength()); in GetHashAt() 201 uint32_t size = GetLength(); in HasAll() 202 uint32_t destSize = lightweightSet->GetLength(); in HasAll() 228 uint32_t size = GetLength(); in Has() 238 uint32_t size = GetLength(); in HasHash() [all …]
|
D | js_api_deque.cpp | 37 uint32_t capacity = elements->GetLength(); in InsertFront() 47 capacity = elements->GetLength(); in InsertFront() 58 uint32_t capacity = elements->GetLength(); in InsertEnd() 69 capacity = elements->GetLength(); in InsertEnd() 93 uint32_t capacity = elements->GetLength(); in GetTail() 120 uint32_t capacity = elements->GetLength(); in PopFirst() 136 uint32_t capacity = elements->GetLength(); in PopLast() 154 uint32_t capacity = elements->GetLength(); in GetSize() 165 uint32_t capacity = elements->GetLength(); in Get() 176 uint32_t capacity = elements->GetLength(); in Set() [all …]
|
D | js_api_arraylist.cpp | 34 uint32_t length = arrayList->GetLength().GetArrayLength(); in Add() 46 int length = arrayList->GetLength().GetInt(); in Insert() 66 int length = arrayList->GetLength().GetInt(); in Clear() 95 uint32_t capacity = elements->GetLength(); in GetCapacity() 104 int length = arrayList->GetLength().GetInt(); in IncreaseCapacityTo() 105 int oldElementLength = static_cast<int>(elementData->GetLength()); in IncreaseCapacityTo() 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() [all …]
|
D | js_api_hashset.cpp | 63 uint32_t tableLength = hashArray->GetLength() * TaggedHashArray::DEFAULT_LOAD_FACTOR; in Add() 65 hashArray = TaggedHashArray::Resize(thread, hashArray, hashArray->GetLength()); in Add() 102 uint32_t length = hashArray->GetLength(); in Remove()
|
D | js_api_hashmap.cpp | 44 uint32_t tabLength = hashArray->GetLength(); in HasValue() 129 uint32_t tableLength = (hashArray->GetLength()) * TaggedHashArray::DEFAULT_LOAD_FACTOR; in Set() 131 hashArray = TaggedHashArray::Resize(thread, hashArray, hashArray->GetLength()); in Set() 153 uint32_t srcTabLength = hashArray->GetLength(); in SetAll() 228 uint32_t length = hashArray->GetLength(); in Remove()
|
/arkcompiler/ets_runtime/ecmascript/ |
D | tagged_array-inl.h | 27 ASSERT(idx < GetLength()); in Get() 42 uint32_t length = GetLength(); in GetIdx() 55 ASSERT(idx < GetLength()); in Set() 69 ASSERT(idx < GetLength()); in Set() 83 uint32_t firstLength = first->GetLength(); in Append() 84 uint32_t secondLength = second->GetLength(); in Append() 101 uint32_t firstLength = first->GetLength(); in AppendSkipHole() 102 uint32_t secondLength = second->GetLength(); in AppendSkipHole() 129 uint32_t length = GetLength(); in HasDuplicateEntry() 155 uint32_t oldLength = array->GetLength(); in SetCapacity() [all …]
|
D | ecma_string.cpp | 29 uint32_t leftLength = strLeft->GetLength(); in Concat() 31 uint32_t rightLength = strRight->GetLength(); in Concat() 133 ASSERT((start + length) <= src->GetLength()); in FastSubString() 137 if (start == 0 && length == src->GetLength()) { in FastSubString() 202 int32_t lhsCount = static_cast<int32_t>(lhs->GetLength()); in Compare() 203 int32_t rhsCount = static_cast<int32_t>(rhs->GetLength()); in Compare() 300 int32_t lhsCount = static_cast<int32_t>(lhs->GetLength()); in IndexOf() 301 int32_t rhsCount = static_cast<int32_t>(rhs->GetLength()); in IndexOf() 355 int32_t lhsCount = static_cast<int32_t>(lhs->GetLength()); in LastIndexOf() 356 int32_t rhsCount = static_cast<int32_t>(rhs->GetLength()); in LastIndexOf() [all …]
|
D | js_bigint.cpp | 141 int len = static_cast<int>(x->GetLength()); in RightTruncate() 170 int len = static_cast<int>(bigint->GetLength()); in GetBinary() 210 if (x->GetSign() != y->GetSign() || x->GetLength() != y->GetLength()) { in Equal() 213 for (uint32_t i = 0; i < x->GetLength(); ++i) { in Equal() 237 uint32_t xlen = x->GetLength(); in BitwiseOp() 238 uint32_t ylen = y->GetLength(); in BitwiseOp() 273 JSHandle<BigInt> yVal = BigInt::BitwiseSubOne(thread, y, y->GetLength()); in OneIsNegativeAND() 274 uint32_t xLength = x->GetLength(); in OneIsNegativeAND() 275 uint32_t yLength = yVal->GetLength(); in OneIsNegativeAND() 300 JSHandle<BigInt> xVal = BitwiseSubOne(thread, x, x->GetLength()); in BitwiseAND() [all …]
|
D | js_stable_array.cpp | 42 if (newLength > elements->GetLength()) { in Push() 65 uint32_t capacity = elements->GetLength(); in Pop() 100 if (actualDeleteCount > destElements->GetLength()) { in Splice() 105 if ((start + idx) >= srcElementsHandle->GetLength()) { in Splice() 140 uint32_t oldCapacity = srcElementsHandle->GetLength(); in Splice() 150 if ((idx + actualDeleteCount) < srcElementsHandle->GetLength()) { in Splice() 154 if ((idx + insertCount) < srcElementsHandle->GetLength()) { in Splice() 163 if (idx < srcElementsHandle->GetLength()) { in Splice() 204 uint32_t capacity = elements->GetLength(); in Shift() 232 …StringAccessor(sepStringHandle).IsUtf8() && EcmaStringAccessor(sepStringHandle).GetLength() == 1) { in Join() [all …]
|
D | ecma_string.h | 133 uint32_t GetLength() const in GetLength() function 165 if (hashcode == 0 && GetLength() != 0) { in TryGetHashCode() 178 if (hashcode == 0 && GetLength() != 0) { in GetHashcode() 253 size_t length = GetLength(); 271 return CopyDataRegionUtf8(buf, 0, GetLength(), maxLength, true, isWriteBuffer) + 1; 317 uint32_t length = GetLength(); in WriteOneByte() 342 uint32_t len = GetLength(); 380 return CopyDataRegionUtf16(buf, 0, GetLength(), maxLength); in CopyDataUtf16() 388 uint32_t len = GetLength(); in CopyDataRegionUtf16() 412 auto length = GetLength(); in ToOneByteDataForced() [all …]
|
D | ecma_string-inl.h | 243 return GetLength() + 1; // add place for zero in the end in GetUtf8Length() 245 return base::utf_helper::Utf16ToUtf8Size(GetData(), GetLength(), modify); in GetUtf8Length() 251 int32_t length = static_cast<int32_t>(GetLength()); in At() 268 ASSERT(index < GetLength()); in WriteData() 285 uint32_t length = src->GetLength(); in WriteToFlat() 291 ASSERT(length <= src->GetLength()); in WriteToFlat() 310 uint32_t firstLength = first->GetLength(); in WriteToFlat() 311 uint32_t secondLength = second->GetLength(); in WriteToFlat()
|
D | js_primitive_ref.cpp | 40 uint32_t length = EcmaStringAccessor(value->GetTaggedObject()).GetLength(); in StringCreate() 58 if (EcmaStringAccessor(strFlat).GetLength() <= index) { in StringGetIndexProperty()
|
/arkcompiler/ets_runtime/ecmascript/ts_types/ |
D | ts_type_table.cpp | 21 uint32_t index = typeTable->GetLength() - 1; in GetExportValueTable() 29 if (exportValueTable->GetLength() != 0) { // add exprotValueTable to tSTypeTable if isn't empty in SetExportValueTable() 30 typeTable->Set(thread, typeTable->GetLength() - 1, exportValueTable); in SetExportValueTable() 37 uint32_t capacity = table->GetLength(); // can't be 0 due to RESERVE_TABLE_LENGTH in PushBackTypeToTable()
|
D | ts_obj_layout_info.h | 52 ASSERT(GetLength() >= ELEMENTS_START_INDEX); in GetPropertiesCapacity() 53 ASSERT((GetLength() - ELEMENTS_START_INDEX) % ENTRY_SIZE == 0); in GetPropertiesCapacity() 54 return static_cast<uint32_t>((GetLength() - ELEMENTS_START_INDEX) / ENTRY_SIZE); in GetPropertiesCapacity() 83 inline uint32_t GetLength() const in GetLength() function 85 return TaggedArray::GetLength(); in GetLength()
|
/arkcompiler/ets_runtime/ecmascript/base/tests/ |
D | array_helper_test.cpp | 116 HWTEST_F_L0(ArrayHelperTest, GetLength) in HWTEST_F_L0() argument 126 EXPECT_EQ(ArrayHelper::GetLength(thread, arrayHandle), 10U); in HWTEST_F_L0() 133 EXPECT_EQ(ArrayHelper::GetLength(thread, typeArrayHandle), 11U); in HWTEST_F_L0() 137 EXPECT_EQ(ArrayHelper::GetLength(thread, JSHandle<JSTaggedValue>(objectHandle)), 0U); in HWTEST_F_L0() 140 EXPECT_EQ(ArrayHelper::GetLength(thread, JSHandle<JSTaggedValue>(objectHandle)), in HWTEST_F_L0() 160 EXPECT_EQ(ArrayHelper::GetLength(thread, arrayHandle), 0U); in HWTEST_F_L0()
|
/arkcompiler/ets_runtime/ecmascript/ic/ |
D | profile_type_info.cpp | 60 uint32_t newLen = arr->GetLength() + step; in AddHandlerWithoutKey() 69 for (; i < arr->GetLength(); i += step) { in AddHandlerWithoutKey() 122 if (arr->GetLength() > step) { // POLY in AddHandlerWithKey() 123 uint32_t newLen = arr->GetLength() + step; in AddHandlerWithKey() 133 for (uint32_t i = 0; i < arr->GetLength(); i += step) { in AddHandlerWithKey() 167 uint32_t newLen = arr->GetLength() + step; in AddGlobalHandlerKey() 177 for (uint32_t i = 0; i < arr->GetLength(); i += step) { in AddGlobalHandlerKey() 270 … return array->GetLength() == MONO_CASE_NUM ? ICState::MONO : ICState::POLY; // 2 : test case in GetICState() 274 … return array->GetLength() == MONO_CASE_NUM ? ICState::MONO : ICState::POLY; // 2 : test case in GetICState() 286 … return array->GetLength() == MONO_CASE_NUM ? ICState::MONO : ICState::POLY; // 2 : test case in GetICState()
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | constant_string_test.cpp | 61 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrEmpty).GetLength(), 0U); in HWTEST_F_L0() 81 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrU8).GetLength(), lengthEcmaStrU8); in HWTEST_F_L0() 103 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrU8).GetLength(), lengthEcmaStrU8); in HWTEST_F_L0() 199 …EXPECT_EQ(EcmaStringAccessor(handleEcmaStrConcatU8).GetLength(), lengthEcmaStrFrontU8 + lengthEcma… in HWTEST_F_L0() 230 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrConcatU8U16NotComp).GetLength(), in HWTEST_F_L0() 256 EXPECT_EQ(EcmaStringAccessor(handleEcmaStrSubU8).GetLength(), lengthSubU8); in HWTEST_F_L0() 580 …EXPECT_EQ(EcmaStringAccessor(lowerStr).GetLength(), EcmaStringAccessor(lowerEcmaString).GetLength(… in HWTEST_F_L0() 588 …EXPECT_EQ(EcmaStringAccessor(lowerStr).GetLength(), EcmaStringAccessor(lowerEcmaString).GetLength(… in HWTEST_F_L0() 596 …EXPECT_EQ(EcmaStringAccessor(lowerStr).GetLength(), EcmaStringAccessor(testEcmaString).GetLength()… in HWTEST_F_L0() 604 …EXPECT_EQ(EcmaStringAccessor(lowerStr).GetLength(), EcmaStringAccessor(testEcmaString).GetLength()… in HWTEST_F_L0()
|
D | ecma_string_test.cpp | 81 EXPECT_EQ(handleEcmaStrEmpty->GetLength(), 0U); in HWTEST_F_L0() 100 EXPECT_EQ(handleEcmaStrAllocComp->GetLength(), sizeAllocComp); in HWTEST_F_L0() 111 EXPECT_EQ(handleEcmaStrAllocNotComp->GetLength(), sizeAllocNotComp); in HWTEST_F_L0() 131 EXPECT_EQ(handleEcmaStrU8->GetLength(), lengthEcmaStrU8); in HWTEST_F_L0() 149 EXPECT_EQ(handleEcmaStrU16Comp->GetLength(), lengthEcmaStrU16Comp); in HWTEST_F_L0() 158 EXPECT_EQ(handleEcmaStrU16NotComp->GetLength(), lengthEcmaStrU16NotComp); in HWTEST_F_L0() 432 EXPECT_EQ(handleEcmaStrConcatU8->GetLength(), lengthEcmaStrFrontU8 + lengthEcmaStrBackU8); in HWTEST_F_L0() 462 …EXPECT_EQ(handleEcmaStrConcatU16NotComp->GetLength(), lengthEcmaStrFrontU16NotComp + lengthEcmaStr… in HWTEST_F_L0() 492 …EXPECT_EQ(handleEcmaStrConcatU8U16NotComp->GetLength(), lengthEcmaStrFrontU8 + lengthEcmaStrBackU1… in HWTEST_F_L0() 516 EXPECT_EQ(handleEcmaStrSubU8->GetLength(), lengthSubU8); in HWTEST_F_L0() [all …]
|
D | transitions_dictionary_test.cpp | 116 EXPECT_EQ(transDic->GetLength(), 27U); // 27 : 3 + 8 * 3 in HWTEST_F_L0() 127 EXPECT_EQ(transDic->GetLength(), 195U); // 195 : 3 + 64 * 3 in HWTEST_F_L0() 140 … EXPECT_EQ(transDicAfterShink->GetLength(), 51U); // (1 << (32 - Clz((7 + (7 >> 1)) - 1))) * 3 + 3 in HWTEST_F_L0() 148 uint32_t length = transDic->GetLength(); in HWTEST_F_L0() 259 EXPECT_EQ(transDic->GetLength(), 195U); // 195 : 3 + 64 * 3 in HWTEST_F_L0() 263 EXPECT_EQ(transDic->GetLength(), 51U); // (1 << (32 - Clz((6 + (6 >> 1)) - 1))) * 3 + 3 in HWTEST_F_L0()
|
D | js_api_arraylist_test.cpp | 183 EXPECT_EQ(arrayList->GetLength(), JSTaggedValue(0)); in HWTEST_F_L0() 188 EXPECT_EQ(arrayList->GetLength(), JSTaggedValue(1)); in HWTEST_F_L0() 192 EXPECT_EQ(arrayList->GetLength(), JSTaggedValue(0)); in HWTEST_F_L0() 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() [all …]
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | class_info_extractor.cpp | 31 uint32_t literalBufferLength = literal->GetLength(); in BuildClassInfoExtractorFromLiteral() 110 ASSERT(keys->GetLength() == properties->GetLength() && elements->GetLength() == 0); in ExtractAndReturnWhetherWithElements() 136 uint32_t elementsLength = elements->GetLength(); in ExtractAndReturnWhetherWithElements() 161 uint32_t trimOneLength = keys->GetLength() - 1; in ExtractAndReturnWhetherWithElements() 168 ASSERT(pos + elements->GetLength() / 2 == properties->GetLength()); // 2: half in ExtractAndReturnWhetherWithElements() 182 uint32_t length = keys->GetLength(); in CreatePrototypeHClass() 229 uint32_t length = keys->GetLength(); in CreateConstructorHClass() 354 uint32_t nonStaticLength = nonStaticProperties->GetLength(); in DefineClassFromExtractor() 381 uint32_t staticLength = staticProperties->GetLength(); in DefineClassFromExtractor() 441 uint32_t nonStaticLength = nonStaticProperties->GetLength(); in DefineClassWithIHClass() [all …]
|
D | scope_info_extractor.cpp | 42 ASSERT(elementsLiteral->GetLength() > 0); in GenerateScopeInfo() 49 size_t length = elementsLiteral->GetLength(); in GenerateScopeInfo()
|
/arkcompiler/ets_runtime/ecmascript/compiler/aot_file/ |
D | aot_file_manager.h | 73 return GetLength() - RESERVED_LENGTH; in GetCacheLength() 112 return JSTaggedValue::TaggedTypeSize() * (GetLength() - AOT_IHC_INDEX); in GetIhcOffset() 117 return JSTaggedValue::TaggedTypeSize() * (GetLength() - AOT_CHC_INDEX); in GetChcOffset()
|