/art/dexlayout/ |
D | dexlayout.cc | 638 dex_ir::ClassDef* class_def = header_->GetCollections().GetClassDef(idx); in DumpClassDef() local 640 fprintf(out_file_, "class_idx : %d\n", class_def->ClassType()->GetIndex()); in DumpClassDef() 642 class_def->GetAccessFlags(), class_def->GetAccessFlags()); in DumpClassDef() 643 uint32_t superclass_idx = class_def->Superclass() == nullptr ? in DumpClassDef() 644 DexFile::kDexNoIndex16 : class_def->Superclass()->GetIndex(); in DumpClassDef() 647 class_def->InterfacesOffset(), class_def->InterfacesOffset()); in DumpClassDef() 649 if (class_def->SourceFile() != nullptr) { in DumpClassDef() 650 source_file_offset = class_def->SourceFile()->GetIndex(); in DumpClassDef() 654 if (class_def->Annotations() != nullptr) { in DumpClassDef() 655 annotations_offset = class_def->Annotations()->GetOffset(); in DumpClassDef() [all …]
|
D | dex_visualize.cc | 259 dex_ir::ClassDef* class_def = header->GetCollections().GetClassDef(class_index); in VisualizeDexLayout() local 260 dex::TypeIndex type_idx(class_def->ClassType()->GetIndex()); in VisualizeDexLayout() 264 dumper->DumpAddressRange(class_def, class_index); in VisualizeDexLayout() 266 dumper->DumpTypeId(class_def->ClassType(), class_index); in VisualizeDexLayout() 268 dumper->DumpTypeId(class_def->Superclass(), class_index); in VisualizeDexLayout() 272 dumper->DumpAddressRange(class_def->InterfacesOffset(), kInterfaceSizeKludge, class_index); in VisualizeDexLayout() 274 dumper->DumpStringId(class_def->SourceFile(), class_index); in VisualizeDexLayout() 276 dumper->DumpAddressRange(class_def->Annotations(), class_index); in VisualizeDexLayout() 279 dex_ir::ClassData* class_data = class_def->GetClassData(); in VisualizeDexLayout()
|
D | dex_writer.cc | 462 for (std::unique_ptr<dex_ir::ClassDef>& class_def : header_->GetCollections().ClassDefs()) { in WriteClasses() 463 class_def_buffer[0] = class_def->ClassType()->GetIndex(); in WriteClasses() 464 class_def_buffer[1] = class_def->GetAccessFlags(); in WriteClasses() 465 class_def_buffer[2] = class_def->Superclass() == nullptr ? DexFile::kDexNoIndex : in WriteClasses() 466 class_def->Superclass()->GetIndex(); in WriteClasses() 467 class_def_buffer[3] = class_def->InterfacesOffset(); in WriteClasses() 468 class_def_buffer[4] = class_def->SourceFile() == nullptr ? DexFile::kDexNoIndex : in WriteClasses() 469 class_def->SourceFile()->GetIndex(); in WriteClasses() 470 class_def_buffer[5] = class_def->Annotations() == nullptr ? 0 : in WriteClasses() 471 class_def->Annotations()->GetOffset(); in WriteClasses() [all …]
|
/art/runtime/ |
D | dex_file.h | 638 uint32_t FindCodeItemOffset(const DexFile::ClassDef& class_def, 714 uint16_t GetIndexForClassDef(const ClassDef& class_def) const { in GetIndexForClassDef() argument 715 CHECK_GE(&class_def, class_defs_) << GetLocation(); in GetIndexForClassDef() 716 CHECK_LT(&class_def, class_defs_ + header_->class_defs_size_) << GetLocation(); in GetIndexForClassDef() 717 return &class_def - class_defs_; in GetIndexForClassDef() 721 const char* GetClassDescriptor(const ClassDef& class_def) const; 726 const TypeList* GetInterfacesList(const ClassDef& class_def) const { in GetInterfacesList() argument 727 if (class_def.interfaces_off_ == 0) { in GetInterfacesList() 730 const uint8_t* addr = begin_ + class_def.interfaces_off_; in GetInterfacesList() 754 const uint8_t* GetClassData(const ClassDef& class_def) const { in GetClassData() argument [all …]
|
D | type_lookup_table.cc | 81 const DexFile::ClassDef& class_def = dex_file.GetClassDef(i); in TypeLookupTable() local 82 const DexFile::TypeId& type_id = dex_file.GetTypeId(class_def.class_idx_); in TypeLookupTable() 95 const DexFile::ClassDef& class_def = dex_file.GetClassDef(class_def_idx); in TypeLookupTable() local 96 const DexFile::TypeId& type_id = dex_file.GetTypeId(class_def.class_idx_); in TypeLookupTable()
|
D | dex_file_verifier.h | 97 const DexFile::ClassDef** class_def); 98 bool CheckStaticFieldTypes(const DexFile::ClassDef* class_def); 112 const DexFile::ClassDef** class_def); 120 const DexFile::ClassDef** class_def);
|
D | dex_file_verifier.cc | 958 const DexFile::ClassDef* class_def = class_def_begin + i; in FindClassIndexAndDef() local 959 if (class_def->class_idx_ == *class_type_index) { in FindClassIndexAndDef() 960 *output_class_def = class_def; in FindClassIndexAndDef() 975 const DexFile::ClassDef** class_def) { in CheckOrderAndGetClassDef() argument 985 *have_class = FindClassIndexAndDef(curr_index, is_field, class_type_index, class_def); in CheckOrderAndGetClassDef() 997 bool DexFileVerifier::CheckStaticFieldTypes(const DexFile::ClassDef* class_def) { in CheckStaticFieldTypes() argument 998 if (class_def == nullptr) { in CheckStaticFieldTypes() 1003 EncodedStaticFieldValueIterator array_it(*dex_file_, *class_def); in CheckStaticFieldTypes() 1096 const DexFile::ClassDef** class_def) { in CheckIntraClassDataItemFields() argument 1108 class_def)) { in CheckIntraClassDataItemFields() [all …]
|
D | dex_file_annotations.h | 117 const DexFile::ClassDef& class_def) in RuntimeEncodedStaticFieldValueIterator() argument 119 : EncodedStaticFieldValueIterator(dex_file, class_def), in RuntimeEncodedStaticFieldValueIterator()
|
D | dex_file_test.cc | 407 const DexFile::ClassDef& class_def = raw->GetClassDef(0); in TEST_F() local 408 ASSERT_STREQ("LGetMethodSignature;", raw->GetClassDescriptor(class_def)); in TEST_F() 410 const uint8_t* class_data = raw->GetClassData(class_def); in TEST_F() 622 const DexFile::ClassDef& class_def = raw->GetClassDef(0); in TEST_F() local 623 const DexFile::CodeItem* code_item = raw->GetCodeItem(raw->FindCodeItemOffset(class_def, 1)); in TEST_F()
|
D | dex_file-inl.h | 120 inline const char* DexFile::GetClassDescriptor(const ClassDef& class_def) const { in GetClassDescriptor() argument 121 return StringByTypeIdx(class_def.class_idx_); in GetClassDescriptor()
|
D | vdex_file.cc | 268 const DexFile::ClassDef& class_def = target_dex_file.GetClassDef(i); in FullyUnquickenDexFile() local 269 const uint8_t* class_data = target_dex_file.GetClassData(class_def); in FullyUnquickenDexFile()
|
D | art_method.cc | 133 const DexFile::ClassDef* class_def = dex_file->FindClassDef(declaring_class_type); in FindObsoleteDexClassDefIndex() local 134 CHECK(class_def != nullptr); in FindObsoleteDexClassDefIndex() 135 return dex_file->GetIndexForClassDef(*class_def); in FindObsoleteDexClassDefIndex() 448 const DexFile::ClassDef& class_def = dex_file.GetClassDef(class_def_idx); in GetOatMethodIndexFromMethodIndex() local 449 const uint8_t* class_data = dex_file.GetClassData(class_def); in GetOatMethodIndexFromMethodIndex()
|
D | oat_file_manager.cc | 175 const DexFile::ClassDef& class_def = dex_file->GetClassDef(i); in GenerateTypeIndexes() local 176 uint16_t type_idx = class_def.class_idx_.index_; in GenerateTypeIndexes()
|
/art/runtime/verifier/ |
D | method_verifier_test.cc | 60 const DexFile::ClassDef& class_def = dex.GetClassDef(i); in VerifyDexFile() local 61 const char* descriptor = dex.GetClassDescriptor(class_def); in VerifyDexFile()
|
D | method_verifier.h | 104 const DexFile::ClassDef& class_def, 117 const DexFile::ClassDef& class_def, 233 const DexFile::ClassDef& class_def, 280 const DexFile::ClassDef& class_def,
|
D | method_verifier.cc | 151 const DexFile::ClassDef* class_def = klass->GetClassDef(); in VerifyClass() local 160 } else if (class_def == nullptr) { in VerifyClass() 179 *class_def, in VerifyClass() 207 const DexFile::ClassDef& class_def, in VerifyMethods() argument 231 InvokeType type = it->GetMethodInvokeType(class_def); in VerifyMethods() 248 class_def, in VerifyMethods() 264 *error_string += PrettyDescriptor(dex_file->GetClassDescriptor(class_def)); in VerifyMethods() 281 const DexFile::ClassDef& class_def, in VerifyClass() argument 289 if ((class_def.access_flags_ & (kAccAbstract | kAccFinal)) == (kAccAbstract | kAccFinal)) { in VerifyClass() 291 *error += PrettyDescriptor(dex_file->GetClassDescriptor(class_def)); in VerifyClass() [all …]
|
/art/profman/ |
D | boot_image_profile.cc | 78 const DexFile::ClassDef& class_def = dex_file->GetClassDef(i); in GenerateBootImageProfile() local 79 TypeReference ref(dex_file.get(), class_def.class_idx_); in GenerateBootImageProfile() 81 const uint8_t* class_data = dex_file->GetClassData(class_def); in GenerateBootImageProfile()
|
/art/compiler/driver/ |
D | compiler_driver.cc | 430 const DexFile& dex_file, const DexFile::ClassDef& class_def) in GetDexToDexCompilationLevel() argument 434 const char* descriptor = dex_file.GetClassDescriptor(class_def); in GetDexToDexCompilationLevel() 468 const DexFile::ClassDef& class_def) { in GetDexToDexCompilationLevel() argument 473 return GetDexToDexCompilationLevel(self, driver, class_loader, dex_file, class_def); in GetDexToDexCompilationLevel() 803 const DexFile::ClassDef& class_def = dex_file->GetClassDef(class_def_index); in ResolveConstStrings() local 805 const uint8_t* class_data = dex_file->GetClassData(class_def); in ResolveConstStrings() 815 dex_file->StringByTypeIdx(class_def.class_idx_)); in ResolveConstStrings() 871 const DexFile::ClassDef& class_def = dex_file->GetClassDef(i); in EnsureVerifiedOrVerifyAtRuntime() local 872 const char* descriptor = dex_file->GetClassDescriptor(class_def); in EnsureVerifiedOrVerifyAtRuntime() 1653 const DexFile::ClassDef& class_def = dex_file.GetClassDef(class_def_idx); in RequiresConstructorBarrier() local [all …]
|
D | compiler_driver_test.cc | 83 const DexFile::ClassDef& class_def = dex_file.GetClassDef(i); in MakeDexFileExecutable() local 84 const char* descriptor = dex_file.GetClassDescriptor(class_def); in MakeDexFileExecutable()
|
/art/compiler/dex/ |
D | dex_to_dex_decompiler_test.cc | 86 const DexFile::ClassDef& class_def = updated_dex_file->GetClassDef(i); in RunTest() local 87 const uint8_t* class_data = updated_dex_file->GetClassData(class_def); in RunTest()
|
/art/dexdump/ |
D | dexdump_cfg.cc | 363 const DexFile::ClassDef* class_def = dex_file->FindClassDef(method_id.class_idx_); in DumpMethodCFG() local 364 if (class_def == nullptr) { in DumpMethodCFG() 369 const uint8_t* class_data = dex_file->GetClassData(*class_def); in DumpMethodCFG()
|
/art/oatdump/ |
D | oatdump.cc | 241 const DexFile::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in WalkOatClass() local 242 const uint8_t* class_data = dex_file.GetClassData(class_def); in WalkOatClass() 592 const DexFile::ClassDef* class_def = in GetQuickOatCode() local 594 if (class_def != nullptr) { in GetQuickOatCode() 595 uint16_t class_def_index = dex_file->GetIndexForClassDef(*class_def); in GetQuickOatCode() 774 const DexFile::ClassDef& class_def = dex_file->GetClassDef(class_def_index); in AddAllOffsets() local 776 const uint8_t* class_data = dex_file->GetClassData(class_def); in AddAllOffsets() 824 const DexFile::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in DexFileData() local 825 WalkClass(dex_file, class_def); in DexFileData() 860 void WalkClass(const DexFile& dex_file, const DexFile::ClassDef& class_def) { in WalkClass() argument [all …]
|
/art/compiler/optimizing/ |
D | load_store_analysis_test.cc | 84 size_t class_def = HeapLocation::kDeclaringClassDefIndexForArrays; in TEST_F() local 85 size_t loc1 = heap_location_collector.FindHeapLocationIndex(ref, field_off, c1, class_def); in TEST_F() 86 size_t loc2 = heap_location_collector.FindHeapLocationIndex(ref, field_off, c2, class_def); in TEST_F() 87 size_t loc3 = heap_location_collector.FindHeapLocationIndex(ref, field_off, index, class_def); in TEST_F()
|
/art/compiler/ |
D | verifier_deps_test.cc | 150 const DexFile::ClassDef* class_def = klass_Main_->GetClassDef(); in VerifyMethod() local 151 const uint8_t* class_data = primary_dex_file_->GetClassData(*class_def); in VerifyMethod() 166 it.GetMethodInvokeType(*class_def)); in VerifyMethod() 181 *class_def, in VerifyMethod() 234 const DexFile::ClassDef& class_def = dex_file->GetClassDef(i); in VerifyClassStatus() local 235 const char* descriptor = dex_file->GetClassDescriptor(class_def); in VerifyClassStatus() 240 } else if (unverified_classes.find(class_def.class_idx_) == unverified_classes.end()) { in VerifyClassStatus()
|
/art/dex2oat/ |
D | dex2oat_test.cc | 915 const DexFile::ClassDef& class_def = dex_file->GetClassDef(i); in CheckResult() local 916 const uint8_t* class_data = dex_file->GetClassData(class_def); in CheckResult() 1220 const DexFile::ClassDef* class_def = dex->FindClassDef(type_idx); in TEST_F() local 1221 ClassDataItemIterator it(*dex, dex->GetClassData(*class_def)); in TEST_F() 1324 const DexFile::ClassDef* class_def = dex_file->FindClassDef(type_idx); in TEST_F() local 1325 ASSERT_TRUE(class_def != nullptr); in TEST_F() 1334 ClassDataItemIterator it(*dex_file, dex_file->GetClassData(*class_def)); in TEST_F()
|