Home
last modified time | relevance | path

Searched refs:arraySize (Results 1 – 22 of 22) sorted by relevance

/arkcompiler/ets_runtime/test/aottest/early_elimination/
DMayAccessOneMemory.ts16 let arraySize: number = 3 variable
20 res[i % arraySize] = arr[i % 3];
21 res[i % arraySize] = arr[i % 3];
26 res[i % arraySize] = arr2[i % 3];
27 res[i % arraySize] = arr2[i % 3];
/arkcompiler/ets_runtime/ecmascript/
Dproperty_accessor.cpp127 uint32_t arraySize = keyLength_ + EnumCache::ENUM_CACHE_HEADER_SIZE; in InitSimplePropertiesEnumCache() local
128 … JSHandle<TaggedArray> newArray = thread_->GetEcmaVM()->GetFactory()->NewTaggedArray(arraySize); in InitSimplePropertiesEnumCache()
202 uint32_t arraySize = keyLength_ + EnumCache::ENUM_CACHE_HEADER_SIZE; in GetKeysFast() local
203 JSHandle<TaggedArray> keyArray = factory->NewTaggedArray(arraySize); in GetKeysFast()
277 uint32_t arraySize = keyLength_ + EnumCache::ENUM_CACHE_HEADER_SIZE; in MergeRemainings() local
278 JSHandle<TaggedArray> keyArray = thread_->GetEcmaVM()->GetFactory()->NewTaggedArray(arraySize); in MergeRemainings()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/aarch64/
Daarch64_abi.cpp168 PrimType IsVectorArrayType(MIRType *ty, uint32 &arraySize) in IsVectorArrayType() argument
178 arraySize = arrayTy->GetSizeArrayItem(0); in IsVectorArrayType()
179 if (arrayTy->GetDim() == k1BitSize && arraySize <= static_cast<int32>(k4BitSize) && in IsVectorArrayType()
Daarch64_schedule.cpp497 void AArch64Schedule::CountUnitKind(const DepNode &depNode, uint32 array[], const uint32 arraySize)… in CountUnitKind()
499 (void)arraySize; in CountUnitKind()
500 DEBUG_ASSERT(arraySize >= kUnitKindLast, "CG internal error. unit kind number is not correct."); in CountUnitKind()
/arkcompiler/ets_runtime/ecmascript/tests/
Dglobal_dictionary_test.cpp237 int arraySize = numberofElements + static_cast<int>(offset); in HWTEST_F_L0() local
238 JSHandle<TaggedArray> keyArray = factory->NewTaggedArray(arraySize); in HWTEST_F_L0()
246 JSHandle<EcmaString> resultLastKey(thread, keyArray->Get(arraySize - 1)); in HWTEST_F_L0()
285 uint32_t arraySize = static_cast<uint32_t>(numberofElements) + offset; in HWTEST_F_L0() local
286 JSHandle<TaggedArray> keyArray = factory->NewTaggedArray(arraySize); in HWTEST_F_L0()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/x86_64/
Dx64_abi.h44 PrimType IsVectorArrayType(MIRType *ty, uint32 &arraySize);
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/aarch64/
Daarch64_abi.h49 PrimType IsVectorArrayType(MIRType *ty, uint32 &arraySize);
Daarch64_schedule.h302 … void CountUnitKind(const DepNode &depNode, uint32 array[], const uint32 arraySize) const override;
/arkcompiler/runtime_core/static_core/bytecode_optimizer/
Dconst_array_resolver.cpp214 auto arraySize = (*arraySizeInst)->CastToConstant()->GetIntValue(); in FindConstantArrays() local
215 if (arraySize < MIN_ARRAY_ELEMENTS_AMOUNT) { in FindConstantArrays()
221 auto rawLiteralArray = FillLiteralArray(newArrayInst, arraySize); in FindConstantArrays()
/arkcompiler/ets_runtime/ecmascript/compiler/
Dntype_bytecode_lowering.cpp202 uint32_t arraySize = acc_.GetArraySize(receiver); in LowerNTypedStownByIndex() local
203 if (indexValue > arraySize) { in LowerNTypedStownByIndex()
206 acc_.SetArraySize(receiver, std::max(arraySize, indexValue + 1)); in LowerNTypedStownByIndex()
Dnew_object_stub_builder.h72 GateRef arraySize);
Dntype_hcr_lowering.cpp151 size_t arraySize = arrayHC->GetObjectSize(); in NewJSArrayLiteral() local
161 …for (size_t offset = JSArray::SIZE; offset < arraySize; offset += JSTaggedValue::TaggedTypeSize())… in NewJSArrayLiteral()
Dhcr_circuit_builder.cpp408 GateRef CircuitBuilder::CreateArray(ElementsKind kind, uint32_t arraySize, GateRef elementsLength) in CreateArray() argument
413 ArrayMetaDataAccessor accessor(kind, ArrayMetaDataAccessor::Mode::CREATE, arraySize); in CreateArray()
Dnew_object_stub_builder.cpp866 RegionSpaceFlag spaceFlag, GateRef arraySize) in NewTrackInfo() argument
886 Store(VariableType::INT32(), glue, *result, arrayLengthOffset, arraySize); in NewTrackInfo()
Dcircuit_builder.h341 GateRef CreateArray(ElementsKind kind, uint32_t arraySize, GateRef elementsLength);
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/
Dinst_builder-inl.h976 auto arraySize = litArray.literals.size(); in BuildUnfoldLoadConstStringArray() local
977 for (size_t i = 0; i < arraySize; i++) { in BuildUnfoldLoadConstStringArray()
997 auto arraySize = litArray.literals.size(); in BuildUnfoldLoadConstArray() local
1001 auto sizeInst = graph_->FindOrCreateConstant(arraySize); in BuildUnfoldLoadConstArray()
1014 if (arraySize > g_options.GetCompilerUnfoldConstArrayMaxSize()) { in BuildUnfoldLoadConstArray()
1018 … bcInst->GetId(0).AsFileId().GetOffset(), method, arraySize); in BuildUnfoldLoadConstArray()
1027 for (size_t i = 0; i < arraySize; i++) { in BuildUnfoldLoadConstArray()
1055 auto arraySize = litArray.literals.size(); in BuildLoadConstStringArray() local
1056 ASSERT(arraySize > 0); in BuildLoadConstStringArray()
1057 if (arraySize > g_options.GetCompilerUnfoldConstArrayMaxSize()) { in BuildLoadConstStringArray()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/include/cg/
Demit.h384 arraySize(0), in Emitter()
414 uint32 arraySize; variable
Dschedule.h162 …virtual void CountUnitKind(const DepNode &depNode, uint32 array[], const uint32 arraySize) const =…
/arkcompiler/runtime_core/static_core/runtime/tests/
Dg1gc_test.cpp715 size_t arraySize = DEFAULT_REGION_SIZE / 2; in TEST_F() local
717 size_t arrayLength = arraySize / elemSize + 1; in TEST_F()
952 size_t arraySize = DEFAULT_REGION_SIZE / 2; in TEST_F() local
953 size_t arrayLength = arraySize / elemSize + 1; in TEST_F()
1085 size_t arraySize = GetObjectSize(array.GetPtr()); in TEST_F() local
1111 ASSERT_EQ(arraySize + strSize, region->GetLiveBytes()); in TEST_F()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/cg/
Demit.cpp399 arraySize); in EmitAsmLabel()
478 arraySize); in EmitAsmLabel()
686 arraySize += static_cast<uint32>(len) + 1; in EmitStrConstant()
739 arraySize += (sizeInBits / kBitsPerByte); in EmitScalarConstant()
748 arraySize += k4ByteFloatSize; in EmitScalarConstant()
757 arraySize += k8ByteDoubleSize; in EmitScalarConstant()
1793 arraySize = 0; in EmitStructConstant()
/arkcompiler/runtime_core/static_core/compiler/optimizer/code_generator/
Dcodegen.cpp2916 auto arraySize = inst->CastToFillConstArray()->GetImm() << DataType::ShiftByType(type, arch); in VisitFillConstArray() local
2921 ASSERT(arraySize != 0); in VisitFillConstArray()
2939 enc->GetCodegen()->FillCallParams(arrayReg, methodReg, TypedImm(arraySize)); in VisitFillConstArray()
2949 enc->GetCodegen()->FillCallParams(arrayReg, TypedImm(data), TypedImm(arraySize)); in VisitFillConstArray()
2997 uint64_t arraySize = 0; in VisitNewArray() local
3002 arraySize = lenInst->CastToConstant()->GetIntValue() * elementSize + classArraySize; in VisitNewArray()
3003arraySize = (arraySize & ~(alignment - 1U)) + ((arraySize % alignment) != 0U ? alignment : 0U); in VisitNewArray()
3004 if (arraySize > maxTlabSize) { in VisitNewArray()
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/
Dpeepholes.cpp1340 … auto arraySize = input->GetDataFlowInput(input->GetInput(NewArrayInst::INDEX_SIZE).GetInst()); in VisitLenArray() local
1342 if (SkipThisPeepholeInOSR(inst, arraySize)) { in VisitLenArray()
1345 inst->ReplaceUsers(arraySize); in VisitLenArray()