| /arkcompiler/runtime_core/runtime/ |
| D | class_helper.cpp | 45 char ClassHelper::GetPrimitiveTypeDescriptorChar(panda_file::Type::TypeId type_id) in GetPrimitiveTypeDescriptorChar() argument 48 return static_cast<char>(*GetPrimitiveTypeDescriptorStr(type_id)); in GetPrimitiveTypeDescriptorChar() 52 const uint8_t *ClassHelper::GetPrimitiveTypeDescriptorStr(panda_file::Type::TypeId type_id) in GetPrimitiveTypeDescriptorStr() argument 54 if (type_id == panda_file::Type::TypeId::REFERENCE) { in GetPrimitiveTypeDescriptorStr() 59 return utf::CStringAsMutf8(panda_file::Type::GetSignatureByTypeId(panda_file::Type(type_id))); in GetPrimitiveTypeDescriptorStr() 63 const char *ClassHelper::GetPrimitiveTypeStr(panda_file::Type::TypeId type_id) in GetPrimitiveTypeStr() argument 65 switch (type_id) { in GetPrimitiveTypeStr()
|
| /arkcompiler/runtime_core/compiler/optimizer/ir_builder/ |
| D | inst_builder-inl.h | 39 uint32_t type_id; in BuildLoadFromPool() local 46 type_id = GetRuntime()->ResolveTypeIndex(method, type_index); in BuildLoadFromPool() 47 if (GetRuntime()->ResolveType(method, type_id) == nullptr) { in BuildLoadFromPool() 50 GetRuntime()->GetUnresolvedTypes()->AddTableSlot(method, type_id, in BuildLoadFromPool() 60 …type_id = GetRuntime()->ResolveOffsetByIndex(GetGraph()->GetMethod(), bc_inst->GetId(0).AsIndex()); in BuildLoadFromPool() 63 inst->SetTypeId(type_id); in BuildLoadFromPool()
|
| /arkcompiler/runtime_core/compiler/optimizer/ir/ |
| D | ir_constructor.h | 652 IrConstructor &TypeId(uint32_t type_id) in TypeId() argument 657 inst->CastToCall()->SetCallMethodId(type_id); in TypeId() 660 inst->CastToLoadString()->SetTypeId(type_id); in TypeId() 663 inst->CastToLoadType()->SetTypeId(type_id); in TypeId() 666 inst->CastToUnresolvedLoadType()->SetTypeId(type_id); in TypeId() 669 inst->CastToStoreStatic()->SetTypeId(type_id); in TypeId() 672 inst->CastToUnresolvedStoreStatic()->SetTypeId(type_id); in TypeId() 675 inst->CastToLoadStatic()->SetTypeId(type_id); in TypeId() 678 inst->CastToUnresolvedLoadStatic()->SetTypeId(type_id); in TypeId() 681 inst->CastToLoadObject()->SetTypeId(type_id); in TypeId() [all …]
|
| D | instructions.yaml | 257 - type_id: TypeId 265 - type_id: TypeId 273 - type_id: TypeId 434 - type_id: TypeId 444 - type_id: TypeId 452 - type_id: TypeId 460 - type_id: TypeId 468 - type_id: TypeId 477 - type_id: TypeId
|
| /arkcompiler/runtime_core/runtime/include/ |
| D | class_helper.h | 49 static char GetPrimitiveTypeDescriptorChar(panda_file::Type::TypeId type_id); 51 static const uint8_t *GetPrimitiveTypeDescriptorStr(panda_file::Type::TypeId type_id); 53 static const char *GetPrimitiveTypeStr(panda_file::Type::TypeId type_id);
|
| /arkcompiler/runtime_core/assembler/templates/ |
| D | isa.h.erb | 22 % pretty_format.gsub!('ID', 'TYPE') if insn.properties.include?('type_id') 34 % flags << "InstFlags::TYPE_ID" if insn.properties.include? 'type_id'
|
| D | operand_types_print.h.erb | 32 % if properties.include?('type_id')
|
| /arkcompiler/runtime_core/tests/cts-generator/cts-template/ |
| D | newarr.yaml | 73 - sig: newarr v1:out:ref, v2:in:i32, type_id 129 - sig: newarr v1:out:ref, v2:in:i32, type_id 156 - sig: newarr v1:out:ref, v2:in:i32, type_id 183 - sig: newarr v1:out:ref, v2:in:i32, type_id 209 - sig: newarr v1:out:ref, v2:in:i32, type_id 235 - sig: newarr v1:out:ref, v2:in:i32, type_id 256 - sig: newarr v1:out:ref, v2:in:i32, type_id 277 - sig: newarr v1:out:ref, v2:in:i32, type_id 337 - sig: newarr v1:out:ref, v2:in:i32, type_id 407 - sig: newarr v1:out:ref, v2:in:i32, type_id [all …]
|
| D | newobj.yaml | 36 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their 41 - sig: newobj v:out:ref, type_id 50 - sig: newobj v:out:ref, type_id 199 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their 240 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their 283 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their 344 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their 412 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their 759 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their 1133 … Resolve class type from type_id, allocate memory for an object, initialize its fields with their [all …]
|
| /arkcompiler/runtime_core/libpandafile/ |
| D | file_reader.cpp | 733 File::EntityId type_id(field_acc.GetType()); in CreateFieldItem() local 734 if (file_->IsExternal(type_id)) { in CreateFieldItem() 735 field_type_item = CreateForeignClassItem(type_id); in CreateFieldItem() 737 field_type_item = CreateClassItem(type_id); in CreateFieldItem() 860 File::EntityId type_id(field_acc.GetType()); in CreateForeignFieldItem() local 861 if (file_->IsExternal(type_id)) { in CreateForeignFieldItem() 862 field_type_item = CreateForeignClassItem(type_id); in CreateForeignFieldItem() 864 field_type_item = CreateClassItem(type_id); in CreateForeignFieldItem() 1081 auto type_id = File::EntityId(state.ReadULeb128()); in UpdateDebugInfoDependecies() local 1082 std::string type_name = utf::Mutf8AsCString(file_->GetStringData(type_id).data); in UpdateDebugInfoDependecies() [all …]
|
| D | debug_info_extractor.cpp | 92 bool HandleStartLocal(int32_t reg_number, uint32_t name_id, uint32_t type_id) in HandleStartLocal() argument 95 const char *type = GetStringFromConstantPool(state_->GetPandaFile(), type_id); in HandleStartLocal() 100 …bool HandleStartLocalExtended(int32_t reg_number, uint32_t name_id, uint32_t type_id, uint32_t typ… in HandleStartLocalExtended() argument 103 const char *type = GetStringFromConstantPool(state_->GetPandaFile(), type_id); in HandleStartLocalExtended()
|
| D | debug_helpers.h | 92 [[maybe_unused]] uint32_t type_id) const in HandleStartLocal() argument 98 … [[maybe_unused]] uint32_t type_id, [[maybe_unused]] uint32_t type_signature_id) const in HandleStartLocalExtended() argument
|
| /arkcompiler/runtime_core/runtime/mem/ |
| D | object_helpers.cpp | 90 panda_file::Type::TypeId type_id = field.GetTypeId(); in DumpObject() local 91 if (type_id == panda_file::Type::TypeId::REFERENCE) { in DumpObject() 98 } else if (type_id != panda_file::Type::TypeId::VOID) { in DumpObject() 100 switch (type_id) { in DumpObject() 173 panda_file::Type::TypeId type_id = field.GetTypeId(); in TraverseFields() local 174 if (type_id == panda_file::Type::TypeId::REFERENCE) { in TraverseFields()
|
| /arkcompiler/runtime_core/runtime/tests/ |
| D | interpreter_test.cpp | 439 emitter.LdaType(RuntimeInterface::TYPE_ID.AsIndex()); in TEST_F() 852 template <panda_file::Type::TypeId type_id> 854 using type = std::conditional_t<type_id == panda_file::Type::TypeId::U1, uint8_t, 855 std::conditional_t<type_id == panda_file::Type::TypeId::I8, int8_t, 856 std::conditional_t<type_id == panda_file::Type::TypeId::U8, uint8_t, 857 std::conditional_t<type_id == panda_file::Type::TypeId::I16, int16_t, 858 std::conditional_t<type_id == panda_file::Type::TypeId::U16, uint16_t, 859 std::conditional_t<type_id == panda_file::Type::TypeId::I32, int32_t, 860 std::conditional_t<type_id == panda_file::Type::TypeId::U32, uint32_t, 861 std::conditional_t<type_id == panda_file::Type::TypeId::I64, int64_t, [all …]
|
| /arkcompiler/runtime_core/runtime/entrypoints/ |
| D | entrypoints.cpp | 228 extern "C" coretypes::Array *ResolveLiteralArrayEntrypoint(const Method *caller, uint32_t type_id) in ResolveLiteralArrayEntrypoint() argument 232 …Runtime::GetCurrent()->ResolveLiteralArray(ManagedThread::GetCurrent()->GetVM(), *caller, type_id); in ResolveLiteralArrayEntrypoint() 263 …ctHeader *CreateObjectByIdEntrypoint(ManagedThread *thread, const Method *caller, uint32_t type_id) in CreateObjectByIdEntrypoint() argument 266 size_t resolved_id = GetClassIdEntrypoint(caller, type_id); in CreateObjectByIdEntrypoint() 366 extern "C" void CheckCastByBCIDEntrypoint(const Method *caller, ObjectHeader *obj, uint32_t type_id) in CheckCastByBCIDEntrypoint() argument 371 size_t resolved_id = GetClassIdEntrypoint(caller, type_id); in CheckCastByBCIDEntrypoint() 406 …n "C" uint8_t IsInstanceByBCIDEntrypoint(const Method *caller, ObjectHeader *obj, uint32_t type_id) in IsInstanceByBCIDEntrypoint() argument 411 size_t resolved_id = GetClassIdEntrypoint(caller, type_id); in IsInstanceByBCIDEntrypoint() 423 extern "C" void *ResolveClassObjectEntrypoint(const Method *caller, FileEntityId type_id) in ResolveClassObjectEntrypoint() argument 426 auto klass = reinterpret_cast<Class *>(ResolveClassEntrypoint(caller, type_id)); in ResolveClassObjectEntrypoint() [all …]
|
| /arkcompiler/runtime_core/verification/gen/templates/ |
| D | job_fill_gen.h.erb | 63 % if i.properties.any? { |prop| ['method_id', 'field_id', 'type_id', 'literalarray_id'].include?(… 67 % if (['method_id', 'field_id', 'type_id', 'string_id', 'literalarray_id'] & i.properties).size >… 152 % if i.properties.include?('type_id')
|
| /arkcompiler/runtime_core/compiler/optimizer/code_generator/ |
| D | slow_path.h | 239 void SetUnresolvedType(void *method, uint32_t type_id) in SetUnresolvedType() argument 242 type_id_ = type_id; in SetUnresolvedType()
|
| D | codegen.cpp | 3432 auto type_id = load_obj->GetTypeId(); in VisitUnresolvedLoadObject() local 3437 …egen()->CallRuntimeWithMethod(inst, method, EntrypointId::GET_FIELD_OFFSET, tmp_reg, Imm(type_id)); in VisitUnresolvedLoadObject() 3443 …ield_offset_addr = graph->GetRuntime()->GetUnresolvedTypes()->GetTableSlot(method, type_id, skind); in VisitUnresolvedLoadObject() 3446 slow_path->SetUnresolvedType(method, type_id); in VisitUnresolvedLoadObject() 3552 auto type_id = store_obj->GetTypeId(); in VisitUnresolvedStoreObject() local 3558 tmp_reg, Imm(type_id)); in VisitUnresolvedStoreObject() 3561 …ield_offset_addr = graph->GetRuntime()->GetUnresolvedTypes()->GetTableSlot(method, type_id, skind); in VisitUnresolvedStoreObject() 3566 slow_path->SetUnresolvedType(method, type_id); in VisitUnresolvedStoreObject() 3667 auto type_id = load_class->GetTypeId(); in VisitLoadClass() local 3672 if (method_class_id == type_id) { in VisitLoadClass() [all …]
|
| /arkcompiler/runtime_core/verification/jobs/ |
| D | cache.cpp | 49 if (cachedClass.type_id == panda_file::Type::TypeId::REFERENCE) { in GetName() 52 return {ClassHelper::GetPrimitiveTypeStr(cachedClass.type_id)}; in GetName() 189 … panda_file::Type::TypeId type_id, uint32_t flags) in MakeSyntheticClass() argument 196 data.class_cache.try_emplace(id, id, descriptor, src_lang, type_id, GetClassFlags(flags), in MakeSyntheticClass() 289 for (panda_file::Type::TypeId type_id : v_api.primitive_roots_for_verification) { in InitializeRootClasses() local 290 … auto &C = MakeSyntheticClass(lang, ClassHelper::GetPrimitiveTypeDescriptorStr(type_id), type_id, in InitializeRootClasses() 293 data.primitive_classes[type_id] = C; in InitializeRootClasses() 520 auto type_id = type.GetId(); in InitializeSignature() local 521 if (type_id == panda_file::Type::TypeId::REFERENCE) { in InitializeSignature() 525 cachedMethod->signature.push_back(data->GetPrimitiveClass(type_id)); in InitializeSignature()
|
| D | cache.h | 194 panda_file::Type::TypeId type_id; member 211 type_id {type_id_}, 430 CachedClass &GetPrimitiveClass(panda_file::Type::TypeId type_id) in GetPrimitiveClass() 432 return primitive_classes[type_id].Get(); in GetPrimitiveClass() 502 panda_file::Type::TypeId type_id, uint32_t flags);
|
| /arkcompiler/runtime_core/compiler/optimizer/optimizations/ |
| D | try_catch_resolving.cpp | 97 …rateCatchHandlers([this, object_id, &resolved_handler](BasicBlock *catch_handler, size_t type_id) { in TryFindResolvedCatchHandler() argument 106 if (type_id == CATCH_ALL_ID) { in TryFindResolvedCatchHandler() 112 auto *handler_cls = runtime->ResolveType(GetGraph()->GetMethod(), type_id); in TryFindResolvedCatchHandler()
|
| /arkcompiler/runtime_core/compiler/optimizer/analysis/ |
| D | alias_analysis.h | 70 …static Pointer CreateObjectField(const Inst *base, uint32_t type_id, const void *type_ptr = nullpt… 72 return Pointer(OBJECT_FIELD, base, nullptr, type_id, type_ptr);
|
| /arkcompiler/runtime_core/assembler/tests/ |
| D | emitter_test.cpp | 154 panda_file::Type::TypeId type_id; in TEST() member 169 ASSERT_EQ(fda.GetType(), panda_file::Type(fields[i].type_id).GetFieldEncoding()); in TEST() 326 panda_file::File::EntityId type_id; in TEST() member 339 EXPECT_EQ(id, catch_infos[i].type_id); in TEST() 534 panda_file::Type::TypeId type_id; in TEST() member 576 panda_file::Type type(field_data.type_id); in TEST() 586 switch (field_data.type_id) { in TEST()
|
| /arkcompiler/runtime_core/assembler/ |
| D | assembly-ins.h | 54 TYPE_ID = (1U << 10U), enumerator 134 HasFlag(InstFlags::TYPE_ID) || HasFlag(InstFlags::STRING_ID); in CanThrow()
|
| /arkcompiler/runtime_core/bytecode_optimizer/ |
| D | codegen.cpp | 38 void BytecodeGen::AppendCatchBlock(uint32_t type_id, const compiler::BasicBlock *try_begin, in AppendCatchBlock() argument 43 if (type_id != 0) { in AppendCatchBlock() 44 cb.exception_record = ir_interface_->GetTypeIdByOffset(type_id); in AppendCatchBlock() 61 bb->EnumerateCatchHandlers([&, bb, try_end](BasicBlock *catch_handler, size_t type_id) { in VisitTryBegin() argument 62 AppendCatchBlock(type_id, bb, try_end, catch_handler); in VisitTryBegin()
|