Home
last modified time | relevance | path

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

12

/art/runtime/verifier/
Dclass_verifier.cc166 const dex::ClassDef* class_def = klass->GetClassDef(); in CommonVerifyClass() local
175 } else if (class_def == nullptr) { in CommonVerifyClass()
195 *class_def, in CommonVerifyClass()
210 const dex::ClassDef& class_def, in VerifyClass() argument
222 class_def, in VerifyClass()
236 const dex::ClassDef& class_def, in VerifyClass() argument
244 if ((class_def.access_flags_ & (kAccAbstract | kAccFinal)) == (kAccAbstract | kAccFinal)) { in VerifyClass()
246 *error += PrettyDescriptor(dex_file->GetClassDescriptor(class_def)); in VerifyClass()
251 ClassAccessor accessor(*dex_file, class_def); in VerifyClass()
269 const InvokeType type = method.GetInvokeType(class_def.access_flags_); in VerifyClass()
[all …]
Dverifier_deps.h79 void RecordClassVerified(const DexFile& dex_file, const dex::ClassDef& class_def)
85 const dex::ClassDef& class_def,
94 const dex::ClassDef& class_def,
104 const dex::ClassDef& class_def,
128 bool HasRecordedVerifiedStatus(const DexFile& dex_file, const dex::ClassDef& class_def)
212 const dex::ClassDef& class_def,
218 const dex::ClassDef& class_def,
Dverifier_deps.cc101 const dex::ClassDef* class_def = klass->GetClassDef(); in GetClassDescriptorStringId() local
102 DCHECK(class_def != nullptr) << klass->PrettyClass(); in GetClassDescriptorStringId()
103 const dex::TypeId& type_id = dex_file.GetTypeId(class_def->class_idx_); in GetClassDescriptorStringId()
193 const dex::ClassDef& class_def, in AddAssignability() argument
228 class_def, in AddAssignability()
245 uint16_t index = dex_file.GetIndexForClassDef(class_def); in AddAssignability()
250 const dex::ClassDef& class_def, in AddAssignability() argument
267 uint16_t index = dex_file.GetIndexForClassDef(class_def); in AddAssignability()
274 AddAssignability(dex_file, class_def, destination, merge.GetResolvedPart()); in AddAssignability()
276 AddAssignability(dex_file, class_def, destination, merge.GetRegTypeCache()->GetFromId(idx)); in AddAssignability()
[all …]
Dmethod_verifier_test.cc70 const dex::ClassDef& class_def = dex.GetClassDef(i); in VerifyDexFile() local
71 const char* descriptor = dex.GetClassDescriptor(class_def); in VerifyDexFile()
Dclass_verifier.h82 const dex::ClassDef& class_def,
113 const dex::ClassDef& class_def,
Dmethod_verifier.h126 const dex::ClassDef& class_def,
229 const dex::ClassDef& class_def,
314 const dex::ClassDef& class_def,
/art/dexlayout/
Ddexlayout.cc627 dex_ir::ClassDef* class_def = header_->ClassDefs()[idx]; in DumpClassDef() local
629 fprintf(out_file_, "class_idx : %d\n", class_def->ClassType()->GetIndex()); in DumpClassDef()
631 class_def->GetAccessFlags(), class_def->GetAccessFlags()); in DumpClassDef()
632 uint32_t superclass_idx = class_def->Superclass() == nullptr ? in DumpClassDef()
633 DexFile::kDexNoIndex16 : class_def->Superclass()->GetIndex(); in DumpClassDef()
636 class_def->InterfacesOffset(), class_def->InterfacesOffset()); in DumpClassDef()
638 if (class_def->SourceFile() != nullptr) { in DumpClassDef()
639 source_file_offset = class_def->SourceFile()->GetIndex(); in DumpClassDef()
643 if (class_def->Annotations() != nullptr) { in DumpClassDef()
644 annotations_offset = class_def->Annotations()->GetOffset(); in DumpClassDef()
[all …]
Ddex_visualize.cc257 dex_ir::ClassDef* class_def = header->ClassDefs()[class_index]; in VisualizeDexLayout() local
258 dex::TypeIndex type_idx(class_def->ClassType()->GetIndex()); in VisualizeDexLayout()
262 dumper->DumpAddressRange(class_def, class_index); in VisualizeDexLayout()
264 dumper->DumpTypeId(class_def->ClassType(), class_index); in VisualizeDexLayout()
266 dumper->DumpTypeId(class_def->Superclass(), class_index); in VisualizeDexLayout()
270 dumper->DumpAddressRange(class_def->InterfacesOffset(), kInterfaceSizeKludge, class_index); in VisualizeDexLayout()
272 dumper->DumpStringId(class_def->SourceFile(), class_index); in VisualizeDexLayout()
274 dumper->DumpAddressRange(class_def->Annotations(), class_index); in VisualizeDexLayout()
277 dex_ir::ClassData* class_data = class_def->GetClassData(); in VisualizeDexLayout()
Ddex_writer.cc490 dex_ir::ClassDef* class_def = header_->ClassDefs()[i]; in WriteHiddenapiClassData() local
492 DCHECK(item->GetClassDef() == class_def); in WriteHiddenapiClassData()
495 dex_ir::ClassData* class_data = class_def->GetClassData(); in WriteHiddenapiClassData()
631 for (auto& class_def : header_->ClassDefs()) { in WriteClassDefs() local
634 stream->Skip(class_def->GetSize()); in WriteClassDefs()
636 class_def_buffer[0] = class_def->ClassType()->GetIndex(); in WriteClassDefs()
637 class_def_buffer[1] = class_def->GetAccessFlags(); in WriteClassDefs()
638 class_def_buffer[2] = class_def->Superclass() == nullptr ? dex::kDexNoIndex : in WriteClassDefs()
639 class_def->Superclass()->GetIndex(); in WriteClassDefs()
640 class_def_buffer[3] = class_def->InterfacesOffset(); in WriteClassDefs()
[all …]
Dcompact_dex_writer.cc51 for (auto& class_def : header_->ClassDefs()) { in WriteDebugInfoOffsetTable() local
53 dex_ir::ClassData* class_data = class_def->GetClassData(); in WriteDebugInfoOffsetTable()
238 for (auto& class_def : header_->ClassDefs()) { in SortDebugInfosByMethodIndex() local
240 dex_ir::ClassData* class_data = class_def->GetClassData(); in SortDebugInfosByMethodIndex()
338 for (auto& class_def : header_->ClassDefs()) { in CanGenerateCompactDex() local
340 dex_ir::ClassData* class_data = class_def->GetClassData(); in CanGenerateCompactDex()
/art/runtime/dex/
Ddex_file_annotations.h87 const dex::ClassDef& class_def,
92 const dex::ClassDef& class_def,
97 const dex::ClassDef& class_def,
106 const dex::ClassDef& class_def,
110 const dex::ClassDef& class_def);
149 const dex::ClassDef& class_def) in RuntimeEncodedStaticFieldValueIterator() argument
151 : EncodedStaticFieldValueIterator(*dex_cache->GetDexFile(), class_def), in RuntimeEncodedStaticFieldValueIterator()
Ddex_file_annotations.cc121 const dex::ClassDef* class_def) REQUIRES_SHARED(Locks::mutator_lock_) in ClassData() argument
125 class_def_(class_def) { in ClassData()
152 const dex::ClassDef& class_def, in FindAnnotationSetForField() argument
155 const AnnotationsDirectoryItem* annotations_dir = dex_file.GetAnnotationsDirectory(class_def); in FindAnnotationSetForField()
175 const dex::ClassDef* class_def = klass->GetClassDef(); in FindAnnotationSetForField() local
176 if (class_def == nullptr) { in FindAnnotationSetForField()
180 return FindAnnotationSetForField(*field->GetDexFile(), *class_def, field->GetDexFieldIndex()); in FindAnnotationSetForField()
286 const dex::ClassDef& class_def, in FindAnnotationSetForMethod() argument
288 const AnnotationsDirectoryItem* annotations_dir = dex_file.GetAnnotationsDirectory(class_def); in FindAnnotationSetForMethod()
341 const dex::ClassDef* class_def = klass.GetClassDef(); in FindAnnotationSetForClass() local
[all …]
/art/libdexfile/dex/
Ddex_file.h339 std::optional<uint32_t> GetCodeItemOffset(const dex::ClassDef& class_def,
344 uint32_t FindCodeItemOffset(const dex::ClassDef& class_def,
427 uint16_t GetIndexForClassDef(const dex::ClassDef& class_def) const { in GetIndexForClassDef() argument
428 CHECK_GE(&class_def, class_defs_) << GetLocation(); in GetIndexForClassDef()
429 CHECK_LT(&class_def, class_defs_ + header_->class_defs_size_) << GetLocation(); in GetIndexForClassDef()
430 return &class_def - class_defs_; in GetIndexForClassDef()
434 const char* GetClassDescriptor(const dex::ClassDef& class_def) const;
439 const dex::TypeList* GetInterfacesList(const dex::ClassDef& class_def) const { in GetInterfacesList() argument
440 return DataPointer<dex::TypeList>(class_def.interfaces_off_); in GetInterfacesList()
462 const uint8_t* GetClassData(const dex::ClassDef& class_def) const { in GetClassData() argument
[all …]
Dtype_lookup_table.cc50 const dex::ClassDef& class_def = dex_file.GetClassDef(class_def_idx); in Create() local
51 const dex::TypeId& type_id = dex_file.GetTypeId(class_def.class_idx_); in Create()
65 const dex::ClassDef& class_def = dex_file.GetClassDef(class_def_idx); in Create() local
66 const dex::TypeId& type_id = dex_file.GetTypeId(class_def.class_idx_); in Create()
Dclass_accessor_test.cc33 const dex::ClassDef& class_def = dex_file->GetClassDef(accessor.GetClassDefIndex()); in TEST_F() local
34 EXPECT_EQ(accessor.GetDescriptor(), dex_file->StringByTypeIdx(class_def.class_idx_)); in TEST_F()
Dclass_accessor-inl.h36 const dex::ClassDef& class_def, in ClassAccessor() argument
39 dex_file.GetClassData(class_def), in ClassAccessor()
40 dex_file.GetIndexForClassDef(class_def), in ClassAccessor()
Ddex_file.cc220 const ClassDef& class_def = GetClassDef(i); in FindClassDef() local
221 if (class_def.class_idx_ == type_idx) { in FindClassDef()
222 return &class_def; in FindClassDef()
228 std::optional<uint32_t> DexFile::GetCodeItemOffset(const ClassDef &class_def, in GetCodeItemOffset() argument
230 ClassAccessor accessor(*this, class_def); in GetCodeItemOffset()
240 uint32_t DexFile::FindCodeItemOffset(const dex::ClassDef &class_def, in FindCodeItemOffset() argument
242 std::optional<uint32_t> val = GetCodeItemOffset(class_def, dex_method_idx); in FindCodeItemOffset()
Ddex_file_verifier.cc279 bool CheckStaticFieldTypes(const dex::ClassDef& class_def);
1130 bool DexFileVerifier::CheckStaticFieldTypes(const dex::ClassDef& class_def) { in CheckStaticFieldTypes() argument
1132 EncodedStaticFieldValueIterator array_it(*dex_file_, class_def); in CheckStaticFieldTypes()
1297 const dex::ClassDef* class_def = reinterpret_cast<const dex::ClassDef*>(ptr_); in CheckIntraClassDefItem() local
1298 if (!CheckIndex(class_def->class_idx_.index_, header_->type_ids_size_, "class_def.class")) { in CheckIntraClassDefItem()
1303 if (UNLIKELY(class_def->pad2_ != 0u)) { in CheckIntraClassDefItem()
1305 (static_cast<uint32_t>(class_def->pad2_) << 16) + class_def->superclass_idx_.index_; in CheckIntraClassDefItem()
1310 } else if (!CheckIndex(class_def->superclass_idx_.index_, in CheckIntraClassDefItem()
1316 DCHECK_LE(class_def->class_idx_.index_, kTypeIdLimit); in CheckIntraClassDefItem()
1318 if (defined_classes_[class_def->class_idx_.index_]) { in CheckIntraClassDefItem()
[all …]
Dart_dex_file_loader_test.cc126 const dex::ClassDef& class_def = raw->GetClassDef(0); in TEST_F() local
127 ASSERT_STREQ("LGetMethodSignature;", raw->GetClassDescriptor(class_def)); in TEST_F()
129 ClassAccessor accessor(*raw, class_def); in TEST_F()
/art/dexlist/
Ddexlist.cc137 const dex::ClassDef& class_def = pDexFile->GetClassDef(idx); in dumpClass() local
140 if (class_def.source_file_idx_.IsValid()) { in dumpClass()
141 fileName = pDexFile->StringDataByIdx(class_def.source_file_idx_); in dumpClass()
144 ClassAccessor accessor(*pDexFile, class_def); in dumpClass()
/art/dex2oat/
Dverifier_deps_test.cc150 const dex::ClassDef* class_def = klass_Main_->GetClassDef(); in VerifyMethod() local
151 ClassAccessor accessor(*primary_dex_file_, *class_def); in VerifyMethod()
163 method.GetInvokeType(class_def->access_flags_)); in VerifyMethod()
172 *class_def, in VerifyMethod()
229 const dex::ClassDef& class_def = dex_file->GetClassDef(i); in VerifyClassStatus() local
230 const char* descriptor = dex_file->GetClassDescriptor(class_def); in VerifyClassStatus()
250 const dex::ClassDef* class_def = dex_file.FindClassDef(type_idx); in GetClassDefIndex() local
251 DCHECK(class_def != nullptr); in GetClassDefIndex()
252 return dex_file.GetIndexForClassDef(*class_def); in GetClassDefIndex()
Ddex2oat_vdex_test.cc105 const dex::ClassDef* class_def = dex_file.FindClassDef(type_idx); in GetClassDefIndex() local
106 DCHECK(class_def != nullptr); in GetClassDefIndex()
107 return dex_file.GetIndexForClassDef(*class_def); in GetClassDefIndex()
/art/runtime/
Dhidden_api.cc393 const dex::ClassDef& class_def, in VisitMembers() argument
395 ClassAccessor accessor(dex_file, class_def, /* parse_hiddenapi_class_data= */ true); in VisitMembers()
400 const dex::ClassDef& class_def, in VisitMembers() argument
402 ClassAccessor accessor(dex_file, class_def, /* parse_hiddenapi_class_data= */ true); in VisitMembers()
427 const dex::ClassDef* class_def = declaring_class->GetClassDef(); in GetDexFlags() local
428 if (class_def == nullptr) { in GetDexFlags()
442 VisitMembers(declaring_class->GetDexFile(), *class_def, fn_visit); in GetDexFlags()
/art/profman/
Dboot_image_profile.cc121 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/
Dimage_write_read_test.cc122 const dex::ClassDef& class_def = dex->GetClassDef(j); in TestWriteRead() local
123 const char* descriptor = dex->GetClassDescriptor(class_def); in TestWriteRead()

12