/arkcompiler/runtime_core/static_core/runtime/ |
H A D | class_helper.cpp | 45 char ClassHelper::GetPrimitiveTypeDescriptorChar(panda_file::Type::TypeId typeId) in GetPrimitiveTypeDescriptorChar() argument 48 return static_cast<char>(*GetPrimitiveTypeDescriptorStr(typeId)); in GetPrimitiveTypeDescriptorChar() 52 const uint8_t *ClassHelper::GetPrimitiveTypeDescriptorStr(panda_file::Type::TypeId typeId) in GetPrimitiveTypeDescriptorStr() argument 54 if (typeId == panda_file::Type::TypeId::REFERENCE) { in GetPrimitiveTypeDescriptorStr() 59 return utf::CStringAsMutf8(panda_file::Type::GetSignatureByTypeId(panda_file::Type(typeId))); in GetPrimitiveTypeDescriptorStr() 63 const char *ClassHelper::GetPrimitiveTypeStr(panda_file::Type::TypeId typeId) in GetPrimitiveTypeStr() argument 65 switch (typeId) { in GetPrimitiveTypeStr()
|
H A D | compiler.cpp | 146 compiler::RuntimeInterface::ClassPtr PandaRuntimeInterface::GetStringClass(MethodPtr method, uint32_t *typeId) const in GetStringClass() 151 if (typeId != nullptr) { in GetStringClass() 152 *typeId = classPtr->GetFileId().GetOffset(); in GetStringClass() 158 uint32_t *typeId) const in GetNumberClass() 166 *typeId = classPtr->GetFileId().GetOffset(); in GetNumberClass() 633 auto typeId = panda_file::FieldDataAccessor::GetTypeId(*pf, panda_file::File::EntityId(id)); in GetFieldValueTypeId() local 634 return typeId.GetOffset(); in GetFieldValueTypeId() 827 bool UnresolvedTypesWrapper::AddTableSlot(RuntimeInterface::MethodPtr method, uint32_t typeId, SlotKind kind) in AddTableSlot() argument 829 std::pair<uint32_t, UnresolvedTypesInterface::SlotKind> key {typeId, kind}; in AddTableSlot() 842 uintptr_t UnresolvedTypesWrapper::GetTableSlot(RuntimeInterface::MethodPtr method, uint32_t typeId, SlotKin argument [all...] |
/arkcompiler/runtime_core/static_core/libpandafile/ |
H A D | debug_info_updater-inl.h | 91 bool HandleStartLocal([[maybe_unused]] int32_t regNumber, uint32_t nameId, uint32_t typeId) in HandleStartLocal() argument 94 std::string type = debug_helpers::GetStringFromConstantPool(GetPandaFile(), typeId); in HandleStartLocal() 97 scrapper_->GetType(File::EntityId(typeId), type); in HandleStartLocal() 101 bool HandleStartLocalExtended([[maybe_unused]] int32_t regNumber, uint32_t nameId, uint32_t typeId, in HandleStartLocalExtended() argument 105 std::string type = debug_helpers::GetStringFromConstantPool(GetPandaFile(), typeId); in HandleStartLocalExtended() 109 scrapper_->GetType(File::EntityId(typeId), type); in HandleStartLocalExtended() 221 bool HandleStartLocal(int32_t regNumber, uint32_t nameId, uint32_t typeId) in HandleStartLocal() argument 224 std::string type = debug_helpers::GetStringFromConstantPool(GetPandaFile(), typeId); in HandleStartLocal() 227 auto *typeItem = updater_->GetType(File::EntityId(typeId), type); in HandleStartLocal() 234 bool HandleStartLocalExtended(int32_t regNumber, uint32_t nameId, uint32_t typeId, uint32_ argument [all...] |
H A D | debug_helpers.h | 92 [[maybe_unused]] uint32_t typeId) const in HandleStartLocal() 98 [[maybe_unused]] uint32_t typeId, [[maybe_unused]] uint32_t typeSignatureId) const in HandleStartLocalExtended() 97 HandleStartLocalExtended([[maybe_unused]] int32_t regNumber, [[maybe_unused]] uint32_t nameId, [[maybe_unused]] uint32_t typeId, [[maybe_unused]] uint32_t typeSignatureId) const HandleStartLocalExtended() argument
|
H A D | debug_info_extractor.cpp | 86 bool HandleStartLocal(int32_t regNumber, uint32_t nameId, uint32_t typeId) in HandleStartLocal() argument 89 const char *type = debug_helpers::GetStringFromConstantPool(state_->GetPandaFile(), typeId); in HandleStartLocal() 94 bool HandleStartLocalExtended(int32_t regNumber, uint32_t nameId, uint32_t typeId, uint32_t typeSignatureId) in HandleStartLocalExtended() argument 97 const char *type = debug_helpers::GetStringFromConstantPool(state_->GetPandaFile(), typeId); in HandleStartLocalExtended()
|
H A D | file_reader.cpp | 54 BaseClassItem *GetType(File::EntityId typeId, const std::string &typeName) in GetType() argument 56 if (GetFile()->IsExternal(typeId)) { in GetType() 233 ark::panda_file::Type::TypeId typeId) in GeneratePrimitiveItemLesserInt32() 241 return static_cast<ValueItem *>(container.CreateItem<ArrayValueItem>(Type(typeId), std::move(items))); in GeneratePrimitiveItemLesserInt32() 246 ark::panda_file::Type::TypeId typeId) in GeneratePrimitiveItem() 254 return static_cast<ValueItem *>(container.CreateItem<ArrayValueItem>(Type(typeId), std::move(items))); in GeneratePrimitiveItem() 778 File::EntityId typeId(fieldAcc.GetType()); in CreateFieldItem() 779 if (file_->IsExternal(typeId)) { in CreateFieldItem() 780 fieldTypeItem = CreateForeignClassItem(typeId); in CreateFieldItem() 782 fieldTypeItem = CreateClassItem(typeId); in CreateFieldItem() 232 GeneratePrimitiveItemLesserInt32(AnnotationDataAccessor::Elem &annElem, ItemContainer &container, ark::panda_file::Type::TypeId typeId) GeneratePrimitiveItemLesserInt32() argument 245 GeneratePrimitiveItem(AnnotationDataAccessor::Elem &annElem, ItemContainer &container, ark::panda_file::Type::TypeId typeId) GeneratePrimitiveItem() argument [all...] |
/arkcompiler/runtime_core/static_core/compiler/optimizer/analysis/ |
H A D | alias_analysis.cpp | 700 uint32_t typeId = 0; in ParsePoolConstant() local 703 typeId = inst->CastToLoadString()->GetTypeId(); in ParsePoolConstant() 706 typeId = inst->CastToLoadType()->GetTypeId(); in ParsePoolConstant() 709 typeId = inst->CastToUnresolvedLoadType()->GetTypeId(); in ParsePoolConstant() 714 return Pointer::CreatePoolConstant(typeId); in ParsePoolConstant() 719 uint32_t typeId = 0; in ParseStaticField() local 723 typeId = inst->CastToLoadStatic()->GetTypeId(); in ParseStaticField() 727 typeId = inst->CastToLoadResolvedObjectFieldStatic()->GetTypeId(); in ParseStaticField() 730 typeId = inst->CastToStoreStatic()->GetTypeId(); in ParseStaticField() 734 typeId in ParseStaticField() 747 uint32_t typeId = 0; ParseObjectField() local 949 uint32_t typeId = typedInst->GetTypeId(); VisitLoadStatic() local 965 uint32_t typeId = typedInst->GetTypeId(); VisitLoadResolvedObjectFieldStatic() local 981 uint32_t typeId = typedInst->GetTypeId(); VisitStoreStatic() local 997 uint32_t typeId = typedInst->GetTypeId(); VisitStoreResolvedObjectFieldStatic() local 1013 uint32_t typeId = typedInst->GetTypeId(); VisitUnresolvedStoreStatic() local 1026 uint32_t typeId = inst->CastToLoadRuntimeClass()->GetTypeId(); VisitLoadRuntimeClass() local 1034 uint32_t typeId = inst->CastToLoadClass()->GetTypeId(); VisitLoadClass() local 1041 uint32_t typeId = inst->CastToLoadAndInitClass()->GetTypeId(); VisitLoadAndInitClass() local 1048 uint32_t typeId = inst->CastToUnresolvedLoadAndInitClass()->GetTypeId(); VisitUnresolvedLoadAndInitClass() local 1055 uint32_t typeId = inst->CastToGetGlobalVarAddress()->GetTypeId(); VisitGetGlobalVarAddress() local 1062 uint32_t typeId = inst->CastToLoadString()->GetTypeId(); VisitLoadString() local 1069 uint32_t typeId = inst->CastToLoadConstArray()->GetTypeId(); VisitLoadConstArray() local 1076 uint32_t typeId = inst->CastToLoadType()->GetTypeId(); VisitLoadType() local 1083 uint32_t typeId = inst->CastToUnresolvedLoadType()->GetTypeId(); VisitUnresolvedLoadType() local 1303 uint32_t typeId = typedInst->GetTypeId(); VisitLoadObject() local 1331 uint32_t typeId = typedInst->GetTypeId(); VisitLoadResolvedObjectField() local 1350 uint32_t typeId = typedInst->GetTypeId(); VisitStoreObject() local 1378 uint32_t typeId = typedInst->GetTypeId(); VisitStoreResolvedObjectField() local 1525 uint32_t typeId = inst->CastToLoadFromConstantPool()->GetTypeId(); VisitLoadFromConstantPool() local [all...] |
H A D | object_type_propagation.cpp | 91 auto typeId = runtime->GetFieldValueTypeId(method, fieldId); in VisitLoadObject() local 92 auto klass = runtime->GetClass(method, typeId); in VisitLoadObject() 94 auto isExact = runtime->GetClassType(method, typeId) == ClassType::FINAL_CLASS; in VisitLoadObject() 139 auto typeId = runtime->GetMethodArgReferenceTypeId(method, refNum); in VisitParameter() local 140 klass = runtime->GetClass(method, typeId); in VisitParameter() 156 auto typeId = runtime->GetMethodReturnTypeId(method); in ProcessManagedCall() local 157 auto klass = runtime->GetClass(method, typeId); in ProcessManagedCall() 159 auto isExact = runtime->GetClassType(method, typeId) == ClassType::FINAL_CLASS; in ProcessManagedCall()
|
H A D | alias_analysis.h | 76 static Pointer CreatePoolConstant(uint32_t typeId) in CreatePoolConstant() argument 78 return Pointer(POOL_CONSTANT, nullptr, nullptr, typeId, nullptr); in CreatePoolConstant() 81 static Pointer CreateStaticField(uint32_t typeId, const void *typePtr = nullptr) in CreateStaticField() argument 83 return Pointer(STATIC_FIELD, nullptr, nullptr, typeId, typePtr); in CreateStaticField() 86 static Pointer CreateObjectField(const Inst *base, uint32_t typeId, const void *typePtr = nullptr) in CreateObjectField() argument 88 return Pointer(OBJECT_FIELD, base, nullptr, typeId, typePtr); in CreateObjectField()
|
/arkcompiler/ets_frontend/ets2panda/evaluate/debugInfoDeserialization/ |
H A D | debugInfoDeserializer.cpp | 40 const std::string &typeSignature, panda_file::Type::TypeId typeId, in GetVarDeclSourceCode() 48 << helpers::CreateGetterName(typeId) << '(' << regNumber << ')'; in GetVarDeclSourceCode() 50 if (typeId == panda_file::Type::TypeId::REFERENCE) { in GetVarDeclSourceCode() 57 panda_file::Type::TypeId typeId) in GetVarUpdateSourceCode() 60 sstream << helpers::DEBUGGER_API_CLASS_NAME << '.' << helpers::CreateSetterName(typeId) << '(' << regNumber << ',' in GetVarUpdateSourceCode() 220 auto typeId = helpers::GetTypeId(typeSignature); in CreateLocalVarDecl() local 223 GetVarDeclSourceCode(identName, regNumber, typeSignature, typeId, checker->GetGlobalTypesHolder()); in CreateLocalVarDecl() 243 auto varUpdateSource = GetVarUpdateSourceCode(identName, regNumber, typeId); in CreateLocalVarDecl() 39 GetVarDeclSourceCode(std::string_view varName, DebugInfoDeserializer::RegisterNumber regNumber, const std::string &typeSignature, panda_file::Type::TypeId typeId, checker::GlobalTypesHolder *globalTypes) GetVarDeclSourceCode() argument 56 GetVarUpdateSourceCode(std::string_view varName, DebugInfoDeserializer::RegisterNumber regNumber, panda_file::Type::TypeId typeId) GetVarUpdateSourceCode() argument
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/optimizations/ |
H A D | object_type_check_elimination.cpp | 162 bool ObjectTypeCheckElimination::IsMember(Inst *inst, uint32_t typeId, Inst *refUser) in IsMember() argument 172 success = (userInst->CastToCheckCast()->GetTypeId() == typeId); in IsMember() 175 success = IsSuccessfulIsInstance(userInst->CastToIsInstance(), typeId, refUser); in IsMember() 178 success = IsMember(userInst, typeId, refUser); in IsMember() 191 bool ObjectTypeCheckElimination::IsSuccessfulIsInstance(IsInstanceInst *isInstance, uint32_t typeId, Inst *refUser) in IsSuccessfulIsInstance() argument 194 if (isInstance->GetTypeId() != typeId) { in IsSuccessfulIsInstance()
|
H A D | object_type_check_elimination.h | 82 static bool IsMember(Inst *inst, uint32_t typeId, Inst *refUser); 83 static bool IsSuccessfulIsInstance(IsInstanceInst *isInstance, uint32_t typeId, Inst *refUser);
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir_builder/ |
H A D | inst_builder-inl.h | 831 Inst *InstBuilder::BuildLoadStaticInst(size_t pc, DataType::Type type, uint32_t typeId, Inst *saveState) in BuildLoadStaticInst() argument 834 auto field = GetRuntime()->ResolveField(GetMethod(), typeId, !GetGraph()->IsAotMode(), &classId); in BuildLoadStaticInst() 840 TypeIdMixin {typeId, GetGraph()->GetMethod()}); in BuildLoadStaticInst() 842 GetRuntime()->GetUnresolvedTypes()->AddTableSlot(GetMethod(), typeId, in BuildLoadStaticInst() local 848 TypeIdMixin {typeId, GetGraph()->GetMethod()}); in BuildLoadStaticInst() 856 auto loadField = graph_->CreateInstLoadStatic(type, pc, initClass, TypeIdMixin {typeId, GetGraph()->GetMethod()}, in BuildLoadStaticInst() 892 Inst *InstBuilder::BuildStoreStaticInst(const BytecodeInstruction *bcInst, DataType::Type type, uint32_t typeId, in BuildStoreStaticInst() argument 898 auto field = GetRuntime()->ResolveField(GetMethod(), typeId, !GetGraph()->IsAotMode(), &classId); in BuildStoreStaticInst() 908 TypeIdMixin {typeId, GetGraph()->GetMethod()}, true); in BuildStoreStaticInst() 915 TypeIdMixin {typeId, GetGrap in BuildStoreStaticInst() 921 GetRuntime()->GetUnresolvedTypes()->AddTableSlot(GetMethod(), typeId, BuildStoreStaticInst() local 1034 auto typeId = static_cast<uint32_t>(std::get<T>(litArray.literals[i].value)); BuildUnfoldLoadConstStringArray() local 1053 auto typeId = GetRuntime()->GetLiteralArrayClassIdWithinFile(method, litArray.literals[0].tag); BuildUnfoldLoadConstArray() local 1228 auto typeId = GetRuntime()->ResolveTypeIndex(GetMethod(), typeIndex); BuildNewArray() local 1393 auto typeId = GetRuntime()->GetClassIdForMethod(GetMethod(), methodId); BuildInitObject() local 1446 auto typeId = GetRuntime()->ResolveTypeIndex(GetMethod(), typeIndex); BuildCheckCast() local 1460 auto typeId = GetRuntime()->ResolveTypeIndex(GetMethod(), typeIndex); BuildIsInstance() local 1472 BuildLoadClass(RuntimeInterface::IdType typeId, size_t pc, Inst *saveState) BuildLoadClass() argument 1502 uint32_t typeId; BuildLoadFromPool() local [all...] |
H A D | inst_builder.h | 235 NewObjectInst *CreateNewObjectInst(size_t pc, uint32_t typeId, SaveStateInst *saveState, Inst *initClass) in CreateNewObjectInst() argument 238 TypeIdMixin {typeId, graph_->GetMethod()}); in CreateNewObjectInst() 342 Inst *BuildLoadStaticInst(size_t pc, DataType::Type type, uint32_t typeId, Inst *saveState); 344 Inst *BuildStoreStaticInst(const BytecodeInstruction *bcInst, DataType::Type type, uint32_t typeId, 348 Inst *BuildLoadClass(RuntimeInterface::IdType typeId, size_t pc, Inst *saveState);
|
/arkcompiler/runtime_core/static_core/runtime/include/ |
H A D | class_helper.h | 49 static char GetPrimitiveTypeDescriptorChar(panda_file::Type::TypeId typeId); 51 static const uint8_t *GetPrimitiveTypeDescriptorStr(panda_file::Type::TypeId typeId); 53 static const char *GetPrimitiveTypeStr(panda_file::Type::TypeId typeId);
|
/arkcompiler/runtime_core/static_core/compiler/optimizer/ir/ |
H A D | graph_checker.h | 398 [[maybe_unused]] uint32_t typeId) in CheckObjectTypeDynamic() 409 v, typeId == TypeIdMixin::MEM_DYN_CLASS_ID, in CheckObjectTypeDynamic() 413 v, typeId == TypeIdMixin::MEM_DYN_PROPS_ID, in CheckObjectTypeDynamic() 417 v, typeId == TypeIdMixin::MEM_DYN_PROTO_HOLDER_ID, in CheckObjectTypeDynamic() 422 v, typeId == TypeIdMixin::MEM_DYN_PROTO_CELL_ID, in CheckObjectTypeDynamic() 427 v, typeId == TypeIdMixin::MEM_DYN_CHANGE_FIELD_ID, in CheckObjectTypeDynamic() 431 v, typeId == TypeIdMixin::MEM_DYN_GLOBAL_ID, in CheckObjectTypeDynamic() 435 v, typeId == TypeIdMixin::MEM_DYN_HCLASS_ID, in CheckObjectTypeDynamic() 440 typeId != TypeIdMixin::MEM_DYN_GLOBAL_ID && typeId ! in CheckObjectTypeDynamic() 397 CheckObjectTypeDynamic([[maybe_unused]] GraphVisitor *v, Inst *inst, ObjectType type, [[maybe_unused]] uint32_t typeId) CheckObjectTypeDynamic() argument 446 CheckObjectType([[maybe_unused]] GraphVisitor *v, Inst *inst, ObjectType type, [[maybe_unused]] uint32_t typeId) CheckObjectType() argument [all...] |
H A D | ir_constructor.h | 755 IrConstructor &TypeId(uint32_t typeId) in TypeId() argument 760 inst->CastToCall()->SetCallMethodId(typeId); in TypeId() 763 inst->CastToLoadString()->SetTypeId(typeId); in TypeId() 766 inst->CastToLoadType()->SetTypeId(typeId); in TypeId() 769 inst->CastToUnresolvedLoadType()->SetTypeId(typeId); in TypeId() 772 inst->CastToLoadFromConstantPool()->SetTypeId(typeId); in TypeId() 775 inst->CastToStoreStatic()->SetTypeId(typeId); in TypeId() 778 inst->CastToUnresolvedStoreStatic()->SetTypeId(typeId); in TypeId() 781 inst->CastToResolveObjectField()->SetTypeId(typeId); in TypeId() 784 inst->CastToResolveObjectFieldStatic()->SetTypeId(typeId); in TypeId() [all...] |
/arkcompiler/runtime_core/static_core/runtime/mem/ |
H A D | object_helpers.cpp | 98 panda_file::Type::TypeId typeId = field.GetTypeId(); in DumpPrimitivesField() local 100 switch (typeId) { in DumpPrimitivesField() 167 panda_file::Type::TypeId typeId = field.GetTypeId(); in DumpObjectFields() local 168 if (typeId == panda_file::Type::TypeId::REFERENCE) { in DumpObjectFields() 170 } else if (typeId != panda_file::Type::TypeId::VOID) { in DumpObjectFields() 203 panda_file::Type::TypeId typeId = field.GetTypeId(); in TraverseFields() local 204 if (typeId == panda_file::Type::TypeId::REFERENCE) { in TraverseFields()
|
/arkcompiler/ets_frontend/ets2panda/evaluate/ |
H A D | helpers.cpp | 37 ir::TypeNode *PrimitiveToTypeNode(panda_file::Type::TypeId typeId, checker::ETSChecker *checker) in PrimitiveToTypeNode() argument 40 switch (typeId) { in PrimitiveToTypeNode() 138 auto typeId = panda_file::FieldDataAccessor::GetTypeId(pf, fda.GetFieldId()); in PandaTypeToTypeNode() local 139 std::string_view refSignature = utf::Mutf8AsCString(pf.GetStringData(typeId).data); in PandaTypeToTypeNode() 156 static checker::Type *PrimitiveToCheckerType(panda_file::Type::TypeId typeId, checker::GlobalTypesHolder *globalTypes) in PrimitiveToCheckerType() argument 159 switch (typeId) { in PrimitiveToCheckerType()
|
H A D | helpers.h | 81 switch (typeId) { \ 118 constexpr inline std::string_view CreateGetterName(panda_file::Type::TypeId typeId) in CreateGetterName() argument 123 constexpr inline std::string_view CreateSetterName(panda_file::Type::TypeId typeId) in CreateSetterName() argument
|
/arkcompiler/ets_runtime/ecmascript/ts_types/ |
H A D | global_type_info.h | 30 explicit GlobalTypeID(const JSPandaFile *jsPandaFile, uint32_t typeId) in GlobalTypeID() argument 31 : jsPandaFile_(jsPandaFile), typeId_(typeId), pgoTypeId_() {} in GlobalTypeID()
|
/arkcompiler/runtime_core/static_core/libllvmbackend/transforms/passes/ |
H A D | ark_gvn.cpp | 186 auto typeId = callInst->getOperand(0U); in ParseBuiltin() local 187 if (!llvm::isa<llvm::ConstantInt>(typeId)) { in ParseBuiltin() 190 result.args.push_back(typeId); in ParseBuiltin()
|
/arkcompiler/runtime_core/static_core/plugins/ets/runtime/ |
H A D | ets_stubs.cpp | 30 auto const getValue = [obj](auto typeId) { in GetBoxedNumericValue() 31 using Type = typename decltype(typeId)::type; in GetBoxedNumericValue()
|
/arkcompiler/ets_frontend/ets2panda/checker/types/ |
H A D | type.h | 51 static uint64_t typeId = 0; in Type() local 52 id_ = ++typeId; in Type()
|
/arkcompiler/runtime_core/static_core/assembler/tests/ |
H A D | emitter_test.cpp | 157 panda_file::Type::TypeId typeId; in TEST() member 172 ASSERT_EQ(fda.GetType(), panda_file::Type(fields[i].typeId).GetFieldEncoding()); in TEST() 329 panda_file::File::EntityId typeId; in TEST() 344 EXPECT_EQ(id, catchInfos[i].typeId); in TEST() 541 panda_file::Type::TypeId typeId; in TEST() member 585 panda_file::Type type(fieldData.typeId); in TEST() 595 switch (fieldData.typeId) { in TEST()
|