/arkcompiler/ets_runtime/ecmascript/js_api/ |
D | js_api_deque_iterator.cpp | 66 uint32_t elementIndex = (index + capacity - first) % capacity; in Next() local 67 …SHandle<JSTaggedValue> value(thread, JSHandle<JSAPIDeque>::Cast(iteratorDeque)->Get(elementIndex)); in Next()
|
/arkcompiler/ets_runtime/ecmascript/ic/ |
D | ic_runtime_stub-inl.h | 427 uint32_t elementIndex = static_cast<uint32_t>(index); in LoadElement() local 429 if (elements->GetLength() <= elementIndex) { in LoadElement() 433 JSTaggedValue value = elements->Get(elementIndex); in LoadElement() 446 uint32_t elementIndex = static_cast<uint32_t>(index); in StoreElement() local 459 if (elementIndex >= oldLength) { in StoreElement() 460 arr->SetArrayLength(thread, elementIndex + 1); in StoreElement() 465 if (elementIndex >= capacity) { in StoreElement() 466 if (JSObject::ShouldTransToDict(capacity, elementIndex)) { in StoreElement() 470 elements = *JSObject::GrowElementsCapacity(thread, receiverHandle, elementIndex + 1); in StoreElement() 472 elements->Set(thread, elementIndex, valueHandle); in StoreElement() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | ntype_hcr_lowering.cpp | 167 int elementIndex = -1; in LowerNTypedCreateArrayWithBuffer() local 170 elementIndex = tsManager_->GetElementsIndexByArrayType(gateType, id); in LowerNTypedCreateArrayWithBuffer() 172 if (hclassIndex == -1 || elementIndex == -1) { // slowpath in LowerNTypedCreateArrayWithBuffer() 177 GateRef elementIndexGate = builder_.IntPtr(elementIndex); in LowerNTypedCreateArrayWithBuffer()
|
D | ntype_mcr_lowering.cpp | 98 auto elementIndex = acc_.GetConstantValue(aotElmIndex); in LowerCreateArrayWithBuffer() local 104 GateRef elements = LoadFromConstPool(jsFunc, elementIndex); in LowerCreateArrayWithBuffer()
|
D | circuit_builder.cpp | 1557 GateRef elementIndex) in CreateArrayWithBuffer() argument 1566 elementIndex, frameState }, in CreateArrayWithBuffer()
|
D | circuit_builder.h | 624 GateRef CreateArrayWithBuffer(size_t arraySize, GateRef constPoolIndex, GateRef elementIndex);
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_object.cpp | 445 uint32_t elementIndex = 0; in GetAllElementKeys() local 447 … elementIndex = JSPrimitiveRef::Cast(*obj)->GetStringLength() + static_cast<uint32_t>(offset); in GetAllElementKeys() 448 for (uint32_t i = static_cast<uint32_t>(offset); i < elementIndex; ++i) { in GetAllElementKeys() 457 for (uint32_t i = 0, j = elementIndex; i < elementsLen; ++i) { in GetAllElementKeys() 464 …NumberDictionary::GetAllKeys(thread, JSHandle<NumberDictionary>(elements), elementIndex, keyArray); in GetAllElementKeys() 475 uint32_t elementIndex = 0; in GetAllElementKeysByFilter() local 479 elementIndex = JSPrimitiveRef::Cast(*obj)->GetStringLength(); in GetAllElementKeysByFilter() 480 for (uint32_t i = 0; i < elementIndex; ++i) { in GetAllElementKeysByFilter() 530 uint32_t elementIndex = 0; in GetEnumElementKeys() local 534 elementIndex = JSPrimitiveRef::Cast(*obj)->GetStringLength(); in GetEnumElementKeys() [all …]
|
/arkcompiler/ets_runtime/ecmascript/tests/ |
D | object_operator_test.cpp | 834 int32_t elementIndex = 2; in HWTEST_F_L0() local 835 PropertyAttributes handleAttr(elementIndex); in HWTEST_F_L0() 838 handleArr->SetArrayLength(thread, (elementIndex - 1)); in HWTEST_F_L0() 840 ObjectOperator objectOperator1(thread, handleArrObj, elementIndex); in HWTEST_F_L0() 850 ObjectOperator objectOperator2(thread, JSHandle<JSTaggedValue>(handleObject), elementIndex); in HWTEST_F_L0() 853 int resultEntry = resultDict->FindEntry(JSTaggedValue(static_cast<uint32_t>(elementIndex))); in HWTEST_F_L0() 854 EXPECT_EQ(resultDict->GetKey(resultEntry).GetInt(), elementIndex); in HWTEST_F_L0() 864 int32_t elementIndex = 4; in HWTEST_F_L0() local 865 PropertyAttributes handleDefaultAttr(elementIndex); in HWTEST_F_L0() 866 PropertyAttributes handleAttr(elementIndex); in HWTEST_F_L0() [all …]
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | literal_data_extractor.cpp | 71 uint32_t elementIndex = 0; in ExtractObjectDatas() local 72 if (JSTaggedValue::ToElementIndex(jt, &elementIndex) && ppos % pairSize == 0) { in ExtractObjectDatas() 324 uint32_t elementIndex = 0; in ExtractObjectDatas() local 325 if (JSTaggedValue::ToElementIndex(jt, &elementIndex) && ppos % pairSize == 0) { in ExtractObjectDatas()
|
D | class_info_extractor.cpp | 133 uint32_t elementIndex = 0; in ExtractAndReturnWhetherWithElements() local 134 if (JSTaggedValue::StringToElementIndex(firstValue.GetTaggedValue(), &elementIndex)) { in ExtractAndReturnWhetherWithElements() 135 ASSERT(elementIndex < JSObject::MAX_ELEMENT_INDEX); in ExtractAndReturnWhetherWithElements()
|
/arkcompiler/ets_runtime/ecmascript/stubs/ |
D | runtime_stubs.cpp | 292 int elementIndex = taggedElementIndex.GetInt(); in DEF_RUNTIME_STUBS() local 295 if (elementIndex >= capacity) { in DEF_RUNTIME_STUBS() 296 if (JSObject::ShouldTransToDict(capacity, elementIndex)) { in DEF_RUNTIME_STUBS() 301 elements = *JSObject::GrowElementsCapacity(thread, receiverHandle, elementIndex + 1); in DEF_RUNTIME_STUBS() 303 elements->Set(thread, elementIndex, valueHandle); in DEF_RUNTIME_STUBS() 306 elements->Set(thread, elementIndex, value); in DEF_RUNTIME_STUBS()
|