Home
last modified time | relevance | path

Searched refs:class_def (Results 1 – 25 of 43) sorted by relevance

12

/art/dexlayout/
Ddexlayout.cc638 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 …]
Ddex_visualize.cc259 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()
Ddex_writer.cc462 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/
Ddex_file.h638 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 …]
Dtype_lookup_table.cc81 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()
Ddex_file_verifier.h97 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);
Ddex_file_verifier.cc958 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 …]
Ddex_file_annotations.h117 const DexFile::ClassDef& class_def) in RuntimeEncodedStaticFieldValueIterator() argument
119 : EncodedStaticFieldValueIterator(dex_file, class_def), in RuntimeEncodedStaticFieldValueIterator()
Ddex_file_test.cc407 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()
Ddex_file-inl.h120 inline const char* DexFile::GetClassDescriptor(const ClassDef& class_def) const { in GetClassDescriptor() argument
121 return StringByTypeIdx(class_def.class_idx_); in GetClassDescriptor()
Dvdex_file.cc268 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()
Dart_method.cc133 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()
Doat_file_manager.cc175 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/
Dmethod_verifier_test.cc60 const DexFile::ClassDef& class_def = dex.GetClassDef(i); in VerifyDexFile() local
61 const char* descriptor = dex.GetClassDescriptor(class_def); in VerifyDexFile()
Dmethod_verifier.h104 const DexFile::ClassDef& class_def,
117 const DexFile::ClassDef& class_def,
233 const DexFile::ClassDef& class_def,
280 const DexFile::ClassDef& class_def,
Dmethod_verifier.cc151 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/
Dboot_image_profile.cc78 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/
Dcompiler_driver.cc430 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 …]
Dcompiler_driver_test.cc83 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/
Ddex_to_dex_decompiler_test.cc86 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/
Ddexdump_cfg.cc363 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/
Doatdump.cc241 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/
Dload_store_analysis_test.cc84 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/
Dverifier_deps_test.cc150 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/
Ddex2oat_test.cc915 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()

12