/arkcompiler/ets_runtime/ecmascript/tests/ |
D | object_operator_third_test.cpp | 190 int32_t elementIndex = 2; in HWTEST_F_L0() local 191 PropertyAttributes handleAttr(elementIndex); in HWTEST_F_L0() 194 handleArr->SetArrayLength(thread, (elementIndex - 1)); in HWTEST_F_L0() 196 ObjectOperator objectOperator1(thread, handleArrObj, elementIndex); in HWTEST_F_L0() 206 ObjectOperator objectOperator2(thread, JSHandle<JSTaggedValue>(handleObject), elementIndex); in HWTEST_F_L0() 209 int resultEntry = resultDict->FindEntry(JSTaggedValue(static_cast<uint32_t>(elementIndex))); in HWTEST_F_L0() 210 EXPECT_EQ(resultDict->GetKey(resultEntry).GetInt(), elementIndex); in HWTEST_F_L0() 220 int32_t elementIndex = 4; in HWTEST_F_L0() local 221 PropertyAttributes handleDefaultAttr(elementIndex); in HWTEST_F_L0() 222 PropertyAttributes handleAttr(elementIndex); in HWTEST_F_L0() [all …]
|
/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 | 503 uint32_t elementIndex = static_cast<uint32_t>(index); in LoadElement() local 504 if (ElementAccessor::GetElementsLength(receiver) <= elementIndex) { in LoadElement() 508 JSTaggedValue value = ElementAccessor::Get(receiver, elementIndex); in LoadElement() 519 uint32_t elementIndex = static_cast<uint32_t>(index); in LoadStringElement() local 524 if (EcmaStringAccessor(strFlat).GetLength() <= elementIndex) { in LoadStringElement() 527 tmpChar = EcmaStringAccessor(strFlat).Get(elementIndex); in LoadStringElement() 558 uint32_t elementIndex = static_cast<uint32_t>(index); in StoreElement() local 573 if (elementIndex >= oldLength) { in StoreElement() 574 arr->SetArrayLength(thread, elementIndex + 1); in StoreElement() 579 if (elementIndex >= capacity) { in StoreElement() [all …]
|
/arkcompiler/ets_runtime/ecmascript/compiler/aot_snapshot/ |
D | snapshot_constantpool_data.cpp | 62 int32_t elementIndex) in CollectLiteralInfo() argument 95 if (elementIndex != AOT_ELEMENT_INDEX_DEFAULT_VALUE) { in CollectLiteralInfo() 96 aotLiteralInfo->SetElementIndex(JSTaggedValue(elementIndex)); in CollectLiteralInfo() 235 int32_t elementIndex = ptManager->GetElementsIndexByEntityId(id); in StoreDataToGlobalData() local 242 …ectLiteralInfo(literal, data.constantPoolIdx_, snapshotCp, skippedMethods, ihc, chc, elementIndex); in StoreDataToGlobalData()
|
D | snapshot_constantpool_data.h | 78 int32_t elementIndex = AOT_ELEMENT_INDEX_DEFAULT_VALUE);
|
/arkcompiler/ets_runtime/ecmascript/ |
D | js_object.cpp | 561 uint32_t elementIndex = 0; in GetAllElementKeys() local 563 … elementIndex = JSPrimitiveRef::Cast(*obj)->GetStringLength() + static_cast<uint32_t>(offset); in GetAllElementKeys() 564 for (uint32_t i = static_cast<uint32_t>(offset); i < elementIndex; ++i) { in GetAllElementKeys() 572 for (uint32_t i = 0, j = elementIndex; i < elementsLen; ++i) { in GetAllElementKeys() 580 …NumberDictionary::GetAllKeys(thread, JSHandle<NumberDictionary>(elements), elementIndex, keyArray); in GetAllElementKeys() 591 uint32_t elementIndex = 0; in GetAllElementKeysByFilter() local 595 elementIndex = JSPrimitiveRef::Cast(*obj)->GetStringLength(); in GetAllElementKeysByFilter() 596 for (uint32_t i = 0; i < elementIndex; ++i) { in GetAllElementKeysByFilter() 654 uint32_t elementIndex = static_cast<uint32_t>(offset); in CollectEnumElementsAlongProtoChain() local 661 elementArray->Set(thread, elementIndex, keyHandle); in CollectEnumElementsAlongProtoChain() [all …]
|
D | js_proxy.cpp | 903 uint32_t elementIndex = 0; in GetAllPropertyKeys() local 907 resArray->Set(thread, elementIndex, reciveArray->Get(index)); in GetAllPropertyKeys() 908 elementIndex++; in GetAllPropertyKeys()
|
/arkcompiler/ets_runtime/ecmascript/compiler/ |
D | ntype_bytecode_lowering.cpp | 173 int elementIndex = ptManager_->GetElementsIndexByEntityId(id); in LowerNTypedCreateArrayWithBuffer() local 174 if (elementIndex == -1) { // slowpath in LowerNTypedCreateArrayWithBuffer() 180 GateRef elementIndexGate = builder_.IntPtr(elementIndex); in LowerNTypedCreateArrayWithBuffer()
|
D | ntype_hcr_lowering.cpp | 84 auto elementIndex = acc_.GetConstantValue(aotElmIndex); in LowerCreateArrayWithBuffer() local 89 …GateRef literialElements = LoadFromConstPool(jsFunc, elementIndex, ConstantPool::AOT_ARRAY_INFO_IN… in LowerCreateArrayWithBuffer()
|
D | hcr_circuit_builder.cpp | 423 GateRef constPoolIndex, GateRef elementIndex) in CreateArrayWithBuffer() argument 433 elementIndex, frameState }, in CreateArrayWithBuffer()
|
D | circuit_builder.h | 343 GateRef constPoolIndex, GateRef elementIndex);
|
/arkcompiler/ets_runtime/ecmascript/builtins/ |
D | builtins_number.cpp | 208 int32_t elementIndex = 0; in ParseInt() local 209 if (EcmaStringAccessor(numberString).ToInt(&elementIndex, &negative)) { in ParseInt() 210 if (elementIndex == 0 && negative == true) { in ParseInt() 213 return GetTaggedInt(elementIndex); in ParseInt()
|
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/ |
D | builtins_object_stub_builder.cpp | 1142 DEFVARIABLE(elementIndex, VariableType::INT32(), Int32(0)); in GetEnumElementKeys() 1176 *elementIndex, str); in GetEnumElementKeys() 1177 elementIndex = Int32Add(*elementIndex, Int32(1)); in GetEnumElementKeys() 1207 *elementIndex, str); in GetEnumElementKeys() 1208 elementIndex = Int32Add(*elementIndex, Int32(1)); in GetEnumElementKeys() 1217 elementArray, IntPtr(TaggedArray::LENGTH_OFFSET), *elementIndex); in GetEnumElementKeys() 1226 { elements, elementArray, IntToTaggedInt(*elementIndex) }); in GetEnumElementKeys()
|
/arkcompiler/ets_runtime/ecmascript/jspandafile/ |
D | literal_data_extractor.cpp | 72 uint32_t elementIndex = 0; in ExtractObjectDatas() local 73 if (JSTaggedValue::ToElementIndex(jt, &elementIndex) && ppos % pairSize == 0) { in ExtractObjectDatas() 393 uint32_t elementIndex = 0; in ExtractObjectDatas() local 394 if (JSTaggedValue::ToElementIndex(jt, &elementIndex) && ppos % pairSize == 0) { in ExtractObjectDatas()
|
D | program_object.h | 416 int elementIndex = entryIndexes->GetElementIndex(); in TryGetAOTArrayLiteral() local 417 if (elementIndex != kungfu::BaseSnapshotInfo::AOT_ELEMENT_INDEX_DEFAULT_VALUE) { in TryGetAOTArrayLiteral() 420 literal.Update(aotArrayInfos->Get(elementIndex)); in TryGetAOTArrayLiteral()
|
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 | 374 int elementIndex = taggedElementIndex.GetInt(); in DEF_RUNTIME_STUBS() local 377 if (elementIndex >= capacity) { in DEF_RUNTIME_STUBS() 378 if (JSObject::ShouldTransToDict(capacity, elementIndex)) { in DEF_RUNTIME_STUBS() 383 elements = *JSObject::GrowElementsCapacity(thread, receiverHandle, elementIndex + 1); in DEF_RUNTIME_STUBS() 385 elements->Set(thread, elementIndex, valueHandle); in DEF_RUNTIME_STUBS() 388 elements->Set(thread, elementIndex, value); in DEF_RUNTIME_STUBS() 3273 int elementIndex = argKeys.GetInt(); in DEF_RUNTIME_STUBS() local 3274 uint32_t keys = elementIndex; in DEF_RUNTIME_STUBS() 3276 thread, JSHandle<NumberDictionary>(array), elementIndex, elementArray, &keys); in DEF_RUNTIME_STUBS()
|