/art/runtime/verifier/ |
D | class_verifier.cc | 90 const dex::ClassDef& class_def, in VerifyClass() argument 96 if ((class_def.access_flags_ & (kAccAbstract | kAccFinal)) == (kAccAbstract | kAccFinal)) { in VerifyClass() 98 *error += PrettyDescriptor(dex_file->GetClassDescriptor(class_def)); in VerifyClass() 106 ClassAccessor accessor(*dex_file, class_def); in VerifyClass() 134 class_def, in VerifyClass() 148 *error += PrettyDescriptor(dex_file->GetClassDescriptor(class_def)); in VerifyClass() 176 << ", class: " << PrettyDescriptor(dex_file->GetClassDescriptor(class_def)); in VerifyClass() 184 ClassReference ref(dex_file, dex_file->GetIndexForClassDef(class_def)); in VerifyClass()
|
D | verifier_deps.h | 83 void RecordClassVerified(const DexFile& dex_file, const dex::ClassDef& class_def) 89 const dex::ClassDef& class_def, 98 const dex::ClassDef& class_def, 108 const dex::ClassDef& class_def, 135 bool HasRecordedVerifiedStatus(const DexFile& dex_file, const dex::ClassDef& class_def) 219 const dex::ClassDef& class_def, 225 const dex::ClassDef& class_def,
|
D | verifier_deps.cc | 98 const dex::ClassDef* class_def = klass->GetClassDef(); in GetClassDescriptorStringId() local 99 DCHECK(class_def != nullptr) << klass->PrettyClass(); in GetClassDescriptorStringId() 100 const dex::TypeId& type_id = dex_file.GetTypeId(class_def->class_idx_); in GetClassDescriptorStringId() 190 const dex::ClassDef& class_def, in AddAssignability() argument 224 AddAssignability(dex_file, class_def, destination_component, source_component); in AddAssignability() 239 uint16_t index = dex_file.GetIndexForClassDef(class_def); in AddAssignability() 244 const dex::ClassDef& class_def, in AddAssignability() argument 261 uint16_t index = dex_file.GetIndexForClassDef(class_def); in AddAssignability() 268 AddAssignability(dex_file, class_def, destination, merge.GetResolvedPart()); in AddAssignability() 270 AddAssignability(dex_file, class_def, destination, merge.GetRegTypeCache()->GetFromId(idx)); in AddAssignability() [all …]
|
D | method_verifier_test.cc | 81 const dex::ClassDef& class_def = dex.GetClassDef(i); in VerifyDexFile() local 82 const char* descriptor = dex.GetClassDescriptor(class_def); in VerifyDexFile()
|
D | class_verifier.h | 65 const dex::ClassDef& class_def,
|
D | method_verifier.h | 106 const dex::ClassDef& class_def, 203 const dex::ClassDef& class_def, 277 const dex::ClassDef& class_def,
|
/art/runtime/dex/ |
D | dex_file_annotations.h | 87 const dex::ClassDef& class_def, 95 const dex::ClassDef& class_def, 103 const dex::ClassDef& class_def, 108 const dex::ClassDef& class_def, 113 const dex::ClassDef& class_def, 122 const dex::ClassDef& class_def, 126 const dex::ClassDef& class_def); 175 const dex::ClassDef& class_def) in RuntimeEncodedStaticFieldValueIterator() argument 177 : EncodedStaticFieldValueIterator(*dex_cache->GetDexFile(), class_def), in RuntimeEncodedStaticFieldValueIterator()
|
D | dex_file_annotations.cc | 120 const dex::ClassDef* class_def) REQUIRES_SHARED(Locks::mutator_lock_) in ClassData() argument 124 class_def_(class_def) { in ClassData() 151 const dex::ClassDef& class_def, in FindAnnotationSetForField() argument 154 const AnnotationsDirectoryItem* annotations_dir = dex_file.GetAnnotationsDirectory(class_def); in FindAnnotationSetForField() 174 const dex::ClassDef* class_def = klass->GetClassDef(); in FindAnnotationSetForField() local 175 if (class_def == nullptr) { in FindAnnotationSetForField() 179 return FindAnnotationSetForField(*field->GetDexFile(), *class_def, field->GetDexFieldIndex()); in FindAnnotationSetForField() 289 const dex::ClassDef& class_def, in FindAnnotationSetForMethod() argument 291 const AnnotationsDirectoryItem* annotations_dir = dex_file.GetAnnotationsDirectory(class_def); in FindAnnotationSetForMethod() 344 const dex::ClassDef* class_def = klass.GetClassDef(); in FindAnnotationSetForClass() local [all …]
|
/art/libdexfile/dex/ |
D | dex_file.h | 422 std::optional<uint32_t> GetCodeItemOffset(const dex::ClassDef& class_def, 427 uint32_t FindCodeItemOffset(const dex::ClassDef& class_def, 523 uint16_t GetIndexForClassDef(const dex::ClassDef& class_def) const { in GetIndexForClassDef() argument 524 CHECK_GE(&class_def, class_defs_) << GetLocation(); in GetIndexForClassDef() 525 CHECK_LT(&class_def, class_defs_ + header_->class_defs_size_) << GetLocation(); in GetIndexForClassDef() 526 return &class_def - class_defs_; in GetIndexForClassDef() 530 const char* GetClassDescriptor(const dex::ClassDef& class_def) const; 535 const dex::TypeList* GetInterfacesList(const dex::ClassDef& class_def) const { in GetInterfacesList() argument 536 return DataPointer<dex::TypeList>(class_def.interfaces_off_); in GetInterfacesList() 558 const uint8_t* GetClassData(const dex::ClassDef& class_def) const { in GetClassData() argument [all …]
|
D | type_lookup_table.cc | 46 const dex::ClassDef& class_def = dex_file.GetClassDef(class_def_idx); in Create() local 47 const dex::TypeId& type_id = dex_file.GetTypeId(class_def.class_idx_); in Create() 61 const dex::ClassDef& class_def = dex_file.GetClassDef(class_def_idx); in Create() local 62 const dex::TypeId& type_id = dex_file.GetTypeId(class_def.class_idx_); in Create()
|
D | class_accessor_test.cc | 33 const dex::ClassDef& class_def = dex_file->GetClassDef(accessor.GetClassDefIndex()); in TEST_F() local 34 EXPECT_EQ(accessor.GetDescriptor(), dex_file->GetTypeDescriptor(class_def.class_idx_)); in TEST_F()
|
D | class_accessor-inl.h | 36 const dex::ClassDef& class_def, in ClassAccessor() argument 39 dex_file.GetClassData(class_def), in ClassAccessor() 40 dex_file.GetIndexForClassDef(class_def), in ClassAccessor()
|
D | dex_file.cc | 340 const ClassDef& class_def = GetClassDef(i); in FindClassDef() local 341 if (class_def.class_idx_ == type_idx) { in FindClassDef() 342 return &class_def; in FindClassDef() 348 std::optional<uint32_t> DexFile::GetCodeItemOffset(const ClassDef &class_def, in GetCodeItemOffset() argument 350 ClassAccessor accessor(*this, class_def); in GetCodeItemOffset() 360 uint32_t DexFile::FindCodeItemOffset(const dex::ClassDef &class_def, in FindCodeItemOffset() argument 362 std::optional<uint32_t> val = GetCodeItemOffset(class_def, dex_method_idx); in FindCodeItemOffset()
|
D | dex_file_verifier.cc | 291 bool CheckStaticFieldTypes(const dex::ClassDef& class_def); 1264 bool DexFileVerifier::CheckStaticFieldTypes(const dex::ClassDef& class_def) { in CheckStaticFieldTypes() argument 1266 EncodedStaticFieldValueIterator array_it(*dex_file_, class_def); in CheckStaticFieldTypes() 1434 const dex::ClassDef* class_def = reinterpret_cast<const dex::ClassDef*>(ptr_); in CheckIntraClassDefItem() local 1435 if (!CheckIndex(class_def->class_idx_.index_, header_->type_ids_size_, "class_def.class")) { in CheckIntraClassDefItem() 1440 if (UNLIKELY(class_def->pad2_ != 0u)) { in CheckIntraClassDefItem() 1442 (static_cast<uint32_t>(class_def->pad2_) << 16) + class_def->superclass_idx_.index_; in CheckIntraClassDefItem() 1447 } else if (!CheckIndex(class_def->superclass_idx_.index_, in CheckIntraClassDefItem() 1453 DCHECK_LE(class_def->class_idx_.index_, kTypeIdLimit); in CheckIntraClassDefItem() 1455 if (defined_classes_[class_def->class_idx_.index_]) { in CheckIntraClassDefItem() [all …]
|
D | art_dex_file_loader_test.cc | 166 const dex::ClassDef& class_def = raw->GetClassDef(0); in TEST_F() local 167 ASSERT_STREQ("LGetMethodSignature;", raw->GetClassDescriptor(class_def)); in TEST_F() 169 ClassAccessor accessor(*raw, class_def); in TEST_F()
|
/art/dex2oat/dex/ |
D | verification_results.cc | 61 const dex::ClassDef& class_def = dex_file.GetClassDef(ref.ClassDefIdx()); in AddUncompilableClass() local 63 ClassAccessor accessor(dex_file, class_def); in AddUncompilableClass()
|
/art/dexlist/ |
D | dexlist.cc | 141 const dex::ClassDef& class_def = pDexFile->GetClassDef(idx); in dumpClass() local 144 if (class_def.source_file_idx_.IsValid()) { in dumpClass() 145 fileName = pDexFile->GetStringData(class_def.source_file_idx_); in dumpClass() 148 ClassAccessor accessor(*pDexFile, class_def); in dumpClass()
|
/art/dex2oat/ |
D | verifier_deps_test.cc | 143 const dex::ClassDef* class_def = klass_Main_->GetClassDef(); in VerifyMethod() local 144 ClassAccessor accessor(*primary_dex_file_, *class_def); in VerifyMethod() 156 method.GetInvokeType(class_def->access_flags_)); in VerifyMethod() 165 *class_def, in VerifyMethod() 219 const dex::ClassDef& class_def = dex_file->GetClassDef(i); in VerifyClassStatus() local 220 const char* descriptor = dex_file->GetClassDescriptor(class_def); in VerifyClassStatus() 240 const dex::ClassDef* class_def = dex_file.FindClassDef(type_idx); in GetClassDefIndex() local 241 DCHECK(class_def != nullptr); in GetClassDefIndex() 242 return dex_file.GetIndexForClassDef(*class_def); in GetClassDefIndex()
|
D | dex2oat_vdex_test.cc | 102 const dex::ClassDef* class_def = dex_file.FindClassDef(type_idx); in GetClassDefIndex() local 103 DCHECK(class_def != nullptr); in GetClassDefIndex() 104 return dex_file.GetIndexForClassDef(*class_def); in GetClassDefIndex()
|
/art/runtime/ |
D | hidden_api.cc | 474 const dex::ClassDef& class_def, in VisitMembers() argument 476 ClassAccessor accessor(dex_file, class_def, /* parse_hiddenapi_class_data= */ true); in VisitMembers() 481 const dex::ClassDef& class_def, in VisitMembers() argument 483 ClassAccessor accessor(dex_file, class_def, /* parse_hiddenapi_class_data= */ true); in VisitMembers() 509 const dex::ClassDef* class_def = declaring_class->GetClassDef(); in GetDexFlags() local 510 if (class_def == nullptr) { in GetDexFlags() 524 VisitMembers(declaring_class->GetDexFile(), *class_def, fn_visit); in GetDexFlags()
|
D | runtime_image.cc | 242 const dex::ClassDef* class_def = cls->GetClassDef(); in GetClassContent() local 243 DCHECK(class_def != nullptr) << cls->PrettyClass(); in GetClassContent() 244 auto it = classes_.find(class_def); in GetClassContent() 531 const dex::ClassDef* class_def = cls->GetClassDef(); in CanEmit() local 532 DCHECK_NE(class_def, nullptr); in CanEmit() 533 auto existing = visited_.find(class_def); in CanEmit() 539 visited_.Put(class_def, VisitState::kVisiting); in CanEmit() 541 visited_.Overwrite(class_def, VisitState::kCanEmit); in CanEmit() 544 visited_.Overwrite(class_def, VisitState::kCannotEmit); in CanEmit() 658 const dex::ClassDef* class_def = cls->GetClassDef(); in EmitClasses() local [all …]
|
/art/profman/ |
D | boot_image_profile.cc | 121 const dex::ClassDef* class_def = ref.dex_file->FindClassDef(ref.TypeIndex()); in MaybeIsClassClean() local 122 if (class_def == nullptr) { in MaybeIsClassClean() 126 ClassAccessor accessor(*ref.dex_file, *class_def); in MaybeIsClassClean()
|
/art/dex2oat/linker/ |
D | image_write_read_test.cc | 122 const dex::ClassDef& class_def = dex->GetClassDef(j); in TestWriteRead() local 123 const char* descriptor = dex->GetClassDescriptor(class_def); in TestWriteRead()
|
/art/tools/hiddenapi/ |
D | hiddenapi_test.cc | 178 const dex::ClassDef& class_def, in GetFieldHiddenFlags() argument 180 ClassAccessor accessor(dex_file, class_def, /* parse hiddenapi flags */ true); in GetFieldHiddenFlags() 198 << dex_file.GetClassDescriptor(class_def); in GetFieldHiddenFlags() 205 const dex::ClassDef& class_def, in GetMethodHiddenFlags() argument 207 ClassAccessor accessor(dex_file, class_def, /* parse hiddenapi flags */ true); in GetMethodHiddenFlags() 227 << dex_file.GetClassDescriptor(class_def); in GetMethodHiddenFlags()
|
/art/dex2oat/driver/ |
D | compiler_driver.cc | 1979 const dex::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in Visit() local 1980 const char* descriptor = dex_file.GetClassDescriptor(class_def); in Visit() 2009 class_def, in Visit() 2104 class_def, in Visit() 2143 const dex::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in Visit() local 2144 const char* descriptor = dex_file.GetClassDescriptor(class_def); in Visit() 2205 const dex::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in Visit() local 2206 const dex::TypeId& class_type_id = dex_file.GetTypeId(class_def.class_idx_); in Visit() 2232 const dex::ClassDef* class_def = klass->GetClassDef(); in TryInitializeClass() local 2233 const dex::TypeId& class_type_id = dex_file.GetTypeId(class_def->class_idx_); in TryInitializeClass() [all …]
|