Home
last modified time | relevance | path

Searched refs:elementsLength (Results 1 – 6 of 6) sorted by relevance

/arkcompiler/ets_runtime/ecmascript/compiler/
Dntype_mcr_lowering.cpp78 size_t elementsLength = acc_.GetArraySize(gate); in LowerCreateArrayWithOwn() local
79 GateRef length = builder_.IntPtr(elementsLength); in LowerCreateArrayWithOwn()
81 if (elementsLength < MAX_TAGGED_ARRAY_LENGTH) { in LowerCreateArrayWithOwn()
82 elements = NewTaggedArray(elementsLength); in LowerCreateArrayWithOwn()
/arkcompiler/ets_frontend/ts2panda/src/
DcompilerUtils.ts256 let elementsLength = elements.length;
259 if (elementsLength === 0 ||
283 for (let i = 0; i < elementsLength; i++) {
289 for (let i = 0; i < elementsLength; i++) {
/arkcompiler/ets_runtime/ecmascript/jspandafile/
Dclass_info_extractor.cpp136 uint32_t elementsLength = elements->GetLength(); in ExtractAndReturnWhetherWithElements() local
138 … TaggedArray::SetCapacityInOldSpace(thread, elements, elementsLength + 2); // 2: key-value pair in ExtractAndReturnWhetherWithElements()
139 elements->Set(thread, elementsLength, firstValue); in ExtractAndReturnWhetherWithElements()
140 elements->Set(thread, elementsLength + 1, secondValue); in ExtractAndReturnWhetherWithElements()
/arkcompiler/ets_runtime/ecmascript/
Djs_stable_array.cpp254 uint32_t elementsLength = elements->GetLength(); in Join() local
255 uint32_t len = elementsLength > length ? length : elementsLength; in Join()
256 if (elementsLength == 0 && length != 0) { in Join()
261 if (k < elementsLength) { in Join()
Djs_serializer.cpp926 uint32_t elementsLength = obj->GetNumberOfElements(); in WritePlainObject() local
927 if (!WriteInt(static_cast<int32_t>(elementsLength))) { in WritePlainObject()
933 if (keyVector.size() != elementsLength) { in WritePlainObject()
937 for (uint32_t i = 0; i < elementsLength; i++) { in WritePlainObject()
Dobject_factory.cpp461 uint32_t elementsLength = elements->GetLength(); in CloneArrayLiteral() local
462 MemSpaceType type = elementsLength > MAX_READ_ONLY_ARRAY_LENGTH ? in CloneArrayLiteral()
473 …auto newElements = CopyArray(elements, elementsLength, elementsLength, JSTaggedValue::Hole(), type… in CloneArrayLiteral()