Home
last modified time | relevance | path

Searched refs:arrayType (Results 1 – 25 of 56) sorted by relevance

123

/arkcompiler/ets_runtime/ecmascript/base/
Dtyped_array_helper.h44 const DataViewType arrayType);
47 const DataViewType arrayType);
51 const DataViewType arrayType);
55 const DataViewType arrayType);
59 const DataViewType arrayType);
63 const DataViewType arrayType);
78 const DataViewType arrayType);
80 const DataViewType arrayType);
82 const DataViewType arrayType);
84 … const DataViewType arrayType);
[all …]
Dtyped_array_helper.cpp35 const DataViewType arrayType) in TypedArrayConstructor() argument
59 elementLength, arrayType); in TypedArrayConstructor()
64 …SObject> obj = TypedArrayHelper::AllocateTypedArray(thread, constructorName, newTarget, arrayType); in TypedArrayConstructor()
67 return TypedArrayHelper::CreateFromTypedArray(argv, obj, arrayType); in TypedArrayConstructor()
70 return TypedArrayHelper::CreateFromArrayBuffer(argv, obj, arrayType); in TypedArrayConstructor()
73 return TypedArrayHelper::FastCopyElementFromArray(argv, obj, arrayType); in TypedArrayConstructor()
80 return TypedArrayHelper::CreateFromOrdinaryObject(argv, obj, arrayType); in TypedArrayConstructor()
86 const DataViewType arrayType) in SharedTypedArrayConstructor() argument
112 … elementLength, arrayType); in SharedTypedArrayConstructor()
117 …t> obj = TypedArrayHelper::AllocateSharedTypedArray(thread, constructorName, newTarget, arrayType); in SharedTypedArrayConstructor()
[all …]
Dtyped_array_helper-inl.h211 …SFunction> TypedArrayHelper::GetConstructorFromType(JSThread *thread, const DataViewType arrayType)
214 switch (arrayType) {
241 …ion> TypedArrayHelper::GetSharedConstructorFromType(JSThread *thread, const DataViewType arrayType)
244 switch (arrayType) {
271 …Value> TypedArrayHelper::GetConstructorNameFromType(JSThread *thread, const DataViewType arrayType)
274 switch (arrayType) {
302 const DataViewType arrayType)
305 switch (arrayType) {
333 JSThread *thread, const JSHandle<JSTypedArray> &obj, const DataViewType arrayType)
337 switch (arrayType) {
[all …]
/arkcompiler/runtime_core/static_core/plugins/ets/tests/stdlib-templates/utils/
Dtest_core_type_array_type.j221 let arrayType : ArrayType;
28 arrayType = Type.of(arrayVar) as ArrayType;
29 testResult = checkTestResult(arrayType.getElementType(), Type.of({{.item.init_value}}));
32 obj = arrayType.make({{.array_size}}) as {{.item.name}}[];
/arkcompiler/ets_frontend/ets2panda/checker/ets/
DtypeCreation.cpp125 auto *arrayType = Allocator()->New<ETSArrayType>(elementType); in CreateETSArrayType() local
128 arrayType->ToAssemblerTypeWithRank(ss); in CreateETSArrayType()
129 arrayType->SetAssemblerName(util::UString(ss.str(), Allocator()).View()); in CreateETSArrayType()
131 auto it = arrayTypes_.insert({elementType, arrayType}); in CreateETSArrayType()
133 CreateBuiltinArraySignature(arrayType, arrayType->Rank()); in CreateETSArrayType()
136 return arrayType; in CreateETSArrayType()
600 …::StringView, SignatureInfo *> ETSChecker::CreateBuiltinArraySignatureInfo(ETSArrayType *arrayType, in CreateBuiltinArraySignatureInfo() argument
604 arrayType->ToAssemblerTypeWithRank(ss); in CreateBuiltinArraySignatureInfo()
606 arrayType->ToAssemblerTypeWithRank(ss); in CreateBuiltinArraySignatureInfo()
629 Signature *ETSChecker::CreateBuiltinArraySignature(ETSArrayType *arrayType, size_t dim) in CreateBuiltinArraySignature() argument
[all …]
/arkcompiler/ets_frontend/ets2panda/ir/ets/
DetsTuple.cpp138 auto *const arrayType = spreadType_->GetType(checker); in GetType() local
139 ASSERT(arrayType->IsETSArrayType()); in GetType()
140 spreadType_->SetTsType(arrayType->AsETSArrayType()->ElementType()); in GetType()
/arkcompiler/runtime_core/static_core/compiler/tests/
Dloop_idioms_test.cpp24 Graph *CheckFillArrayFullInitial(DataType::Type arrayType) in CheckFillArrayFullInitial() argument
31 PARAMETER(1U, 1U).type(arrayType); in CheckFillArrayFullInitial()
47 INST(10U, Opcode::StoreArray).type(arrayType).Inputs(5U, 9U, 1U); in CheckFillArrayFullInitial()
62 void BuildExpectedFillArrayFull(Graph *expected, DataType::Type arrayType, in BuildExpectedFillArrayFull() argument
69 PARAMETER(1U, 1U).type(arrayType); in BuildExpectedFillArrayFull()
93 INST(10U, Opcode::StoreArray).type(arrayType).Inputs(5U, 9U, 1U); in BuildExpectedFillArrayFull()
103 ….Inputs({{DataType::REFERENCE, 5U}, {arrayType, 1U}, {DataType::INT32, 2U}, {DataType::INT32, 6U}}) in BuildExpectedFillArrayFull()
122 … bool CheckFillArrayFull(DataType::Type arrayType, RuntimeInterface::IntrinsicId expectedIntrinsic) in CheckFillArrayFull() argument
124 auto initial = CheckFillArrayFullInitial(arrayType); in CheckFillArrayFull()
131 BuildExpectedFillArrayFull(expected, arrayType, expectedIntrinsic); in CheckFillArrayFull()
/arkcompiler/runtime_core/static_core/bytecode_optimizer/
Dconst_array_resolver.cpp161 auto arrayType = pandasm::Type::FromName(irInterface_->GetTypeIdByOffset(inst->GetTypeId())); in IsMultidimensionalArray() local
162 return arrayType.GetRank() > SINGLE_DIM_ARRAY_RANK; in IsMultidimensionalArray()
321 auto arrayType = in FillLiteral() local
323 auto componentType = arrayType.GetComponentType(); in FillLiteral()
325 if (arrayType.IsArrayContainsPrimTypes()) { in FillLiteral()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_pgo/src/
Dinstrument.cpp60 … MIRArrayType &arrayType = *GlobalTables::GetTypeTable().GetOrCreateArrayType(*elemType, elemCnt); in GetOrCreateFuncCounter() local
61 sym = mirModule->GetMIRBuilder()->CreateGlobalDecl(name.c_str(), arrayType, kScFstatic); in GetOrCreateFuncCounter()
62 auto *profTab = mirModule->GetMemPool()->New<MIRAggConst>(*mirModule, arrayType); in GetOrCreateFuncCounter()
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/
Dark_gvn.cpp75 auto arrayType = llvm::ArrayType::get(builder.getInt64Ty(), 0); in CreateCallBuiltin() local
76 auto offset = builder.CreateIntToPtr(zero, arrayType->getPointerTo()); in CreateCallBuiltin()
152 auto arrayType = llvm::ArrayType::get(builder.getInt64Ty(), 0); in RunOnBasicBlock() local
153 llvm::Value *slot = builder.CreateConstInBoundsGEP2_64(arrayType, aotGot, 0, slotId); in RunOnBasicBlock()
Dpanda_runtime_lowering.cpp130 auto arrayType = llvm::ArrayType::get(builder->getInt64Ty(), 0); in GetMethodOrResolverPtr() local
131 auto methodPtr = builder->CreateConstInBoundsGEP2_64(arrayType, aotGot, 0, slot); in GetMethodOrResolverPtr()
Dintrinsics_lowering.cpp194 auto arrayType = llvm::ArrayType::get(builder.getInt64Ty(), 0); in HandleFRem() local
195 …auto pointerToEntrypointAddress = builder.CreateConstInBoundsGEP2_32(arrayType, table, 0, intrinsi… in HandleFRem()
/arkcompiler/ets_frontend/merge_abc/src/
DassemblyProgramProto.cpp89 auto &arrayType = Type::Deserialize(protoArrayType, allocator); in Deserialize() local
90 program.array_types.insert(std::move(arrayType)); in Deserialize()
/arkcompiler/ets_frontend/es2panda/typescript/types/
DtupleType.cpp30 Type *arrayType = checker->CreateUnionType(std::move(unionTypes)); in ConvertToArrayType() local
31 return checker->Allocator()->New<ArrayType>(arrayType); in ConvertToArrayType()
/arkcompiler/ets_frontend/ets2panda/checker/types/ts/
DtupleType.cpp29 Type *arrayType = checker->CreateUnionType(std::move(unionTypes)); in ConvertToArrayType() local
30 return checker->Allocator()->New<ArrayType>(arrayType); in ConvertToArrayType()
/arkcompiler/ets_frontend/ets2panda/compiler/lowering/ets/
DspreadLowering.cpp51 std::string arrayType = array->TsType()->AsETSArrayType()->ElementType()->ToString(); in CreateETSCode() local
56 src << "type typeOfTempArray = " << arrayType << std::endl; in CreateETSCode()
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/
Druntime_calls.cpp43 auto arrayType = llvm::ArrayType::get(builder->getInt64Ty(), 0); in GetPandaRuntimeFunctionCallee() local
44 auto epAddrPtr = builder->CreateConstInBoundsGEP2_32(arrayType, table, 0, entrypoint); in GetPandaRuntimeFunctionCallee()
Dbuiltins.cpp103 auto arrayType = llvm::ArrayType::get(builder->getInt64Ty(), 0); in SlowClassLoadingHelper() local
110 … auto klassPtr = builder->CreateInBoundsGEP(arrayType, aotGot, {builder->getInt32(0), slotIdVal}); in SlowClassLoadingHelper()
358 auto arrayType = llvm::ArrayType::get(builder->getInt64Ty(), 0); in LowerLoadString() local
364 auto slotPtr = builder->CreateInBoundsGEP(arrayType, aotGot, {builder->getInt32(0), slotId}); in LowerLoadString()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/src/
Dmir_lower.cpp719 … MIRType &arrayType = *GlobalTables::GetTypeTable().GetTypeFromTyIdx(TyIdx(array->GetPrimType())); in LowerFarray() local
733 …MIRIntConst *eleConst = GlobalTables::GetIntConstTable().GetOrCreateIntConst(eleOffset, arrayType); in LowerFarray()
768 MIRArrayType *arrayType = static_cast<MIRArrayType *>(aType); in LowerCArray() local
778 uint64 dim = arrayType->GetDim(); in LowerCArray()
783 innerType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(arrayType->GetElemTyIdx()); in LowerCArray()
788 …elemSize = RoundUp(innerArrayType->GetElemType()->GetSize(), arrayType->GetElemType()->GetAlign()); in LowerCArray()
797 MIRArrayType *curArrayType = arrayType; in LowerCArray()
804 CHECK_FATAL(arrayType->GetSizeArrayItem(0) > 0, "Zero size array dimension"); in LowerCArray()
813 … CHECK_FATAL(arrayType->GetSizeArrayItem(static_cast<uint32>(i)) > 0, "Zero size array dimension"); in LowerCArray()
815 mpyDim *= arrayType->GetSizeArrayItem(static_cast<uint32>(j)); in LowerCArray()
[all …]
Dglobal_tables.cpp233 MIRArrayType arrayType(elem.GetTypeIndex(), sizeVector); in GetOrCreateArrayType() local
234 arrayType.SetTypeAttrs(attrs); in GetOrCreateArrayType()
235 TyIdx tyIdx = GetOrCreateMIRType(&arrayType); in GetOrCreateArrayType()
Dmir_builder.cpp835 ArrayNode *MIRBuilder::CreateExprArray(const MIRType &arrayType) in CreateExprArray() argument
837 MIRType *addrType = GlobalTables::GetTypeTable().GetOrCreatePointerType(arrayType); in CreateExprArray()
845 ArrayNode *MIRBuilder::CreateExprArray(const MIRType &arrayType, BaseNode *op) in CreateExprArray() argument
847 ArrayNode *arrayNode = CreateExprArray(arrayType); in CreateExprArray()
853 ArrayNode *MIRBuilder::CreateExprArray(const MIRType &arrayType, BaseNode *op1, BaseNode *op2) in CreateExprArray() argument
855 ArrayNode *arrayNode = CreateExprArray(arrayType, op1); in CreateExprArray()
861 ArrayNode *MIRBuilder::CreateExprArray(const MIRType &arrayType, std::vector<BaseNode *> ops) in CreateExprArray() argument
863 MIRType *addrType = GlobalTables::GetTypeTable().GetOrCreatePointerType(arrayType); in CreateExprArray()
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_be/src/be/
Dbecommon.cpp301 MIRArrayType &arrayType = static_cast<MIRArrayType &>(ty); in ComputeArrayTypeSizesAligns() local
302 MIRType *elemType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(arrayType.GetElemTyIdx()); in ComputeArrayTypeSizesAligns()
312 uint32 arrayAlign = arrayType.GetTypeAttrs().GetAlign(); in ComputeArrayTypeSizesAligns()
317 for (int d = 0; d < arrayType.GetDim(); ++d) { in ComputeArrayTypeSizesAligns()
318 numElems *= arrayType.GetSizeArrayItem(d); in ComputeArrayTypeSizesAligns()
332 MIRFarrayType &arrayType = static_cast<MIRFarrayType &>(ty); in ComputeFArrayOrJArrayTypeSizesAligns() local
333 MIRType *elemType = GlobalTables::GetTypeTable().GetTypeFromTyIdx(arrayType.GetElemTyIdx()); in ComputeFArrayOrJArrayTypeSizesAligns()
/arkcompiler/ets_runtime/ecmascript/compiler/builtins/
Dbuiltins_typedarray_stub_builder.cpp453 GateRef arrayType = GetObjectType(LoadHClass(thisValue)); in Reverse() local
454 BRANCH(IsFastTypeArray(arrayType), &isFastTypedArray, slowPath); in Reverse()
480 TruncInt64ToInt32(*lower), arrayType); in Reverse()
482 TruncInt64ToInt32(*upper), arrayType); in Reverse()
491 StoreTypedArrayElement(glue, thisValue, *lower, upperValue, arrayType); in Reverse()
492 StoreTypedArrayElement(glue, thisValue, *upper, lowerValue, arrayType); in Reverse()
1430 GateRef arrayType = GetObjectType(LoadHClass(thisValue)); in Filter() local
1431 BRANCH(IsFastTypeArray(arrayType), &isFastTypedArray, slowPath); in Filter()
1474 GateRef kValue = FastGetPropertyByIndex(glue, thisValue, *i, arrayType); in Filter()
1517 …GateRef newArray = newBuilder.NewTypedArray(glue, thisValue, arrayType, TruncInt64ToInt32(*newArra… in Filter()
[all …]
/arkcompiler/ets_runtime/ecmascript/compiler/codegen/maple/maple_ir/include/
Dmir_builder.h244 ArrayNode *CreateExprArray(const MIRType &arrayType);
245 ArrayNode *CreateExprArray(const MIRType &arrayType, BaseNode *op);
246 ArrayNode *CreateExprArray(const MIRType &arrayType, BaseNode *op1, BaseNode *op2);
247 ArrayNode *CreateExprArray(const MIRType &arrayType, std::vector<BaseNode *> ops);
/arkcompiler/ets_frontend/ets2panda/compiler/core/
DETSemitter.h77 void GenGlobalArrayRecord(checker::ETSArrayType *arrayType, checker::Signature *signature);

123