Home
last modified time | relevance | path

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

12

/art/runtime/verifier/
Dclass_verifier.cc162 const dex::ClassDef* class_def = klass->GetClassDef(); in CommonVerifyClass() local
171 } else if (class_def == nullptr) { in CommonVerifyClass()
190 *class_def, in CommonVerifyClass()
204 const dex::ClassDef& class_def, in VerifyClass() argument
215 class_def, in VerifyClass()
228 const dex::ClassDef& class_def, in VerifyClass() argument
236 if ((class_def.access_flags_ & (kAccAbstract | kAccFinal)) == (kAccAbstract | kAccFinal)) { in VerifyClass()
238 *error += PrettyDescriptor(dex_file->GetClassDescriptor(class_def)); in VerifyClass()
243 ClassAccessor accessor(*dex_file, class_def); in VerifyClass()
264 const InvokeType type = method.GetInvokeType(class_def.access_flags_); in VerifyClass()
[all …]
Dmethod_verifier_test.cc61 const dex::ClassDef& class_def = dex.GetClassDef(i); in VerifyDexFile() local
62 const char* descriptor = dex.GetClassDescriptor(class_def); in VerifyDexFile()
Dclass_verifier.h78 const dex::ClassDef& class_def,
107 const dex::ClassDef& class_def,
Dverifier_deps.h73 void RecordClassVerified(const DexFile& dex_file, const dex::ClassDef& class_def)
78 const dex::ClassDef& class_def,
84 static void MaybeRecordClassRedefinition(const DexFile& dex_file, 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.cc52 for (auto& class_def : header_->ClassDefs()) { in WriteDebugInfoOffsetTable() local
54 dex_ir::ClassData* class_data = class_def->GetClassData(); in WriteDebugInfoOffsetTable()
240 for (auto& class_def : header_->ClassDefs()) { in SortDebugInfosByMethodIndex() local
242 dex_ir::ClassData* class_data = class_def->GetClassData(); in SortDebugInfosByMethodIndex()
340 for (auto& class_def : header_->ClassDefs()) { in CanGenerateCompactDex() local
342 dex_ir::ClassData* class_data = class_def->GetClassData(); in CanGenerateCompactDex()
Ddex_ir_builder.cc170 ClassData* CreateClassData(const DexFile& dex_file, const dex::ClassDef& class_def);
304 const dex::ClassDef& class_def = dex_file.GetClassDef(i); in DexIrBuilder() local
305 const char* descriptor = dex_file.GetClassDescriptor(class_def); in DexIrBuilder()
640 for (auto& class_def : header_->ClassDefs()) { in AddHiddenapiClassDataFromMapListSection() local
641 uint32_t index = class_def->GetIndex(); in AddHiddenapiClassDataFromMapListSection()
642 ClassData* class_data = class_def->GetClassData(); in AddHiddenapiClassDataFromMapListSection()
667 class_def.get(), in AddHiddenapiClassDataFromMapListSection()
945 const dex::ClassDef& class_def) { in CreateClassData() argument
948 const uint32_t offset = class_def.class_data_off_; in CreateClassData()
951 ClassAccessor accessor(dex_file, class_def); in CreateClassData()
[all …]
/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.h333 uint32_t FindCodeItemOffset(const dex::ClassDef& class_def,
411 uint16_t GetIndexForClassDef(const dex::ClassDef& class_def) const { in GetIndexForClassDef() argument
412 CHECK_GE(&class_def, class_defs_) << GetLocation(); in GetIndexForClassDef()
413 CHECK_LT(&class_def, class_defs_ + header_->class_defs_size_) << GetLocation(); in GetIndexForClassDef()
414 return &class_def - class_defs_; in GetIndexForClassDef()
418 const char* GetClassDescriptor(const dex::ClassDef& class_def) const;
423 const dex::TypeList* GetInterfacesList(const dex::ClassDef& class_def) const { in GetInterfacesList() argument
424 return DataPointer<dex::TypeList>(class_def.interfaces_off_); in GetInterfacesList()
446 const uint8_t* GetClassData(const dex::ClassDef& class_def) const { in GetClassData() argument
447 return DataPointer<uint8_t>(class_def.class_data_off_); in GetClassData()
[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()
Dart_dex_file_loader_test.cc117 const dex::ClassDef& class_def = raw->GetClassDef(0); in TEST_F() local
118 ASSERT_STREQ("LGetMethodSignature;", raw->GetClassDescriptor(class_def)); in TEST_F()
120 ClassAccessor accessor(*raw, class_def); in TEST_F()
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 …]
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 uint32_t DexFile::FindCodeItemOffset(const ClassDef& class_def, uint32_t method_idx) const { in FindCodeItemOffset() argument
229 ClassAccessor accessor(*this, class_def); in FindCodeItemOffset()
/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/runtime/
Dhidden_api.cc374 const dex::ClassDef& class_def, in VisitMembers() argument
376 ClassAccessor accessor(dex_file, class_def, /* parse_hiddenapi_class_data= */ true); in VisitMembers()
381 const dex::ClassDef& class_def, in VisitMembers() argument
383 ClassAccessor accessor(dex_file, class_def, /* parse_hiddenapi_class_data= */ true); in VisitMembers()
408 const dex::ClassDef* class_def = declaring_class->GetClassDef(); in GetDexFlags() local
409 if (class_def == nullptr) { in GetDexFlags()
423 VisitMembers(declaring_class->GetDexFile(), *class_def, fn_visit); in GetDexFlags()
Dmodule_exclusion_test.cc66 const dex::ClassDef& class_def = dex_file->GetClassDef(i); in DoTest() local
68 class_linker->ResolveType(class_def.class_idx_, dex_cache, class_loader); in DoTest()
/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()
/art/dex2oat/driver/
Dcompiler_driver.cc350 const DexFile& dex_file, const dex::ClassDef& class_def) in GetDexToDexCompilationLevel() argument
360 const char* descriptor = dex_file.GetClassDescriptor(class_def); in GetDexToDexCompilationLevel()
395 const dex::ClassDef& class_def) { in GetDexToDexCompilationLevel() argument
400 return GetDexToDexCompilationLevel(self, driver, class_loader, dex_file, class_def); in GetDexToDexCompilationLevel()
1629 const dex::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in Visit() local
1638 class_linker->ResolveType(class_def.class_idx_, dex_cache, class_loader); in Visit()
1698 method.GetInvokeType(class_def.access_flags_)); in Visit()
1977 const dex::ClassDef& class_def = dex_file.GetClassDef(class_def_index); in Visit() local
1978 const char* descriptor = dex_file.GetClassDescriptor(class_def); in Visit()
2004 class_def, in Visit()
[all …]
/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()
233 const dex::ClassDef& class_def = dex_file->GetClassDef(i); in VerifyClassStatus() local
234 const char* descriptor = dex_file->GetClassDescriptor(class_def); in VerifyClassStatus()
254 const dex::ClassDef* class_def = dex_file.FindClassDef(type_idx); in GetClassDefIndex() local
255 DCHECK(class_def != nullptr); in GetClassDefIndex()
256 return dex_file.GetIndexForClassDef(*class_def); in GetClassDefIndex()

12