Searched refs:elementsLength (Results 1 – 6 of 6) sorted by relevance
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | ntype_mcr_lowering.cpp | 78 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/ |
D | compilerUtils.ts | 256 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/ |
D | class_info_extractor.cpp | 136 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/ |
D | js_stable_array.cpp | 254 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()
|
D | js_serializer.cpp | 926 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()
|
D | object_factory.cpp | 461 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()
|