Home
last modified time | relevance | path

Searched refs:class_data (Results 1 – 25 of 45) sorted by relevance

12

/art/libdexfile/dex/
Ddex_file_tracking_registrar.cc159 const uint8_t* class_data = dex_file_->GetClassData(cd); in SetAllCodeItemRegistration() local
160 if (class_data != nullptr) { in SetAllCodeItemRegistration()
161 ClassDataItemIterator cdit(*dex_file_, class_data); in SetAllCodeItemRegistration()
179 const uint8_t* class_data = dex_file_->GetClassData(cd); in SetAllCodeItemStartRegistration() local
180 if (class_data != nullptr) { in SetAllCodeItemStartRegistration()
181 ClassDataItemIterator cdit(*dex_file_, class_data); in SetAllCodeItemStartRegistration()
204 const uint8_t* class_data = dex_file_->GetClassData(cd); in SetAllInsnsRegistration() local
205 if (class_data != nullptr) { in SetAllInsnsRegistration()
206 ClassDataItemIterator cdit(*dex_file_, class_data); in SetAllInsnsRegistration()
226 const uint8_t* class_data = dex_file_->GetClassData(cd); in SetCodeItemRegistration() local
[all …]
Ddex_file-inl.h520 const uint8_t* class_data = dex_file->GetClassData(*this); in VisitMethods() local
521 if (class_data != nullptr) { in VisitMethods()
522 ClassDataItemIterator it(*dex_file, class_data); in VisitMethods()
/art/test/983-source-transform-verify/
Dsource_transform_slicer.cc30 void VerifyClassData(jint class_data_len, const unsigned char* class_data) { in VerifyClassData() argument
31 dex::Reader reader(class_data, class_data_len); in VerifyClassData()
Dsource_transform_art.cc35 void VerifyClassData(jint class_data_len, const unsigned char* class_data) { in VerifyClassData() argument
38 const DexFile::Header* header = reinterpret_cast<const DexFile::Header*>(class_data); in VerifyClassData()
45 std::unique_ptr<const DexFile> dex(dex_file_loader.Open(class_data, in VerifyClassData()
Dsource_transform.cc51 const unsigned char* class_data, in CheckDexFileHook() argument
64 VerifyClassData(class_data_len, class_data); in CheckDexFileHook()
Dsource_transform.h25 void VerifyClassData(jint class_data_len, const unsigned char* class_data);
/art/dexlayout/
Ddex_visualize.cc277 dex_ir::ClassData* class_data = class_def->GetClassData(); in VisualizeDexLayout() local
278 if (class_data != nullptr) { in VisualizeDexLayout()
279 dumper->DumpAddressRange(class_data, class_index); in VisualizeDexLayout()
280 if (class_data->StaticFields()) { in VisualizeDexLayout()
281 for (auto& field_item : *class_data->StaticFields()) { in VisualizeDexLayout()
285 if (class_data->InstanceFields()) { in VisualizeDexLayout()
286 for (auto& field_item : *class_data->InstanceFields()) { in VisualizeDexLayout()
290 if (class_data->DirectMethods()) { in VisualizeDexLayout()
291 for (auto& method_item : *class_data->DirectMethods()) { in VisualizeDexLayout()
295 if (class_data->VirtualMethods()) { in VisualizeDexLayout()
[all …]
Dcompact_dex_writer.cc55 dex_ir::ClassData* class_data = class_def->GetClassData(); in WriteDebugInfoOffsetTable() local
56 if (class_data == nullptr) { in WriteDebugInfoOffsetTable()
60 ? class_data->DirectMethods() in WriteDebugInfoOffsetTable()
61 : class_data->VirtualMethods())) { in WriteDebugInfoOffsetTable()
244 dex_ir::ClassData* class_data = class_def->GetClassData(); in SortDebugInfosByMethodIndex() local
245 if (class_data == nullptr) { in SortDebugInfosByMethodIndex()
249 ? class_data->DirectMethods() in SortDebugInfosByMethodIndex()
250 : class_data->VirtualMethods())) { in SortDebugInfosByMethodIndex()
346 dex_ir::ClassData* class_data = class_def->GetClassData(); in CanGenerateCompactDex() local
347 if (class_data == nullptr) { in CanGenerateCompactDex()
[all …]
Ddexlayout.cc670 dex_ir::ClassData* class_data = class_def->GetClassData(); in DumpClassDef() local
671 if (class_data != nullptr && class_data->StaticFields() != nullptr) { in DumpClassDef()
672 fprintf(out_file_, "static_fields_size : %zu\n", class_data->StaticFields()->size()); in DumpClassDef()
676 if (class_data != nullptr && class_data->InstanceFields() != nullptr) { in DumpClassDef()
677 fprintf(out_file_, "instance_fields_size: %zu\n", class_data->InstanceFields()->size()); in DumpClassDef()
681 if (class_data != nullptr && class_data->DirectMethods() != nullptr) { in DumpClassDef()
682 fprintf(out_file_, "direct_methods_size : %zu\n", class_data->DirectMethods()->size()); in DumpClassDef()
686 if (class_data != nullptr && class_data->VirtualMethods() != nullptr) { in DumpClassDef()
687 fprintf(out_file_, "virtual_methods_size: %zu\n", class_data->VirtualMethods()->size()); in DumpClassDef()
1447 dex_ir::ClassData* class_data = class_def->GetClassData(); in DumpClass() local
[all …]
Ddex_writer.cc611 for (const std::unique_ptr<dex_ir::ClassData>& class_data : in WriteClassDatas() local
614 ProcessOffset(stream, class_data.get()); in WriteClassDatas()
615 stream->WriteUleb128(class_data->StaticFields()->size()); in WriteClassDatas()
616 stream->WriteUleb128(class_data->InstanceFields()->size()); in WriteClassDatas()
617 stream->WriteUleb128(class_data->DirectMethods()->size()); in WriteClassDatas()
618 stream->WriteUleb128(class_data->VirtualMethods()->size()); in WriteClassDatas()
619 WriteEncodedFields(stream, class_data->StaticFields()); in WriteClassDatas()
620 WriteEncodedFields(stream, class_data->InstanceFields()); in WriteClassDatas()
621 WriteEncodedMethods(stream, class_data->DirectMethods()); in WriteClassDatas()
622 WriteEncodedMethods(stream, class_data->VirtualMethods()); in WriteClassDatas()
Ddex_ir.cc383 ClassData* class_data = CreateClassData( in CreateClassDef() local
386 source_file, annotations, static_values, class_data); in CreateClassDef()
738 ClassData* class_data = class_datas_map_.GetExistingObject(offset); in CreateClassData() local
739 if (class_data == nullptr && encoded_data != nullptr) { in CreateClassData()
766 class_data = new ClassData(static_fields, instance_fields, direct_methods, virtual_methods); in CreateClassData()
767 class_data->SetSize(cdii.EndDataPointer() - encoded_data); in CreateClassData()
768 AddItem(class_datas_map_, class_datas_, class_data, offset); in CreateClassData()
770 return class_data; in CreateClassData()
/art/tools/veridex/
Dresolver.cc40 const uint8_t* class_data = dex_file_.GetClassData(class_def); in Run() local
41 if (class_data == nullptr) { in Run()
46 ClassDataItemIterator it(dex_file_, class_data); in Run()
151 const uint8_t* class_data = other_dex_file.GetClassData(*kls.GetClassDef()); in LookupMethodIn() local
152 if (class_data != nullptr) { in LookupMethodIn()
153 ClassDataItemIterator it(other_dex_file, class_data); in LookupMethodIn()
210 const uint8_t* class_data = other_dex_file.GetClassData(*kls.GetClassDef()); in LookupFieldIn() local
211 if (class_data != nullptr) { in LookupFieldIn()
212 ClassDataItemIterator it(other_dex_file, class_data); in LookupFieldIn()
263 const uint8_t* class_data = other_dex_file.GetClassData(*kls.GetClassDef()); in LookupDeclaredMethodIn() local
[all …]
Dprecise_hidden_api_finder.cc40 const uint8_t* class_data = dex_file.GetClassData(class_def); in RunInternal() local
41 if (class_data == nullptr) { in RunInternal()
45 ClassDataItemIterator it(dex_file, class_data); in RunInternal()
Dhidden_api_finder.cc68 const uint8_t* class_data = dex_file.GetClassData(class_def); in CollectAccesses() local
69 if (class_data == nullptr) { in CollectAccesses()
73 ClassDataItemIterator it(dex_file, class_data); in CollectAccesses()
/art/compiler/dex/
Ddex_to_dex_decompiler_test.cc86 const uint8_t* class_data = updated_dex_file->GetClassData(class_def); in RunTest() local
87 if (class_data == nullptr) { in RunTest()
90 ClassDataItemIterator it(*updated_dex_file, class_data); in RunTest()
/art/profman/
Dboot_image_profile.cc81 const uint8_t* class_data = dex_file->GetClassData(class_def); in GenerateBootImageProfile() local
82 if (class_data != nullptr) { in GenerateBootImageProfile()
83 ClassDataItemIterator it(*dex_file, class_data); in GenerateBootImageProfile()
/art/openjdkjvmti/
Dfixed_up_dex_file.cc55 const uint8_t* class_data = target_dex_file.GetClassData(target_dex_file.GetClassDef(i)); in UnhideApis() local
56 if (class_data != nullptr) { in UnhideApis()
57 for (art::ClassDataItemIterator class_it(target_dex_file, class_data); in UnhideApis()
Devents-inl.h211 const unsigned char* class_data, in DispatchClassFileLoadHookEvent() argument
219 unsigned char* current_class_data = const_cast<unsigned char*>(class_data); in DispatchClassFileLoadHookEvent()
228 class_data, in DispatchClassFileLoadHookEvent()
466 const unsigned char* class_data,
477 class_data,
491 const unsigned char* class_data,
502 class_data,
/art/runtime/
Dvdex_file.cc288 const uint8_t* class_data = target_dex_file.GetClassData(class_def); in UnquickenDexFile() local
289 if (class_data != nullptr) { in UnquickenDexFile()
290 for (ClassDataItemIterator class_it(target_dex_file, class_data); in UnquickenDexFile()
/art/dexdump/
Ddexdump_cfg.cc371 const uint8_t* class_data = dex_file->GetClassData(*class_def); in DumpMethodCFG() local
372 if (class_data == nullptr) { in DumpMethodCFG()
377 ClassDataItemIterator it(*dex_file, class_data); in DumpMethodCFG()
/art/test/utils/python/
Dgenerate_java_main.py309 class_data = parse_xml((java_dir / "classes.xml").open().read())
310 make_main_class(class_data).dump(java_dir)
/art/tools/hiddenapi/
Dhiddenapi_test.cc128 const uint8_t* class_data = dex_file.GetClassData(class_def); in GetFieldHiddenFlags() local
129 if (class_data == nullptr) { in GetFieldHiddenFlags()
134 for (ClassDataItemIterator it(dex_file, class_data); it.HasNext(); it.Next()) { in GetFieldHiddenFlags()
161 const uint8_t* class_data = dex_file.GetClassData(class_def); in GetMethodHiddenFlags() local
162 if (class_data == nullptr) { in GetMethodHiddenFlags()
167 for (ClassDataItemIterator it(dex_file, class_data); it.HasNext(); it.Next()) { in GetMethodHiddenFlags()
/art/runtime/dex/
Dart_dex_file_loader_test.cc121 const uint8_t* class_data = raw->GetClassData(class_def); in TEST_F() local
122 ASSERT_TRUE(class_data != nullptr); in TEST_F()
123 ClassDataItemIterator it(*raw, class_data); in TEST_F()
/art/compiler/driver/
Dcompiler_driver.cc828 const uint8_t* class_data = dex_file->GetClassData(class_def); in ResolveConstStrings() local
829 if (class_data == nullptr) { in ResolveConstStrings()
834 ClassDataItemIterator it(*dex_file, class_data); in ResolveConstStrings()
1667 const uint8_t* class_data = dex_file.GetClassData(class_def); in RequiresConstructorBarrier() local
1668 if (class_data == nullptr) { in RequiresConstructorBarrier()
1672 ClassDataItemIterator it(dex_file, class_data); in RequiresConstructorBarrier()
1735 const uint8_t* class_data = dex_file.GetClassData(class_def); in Visit() local
1736 if (class_data == nullptr) { in Visit()
1740 ClassDataItemIterator it(dex_file, class_data); in Visit()
1872 const uint8_t* class_data = dex_file.GetClassData(class_def); in PopulateVerifiedMethods() local
[all …]
/art/imgdiag/
Dimgdiag.cc517 ClassData& class_data = class_data_[klass]; in DumpDirtyEntries() local
518 size_t object_sizes = class_data.dirty_object_size_in_bytes; in DumpDirtyEntries()
520 class_data.dirty_object_byte_count * 1.0f / object_sizes; in DumpDirtyEntries()
522 const std::string& descriptor = class_data.descriptor; in DumpDirtyEntries()
532 for (mirror::Object* object : class_data.dirty_objects) { in DumpDirtyEntries()
559 ClassData& class_data = class_data_[klass]; in DumpFalseDirtyEntries() local
560 size_t object_sizes = class_data.false_dirty_byte_count; in DumpFalseDirtyEntries()
562 const std::string& descriptor = class_data.descriptor; in DumpFalseDirtyEntries()

12