/arkcompiler/runtime_core/assembler/tests/ |
D | emitter_test.cpp | 76 auto class_id = pf->GetClassId(GetTypeDescriptor("_GLOBAL", &descriptor)); in TEST() local 77 ASSERT_TRUE(class_id.IsValid()); in TEST() 78 ASSERT_FALSE(pf->IsExternal(class_id)); in TEST() 80 panda_file::ClassDataAccessor cda(*pf, class_id); in TEST() 97 ASSERT_EQ(mda.GetClassId(), class_id); in TEST() 131 auto class_id = pf->GetClassId(GetTypeDescriptor("R", &descriptor)); in TEST() local 132 ASSERT_TRUE(class_id.IsValid()); in TEST() 133 ASSERT_FALSE(pf->IsExternal(class_id)); in TEST() 135 panda_file::ClassDataAccessor cda(*pf, class_id); in TEST() 164 ASSERT_EQ(fda.GetClassId(), class_id); in TEST() [all …]
|
D | assembler_emitter_test.cpp | 77 auto class_id = pf->GetClassId(GetTypeDescriptor("R", &descriptor)); variable 78 EXPECT_TRUE(class_id.IsValid()); 80 panda_file::ClassDataAccessor cda(*pf, class_id); 118 auto class_id = pf->GetClassId(GetTypeDescriptor("_GLOBAL", &descriptor)); variable 119 EXPECT_TRUE(class_id.IsValid()); 120 EXPECT_FALSE(pf->IsExternal(class_id)); 122 panda_file::ClassDataAccessor cda(*pf, class_id); 137 EXPECT_EQ(mda.GetClassId(), class_id); in __anon9d5bb8020402() 167 auto class_id = pf->GetClassId(GetTypeDescriptor("R", &descriptor)); variable 168 EXPECT_TRUE(class_id.IsValid()); [all …]
|
/arkcompiler/runtime_core/libpandafile/ |
D | file_reader.h | 80 ClassItem *CreateClassItem(File::EntityId class_id); 81 ForeignClassItem *CreateForeignClassItem(File::EntityId class_id); 163 inline BaseClassItem *CreateGenericClassItem(File::EntityId class_id) in CreateGenericClassItem() argument 165 if (file_->IsExternal(class_id)) { in CreateGenericClassItem() 166 return CreateForeignClassItem(class_id); in CreateGenericClassItem() 168 return CreateClassItem(class_id); in CreateGenericClassItem()
|
D | class_data_accessor.cpp | 23 ClassDataAccessor::ClassDataAccessor(const File &panda_file, File::EntityId class_id) in ClassDataAccessor() argument 24 …: panda_file_(panda_file), class_id_(class_id), name_(), num_fields_(0), num_methods_(0), num_ifac… in ClassDataAccessor() 26 ASSERT(!panda_file.IsExternal(class_id)); in ClassDataAccessor()
|
D | file_reader.cpp | 166 File::EntityId class_id(method_acc.GetClassId()); in CreateLiteralArrayItem() local 167 auto *class_item = CreateClassItem(class_id); in CreateLiteralArrayItem() 260 const File::EntityId class_id {scalar.Get<uint32_t>()}; in CreateAnnotationItem() local 261 … elem_value_item = container_.GetOrCreateIdValueItem(CreateGenericClassItem(class_id)); in CreateAnnotationItem() 432 const File::EntityId class_id {array.Get<uint32_t>(j)}; in CreateAnnotationItem() local 434 if (file_->IsExternal(class_id)) { in CreateAnnotationItem() 435 cls_item = CreateForeignClassItem(class_id); in CreateAnnotationItem() 437 cls_item = CreateClassItem(class_id); in CreateAnnotationItem() 883 ForeignClassItem *FileReader::CreateForeignClassItem(File::EntityId class_id) in CreateForeignClassItem() argument 885 auto it = items_done_.find(class_id); in CreateForeignClassItem() [all …]
|
D | method_data_accessor-inl.h | 310 panda_file::File::EntityId class_id; in EnumerateTypesInProto() local 313 class_id = pda.GetReferenceType(ref_idx++); in EnumerateTypesInProto() 316 cb(type, class_id); in EnumerateTypesInProto()
|
D | class_data_accessor.h | 29 ClassDataAccessor(const File &panda_file, File::EntityId class_id);
|
/arkcompiler/runtime_core/bytecode_optimizer/tests/ |
D | runtime_adapter_test.cpp | 59 auto class_id = cda.GetClassId().GetOffset(); in GetPointers() local 60 auto class_ptr = reinterpret_cast<compiler::RuntimeInterface::ClassPtr>(class_id); in GetPointers() 144 auto class_id = reinterpret_cast<uint64_t>(klass); in TEST() local 146 EXPECT_FALSE(adapter.IsConstructor(main, class_id)); in TEST() 149 EXPECT_EQ(adapter.IsArrayClass(ctor, class_id), false); in TEST()
|
D | common.h | 70 … bool IsConstructor([[maybe_unused]] MethodPtr method, [[maybe_unused]] uint32_t class_id) override in IsConstructor()
|
/arkcompiler/runtime_core/disassembler/ |
D | disassembler.h | 112 std::string GetFullRecordName(const panda_file::File::EntityId &class_id) const; 157 panda::panda_file::SourceLang GetRecordLanguage(panda_file::File::EntityId class_id) const;
|
D | disassembler.cpp | 369 uint32_t class_id = class_idx[i]; in GetRecords() local 372 if (class_id > file_->GetHeader()->file_size) { in GetRecords() 374 … << class_off << "). binary file corrupted. record offset (0x" << class_id in GetRecords() 379 const panda_file::File::EntityId record_id {class_id}; in GetRecords() 497 const auto class_id = file_->ResolveClassIndex(method_id, class_idx); in GetExceptions() local 498 catch_block_pa.exception_record = GetFullRecordName(class_id); in GetExceptions() 954 std::string Disassembler::GetFullRecordName(const panda_file::File::EntityId &class_id) const in GetFullRecordName() 956 std::string name = StringDataToString(file_->GetStringData(class_id)); in GetFullRecordName() 1572 panda::panda_file::SourceLang Disassembler::GetRecordLanguage(panda_file::File::EntityId class_id) … in GetRecordLanguage() 1574 if (file_->IsExternal(class_id)) { in GetRecordLanguage() [all …]
|
/arkcompiler/runtime_core/libark_defect_scan_aux/ |
D | abc_file.cpp | 353 EntityId class_id(id); in ExtractModuleInfo() local 354 if (panda_file_->IsExternal(class_id)) { in ExtractModuleInfo() 357 panda_file::ClassDataAccessor cda(*panda_file_, class_id); in ExtractModuleInfo() 456 EntityId class_id {id}; in InitializeAllDefinedFunction() local 457 if (panda_file_->IsExternal(class_id)) { in InitializeAllDefinedFunction() 461 panda_file::ClassDataAccessor cda {*panda_file_, class_id}; in InitializeAllDefinedFunction()
|
/arkcompiler/runtime_core/libpandafile/tests/ |
D | file_item_container_test.cpp | 313 auto class_id = panda_file->GetClassId(class_name.data()); variable 314 EXPECT_EQ(class_id.GetOffset(), class_item->GetOffset()); 316 ClassDataAccessor class_data_accessor(*panda_file, class_id);
|