/art/compiler/dex/ |
H A D | dex_to_dex_compiler.h | 22 #include "dex_file.h" 46 const DexFile& dex_file,
|
/art/runtime/native/ |
H A D | java_lang_DexCache.cc | 19 #include "dex_file.h" 34 const DexFile* dex_file = dex_cache->GetDexFile(); local 35 if (dex_file == nullptr) { 38 void* address = const_cast<void*>(reinterpret_cast<const void*>(dex_file->Begin())); 39 jobject byte_buffer = env->NewDirectByteBuffer(address, dex_file->Size());
|
H A D | dalvik_system_DexFile.cc | 27 #include "dex_file-inl.h" 103 for (auto& dex_file : vec) { 104 dex_file.release(); 188 for (auto& dex_file : dex_files) { 189 if (linker->FindDexCache(soa.Self(), *dex_file, true) != nullptr) { 190 dex_file.release(); 227 for (const DexFile* dex_file : dex_files) { 228 if (dex_file != nullptr) { 231 if (class_linker->FindDexCache(soa.Self(), *dex_file, true) == nullptr) { 234 delete dex_file; [all...] |
H A D | dalvik_system_VMRuntime.cc | 35 #include "dex_file-inl.h" 289 const DexFile* dex_file = dex_cache->GetDexFile(); local 290 const char* utf8 = dex_file->StringDataByIdx(string_idx); 307 const DexFile* dex_file = dex_cache->GetDexFile(); local 308 const char* class_name = dex_file->StringByTypeIdx(type_idx); 336 const DexFile* dex_file = dex_cache->GetDexFile(); local 337 const DexFile::FieldId& field_id = dex_file->GetFieldId(field_idx); 364 const DexFile* dex_file = dex_cache->GetDexFile(); local 365 const DexFile::MethodId& method_id = dex_file->GetMethodId(method_idx); 423 const DexFile* dex_file local 504 const DexFile* dex_file = boot_class_path[i]; local [all...] |
/art/runtime/ |
H A D | oat_file_manager.cc | 27 #include "dex_file-inl.h" 143 DexFileAndClassPair(const DexFile* dex_file, size_t current_class_index, bool from_loaded_oat) argument 144 : cached_descriptor_(GetClassDescriptor(dex_file, current_class_index)), 145 dex_file_(dex_file), 189 static const char* GetClassDescriptor(const DexFile* dex_file, size_t index) { argument 191 const DexFile::ClassDef& class_def = dex_file->GetClassDef(static_cast<uint16_t>(index)); 192 return dex_file->StringByTypeIdx(class_def.class_idx_); 210 std::unique_ptr<const DexFile> dex_file = oat_dex_file->OpenDexFile(&error); local 211 if (dex_file == nullptr) { 213 } else if (dex_file 281 mirror::Object* dex_file = dex_file_field->GetObject(element); local 365 mirror::Object* dex_file; local 399 const DexFile* dex_file = pair.GetDexFile(); local [all...] |
H A D | art_field.cc | 59 mirror::String* ArtField::ResolveGetStringName(Thread* self, const DexFile& dex_file, argument 63 dex_file, string_idx, hs.NewHandle(dex_cache));
|
H A D | class_linker.cc | 47 #include "dex_file-inl.h" 516 for (auto& dex_file : boot_class_path) { 517 if (dex_file.get() == nullptr) { 521 AppendToBootClassPath(self, *dex_file); 522 boot_dex_files_.push_back(std::move(dex_file)); 680 const DexFile& dex_file = java_lang_Object->GetDexFile(); local 681 const DexFile::TypeId* void_type_id = dex_file.FindTypeId("V"); 683 uint16_t void_type_idx = dex_file.GetIndexForTypeId(*void_type_id); 686 mirror::Class* resolved_type = ResolveType(dex_file, void_type_idx, java_lang_Object.Get()); 1087 mirror::Object* dex_file local 1250 const DexFile* const dex_file = dex_cache->GetDexFile(); local 1271 const DexFile* const dex_file = dex_cache->GetDexFile(); local 1506 std::unique_ptr<const DexFile> dex_file; local 1547 std::unique_ptr<const DexFile> dex_file = OpenOatDexFile(oat_file, local 1625 std::unique_ptr<const DexFile> dex_file = OpenOatDexFile(oat_file, local 2062 AllocDexCache(Thread* self, const DexFile& dex_file, LinearAlloc* linear_alloc) argument 2319 mirror::Object* dex_file = dex_file_field->GetObject(element); local 2462 DefineClass(Thread* self, const char* descriptor, size_t hash, Handle<mirror::ClassLoader> class_loader, const DexFile& dex_file, const DexFile::ClassDef& dex_class_def) argument 2597 SizeOfClassWithoutEmbeddedTables(const DexFile& dex_file, const DexFile::ClassDef& dex_class_def) argument 2657 FindOatClass(const DexFile& dex_file, uint16_t class_def_idx, bool* found) argument 2670 GetOatMethodIndexFromMethodIndex(const DexFile& dex_file, uint16_t class_def_idx, uint32_t method_idx) argument 2830 const DexFile& dex_file = klass->GetDexFile(); local 2930 SetupClass(const DexFile& dex_file, const DexFile::ClassDef& dex_class_def, Handle<mirror::Class> klass, mirror::ClassLoader* class_loader) argument 2953 LoadClass(Thread* self, const DexFile& dex_file, const DexFile::ClassDef& dex_class_def, Handle<mirror::Class> klass) argument 3032 LoadClassMembers(Thread* self, const DexFile& dex_file, const uint8_t* class_data, Handle<mirror::Class> klass, const OatFile::OatClass* oat_class) argument 3142 LoadMethod(Thread* self, const DexFile& dex_file, const ClassDataItemIterator& it, Handle<mirror::Class> klass, ArtMethod* dst) argument 3198 AppendToBootClassPath(Thread* self, const DexFile& dex_file) argument 3209 AppendToBootClassPath(const DexFile& dex_file, Handle<mirror::DexCache> dex_cache) argument 3216 RegisterDexFileLocked(const DexFile& dex_file, Handle<mirror::DexCache> dex_cache) argument 3257 RegisterDexFile(const DexFile& dex_file, mirror::ClassLoader* class_loader) argument 3295 RegisterDexFile(const DexFile& dex_file, Handle<mirror::DexCache> dex_cache) argument 3301 FindDexCache(Thread* self, const DexFile& dex_file, bool allow_failure) argument 3308 FindDexCacheLocked(Thread* self, const DexFile& dex_file, bool allow_failure) argument 3746 const DexFile* dex_file = dex_cache->GetDexFile(); local 3941 const DexFile& dex_file = *klass->GetDexCache()->GetDexFile(); local 4031 VerifyClassUsingOatFile(const DexFile& dex_file, mirror::Class* klass, mirror::Class::Status& oat_file_class_status) argument 4639 const DexFile& dex_file = klass->GetDexFile(); local 4825 const DexFile* dex_file = m->GetDexFile(); local 4850 const DexFile* dex_file = m->GetDexFile(); local 5263 DumpClass(std::ostream& os, const DexFile& dex_file, const DexFile::ClassDef& dex_class_def, const char* suffix) argument 5430 LoadSuperAndInterfaces(Handle<mirror::Class> klass, const DexFile& dex_file) argument 7528 ResolveString(const DexFile& dex_file, uint32_t string_idx, Handle<mirror::DexCache> dex_cache) argument 7543 LookupString(const DexFile& dex_file, uint32_t string_idx, Handle<mirror::DexCache> dex_cache) argument 7560 ResolveType(const DexFile& dex_file, uint16_t type_idx, mirror::Class* referrer) argument 7569 ResolveType(const DexFile& dex_file, uint16_t type_idx, Handle<mirror::DexCache> dex_cache, Handle<mirror::ClassLoader> class_loader) argument 7604 ResolveMethod(const DexFile& dex_file, uint32_t method_idx, Handle<mirror::DexCache> dex_cache, Handle<mirror::ClassLoader> class_loader, ArtMethod* referrer, InvokeType type) argument 7811 ResolveMethodWithoutInvokeType(const DexFile& dex_file, uint32_t method_idx, Handle<mirror::DexCache> dex_cache, Handle<mirror::ClassLoader> class_loader) argument 7841 ResolveField(const DexFile& dex_file, uint32_t field_idx, Handle<mirror::DexCache> dex_cache, Handle<mirror::ClassLoader> class_loader, bool is_static) argument 7884 ResolveFieldJLS(const DexFile& dex_file, uint32_t field_idx, Handle<mirror::DexCache> dex_cache, Handle<mirror::ClassLoader> class_loader) argument 7920 const DexFile& dex_file = *dex_cache->GetDexFile(); local 8239 InsertDexFileInToClassLoader(mirror::Object* dex_file, mirror::ClassLoader* class_loader) argument 8296 const DexFile* dex_file = dex_cache->GetDexFile(); local 8362 const DexFile* dex_file = dex_cache->GetDexFile(); local 8373 const DexFile* dex_file = found->second; local [all...] |
H A D | class_linker.h | 33 #include "dex_file.h" 202 const DexFile& dex_file, 247 mirror::String* ResolveString(const DexFile& dex_file, uint32_t string_idx, 253 mirror::String* LookupString(const DexFile& dex_file, uint32_t string_idx, 260 mirror::Class* ResolveType(const DexFile& dex_file, uint16_t type_idx, mirror::Class* referrer) 279 mirror::Class* ResolveType(const DexFile& dex_file, 299 ArtMethod* ResolveMethod(const DexFile& dex_file, 323 ArtMethod* ResolveMethodWithoutInvokeType(const DexFile& dex_file, 343 ArtField* ResolveField(const DexFile& dex_file, uint32_t field_idx, 353 ArtField* ResolveFieldJLS(const DexFile& dex_file, 661 const DexFile* dex_file; member in struct:art::ClassLinker::DexCacheData [all...] |
/art/compiler/driver/ |
H A D | compiler_driver_test.cc | 26 #include "dex_file.h" 72 const DexFile* dex_file = class_path[i]; local 73 CHECK(dex_file != nullptr); 74 MakeDexFileExecutable(class_loader, *dex_file); 78 void MakeDexFileExecutable(jobject class_loader, const DexFile& dex_file) { argument 80 for (size_t i = 0; i < dex_file.NumClassDefs(); i++) { 81 const DexFile::ClassDef& class_def = dex_file.GetClassDef(i); 82 const char* descriptor = dex_file.GetClassDescriptor(class_def); 201 for (const DexFile* dex_file : GetDexFiles(class_loader)) { 202 ASSERT_TRUE(dex_file [all...] |
H A D | compiler_driver.h | 32 #include "dex_file.h" 189 const DexFile* dex_file, 194 const DexFile* dex_file, 204 bool CanAssumeStringIsPresentInDexCache(const DexFile& dex_file, uint32_t string_idx) 221 bool CanEmbedTypeInCode(const DexFile& dex_file, uint32_t type_idx, 262 Handle<mirror::ClassLoader> class_loader, const DexFile* dex_file, 276 inline mirror::DexCache* FindDexCache(const DexFile* dex_file) 349 DexCacheArraysLayout GetDexCacheArraysLayout(const DexFile* dex_file); 382 const VerifiedMethod* GetVerifiedMethod(const DexFile* dex_file, uint32_t method_idx) const; 439 bool ShouldVerifyClassBasedOnProfile(const DexFile& dex_file, uint16_ [all...] |
H A D | compiler_driver-inl.h | 70 Handle<mirror::ClassLoader> class_loader, const DexFile* dex_file, 72 DCHECK_EQ(dex_cache->GetDexFile(), dex_file); 74 *dex_file, field_idx, dex_cache, class_loader, is_static); 89 inline mirror::DexCache* CompilerDriver::FindDexCache(const DexFile* dex_file) { argument 90 return Runtime::Current()->GetClassLinker()->FindDexCache(Thread::Current(), *dex_file, false); 180 const DexFile* dex_file = dex_cache->GetDexFile(); local 189 storage_idx = resolved_member->GetDeclaringClass()->FindTypeIndexInOtherDexFile(*dex_file); 320 *target_method->dex_file, 321 target_method->dex_file->GetMethodId(target_method->dex_method_index).class_idx_, 333 const bool same_dex_file = target_method->dex_file 68 ResolveFieldWithDexFile( const ScopedObjectAccess& soa, Handle<mirror::DexCache> dex_cache, Handle<mirror::ClassLoader> class_loader, const DexFile* dex_file, uint32_t field_idx, bool is_static) argument [all...] |
/art/compiler/optimizing/ |
H A D | block_builder.h | 22 #include "dex_file.h" 30 const DexFile* const dex_file, 34 dex_file_(dex_file), 29 HBasicBlockBuilder(HGraph* graph, const DexFile* const dex_file, const DexFile::CodeItem& code_item) argument
|
H A D | optimizing_compiler.cc | 262 bool CanCompileMethod(uint32_t method_idx, const DexFile& dex_file) const OVERRIDE; 270 const DexFile& dex_file, 275 const DexFile& dex_file) const OVERRIDE { 276 return ArtQuickJniCompileMethod(GetCompilerDriver(), access_flags, method_idx, dex_file); 322 const DexFile& dex_file, 367 const DexFile& dex_file ATTRIBUTE_UNUSED) const { 616 const DexFile& dex_file, 642 if (Compiler::IsPathologicalCase(*code_item, method_idx, dex_file)) { 660 dex_file, 675 dex_file, 608 TryCompile(ArenaAllocator* arena, CodeVectorAllocator* code_allocator, const DexFile::CodeItem* code_item, uint32_t access_flags, InvokeType invoke_type, uint16_t class_def_idx, uint32_t method_idx, jobject class_loader, const DexFile& dex_file, Handle<mirror::DexCache> dex_cache, ArtMethod* method, bool osr) const argument 787 Compile(const DexFile::CodeItem* code_item, uint32_t access_flags, InvokeType invoke_type, uint16_t class_def_idx, uint32_t method_idx, jobject jclass_loader, const DexFile& dex_file, Handle<mirror::DexCache> dex_cache) const argument 879 const DexFile* dex_file = method->GetDexFile(); local [all...] |
/art/test/117-nopatchoat/ |
H A D | nopatchoat.cc | 18 #include "dex_file-inl.h" 33 const DexFile& dex_file = klass->GetDexFile(); local 34 return dex_file.GetOatDexFile();
|
/art/test/595-profile-saving/ |
H A D | profile-saving.cc | 17 #include "dex_file.h" 77 const DexFile* dex_file = soa.Decode<mirror::Class*>(cls)->GetDexCache()->GetDexFile(); local 79 dex_file,
|
/art/test/common/ |
H A D | stack_inspect.cc | 20 #include "dex_file-inl.h" 66 const DexFile& dex_file = klass->GetDexFile(); local 67 const OatFile::OatDexFile* oat_dex_file = dex_file.GetOatDexFile();
|
H A D | runtime_state.cc | 20 #include "dex_file-inl.h" 40 const DexFile& dex_file = klass->GetDexFile(); local 41 const OatFile::OatDexFile* oat_dex_file = dex_file.GetOatDexFile(); 80 const DexFile& dex_file = klass->GetDexFile(); local 81 const OatFile::OatDexFile* oat_dex_file = dex_file.GetOatDexFile();
|
/art/compiler/debug/ |
H A D | elf_symtab_writer.h | 71 DCHECK(info.dex_file != nullptr); 72 std::string name = PrettyMethod(info.dex_method_index, *info.dex_file, with_signature);
|
/art/compiler/dex/quick/ |
H A D | dex_file_method_inliner.cc | 717 uint32_t DexFileMethodInliner::FindClassIndex(const DexFile* dex_file, IndexCache* cache, argument 724 const DexFile::TypeId* type_id = dex_file->FindTypeId(kClassCacheNames[index]); 729 *class_index = dex_file->GetIndexForTypeId(*type_id); 733 uint32_t DexFileMethodInliner::FindNameIndex(const DexFile* dex_file, IndexCache* cache, argument 740 const DexFile::StringId* string_id = dex_file->FindStringId(kNameCacheNames[index]); 745 *name_index = dex_file->GetIndexForStringId(*string_id); 749 uint32_t DexFileMethodInliner::FindProtoIndex(const DexFile* dex_file, IndexCache* cache, argument 757 uint32_t return_index = FindClassIndex(dex_file, cache, proto_def.return_type); 768 uint32_t param_index = FindClassIndex(dex_file, cache, proto_def.params[i]); 777 const DexFile::ProtoId* proto_id = dex_file 787 FindMethodIndex(const DexFile* dex_file, IndexCache* cache, const MethodDef& method_def) argument 817 FindIntrinsics(const DexFile* dex_file) argument [all...] |
H A D | dex_file_method_inliner.h | 25 #include "dex_file.h" 366 static uint32_t FindClassIndex(const DexFile* dex_file, IndexCache* cache, 368 static uint32_t FindNameIndex(const DexFile* dex_file, IndexCache* cache, 370 static uint32_t FindProtoIndex(const DexFile* dex_file, IndexCache* cache, 372 static uint32_t FindMethodIndex(const DexFile* dex_file, IndexCache* cache, 376 * Find all known intrinsic methods in the dex_file and cache their indices. 380 void FindIntrinsics(const DexFile* dex_file) REQUIRES(lock_);
|
/art/compiler/ |
H A D | oat_test.cc | 61 const DexFile& dex_file) 64 compiler_driver_->GetCompiledMethod(MethodReference(&dex_file, 133 for (const DexFile* dex_file : dex_files) { 135 reinterpret_cast<const uint8_t*>(&dex_file->GetHeader()), 136 dex_file->GetHeader().file_size_); 138 dex_file->GetLocation().c_str(), 139 dex_file->GetLocationChecksum())) { 199 for (const std::unique_ptr<const DexFile>& dex_file : opened_dex_files) { 200 dex_files.push_back(dex_file.get()); 202 class_linker->RegisterDexFile(*dex_file, nullpt 394 const DexFile& dex_file = *java_lang_dex_file_; local [all...] |
H A D | image_test.cc | 111 for (const std::unique_ptr<const DexFile>& dex_file : extra_dex_files) { 115 class_linker->AppendToBootClassPath(soa.Self(), *dex_file.get()); 117 class_path.push_back(dex_file.get()); 121 for (const DexFile* dex_file : class_path) { 122 dex_file_locations.push_back(dex_file->GetLocation()); 123 if (dex_file->IsReadOnly()) { 124 dex_file->EnableWrite(); 167 for (const DexFile* dex_file : class_path) { 168 dex_file_to_oat_index_map.emplace(dex_file, image_idx); 215 const DexFile* dex_file local [all...] |
/art/runtime/jit/ |
H A D | offline_profiling_info.cc | 62 if (!AddMethodIndex(GetProfileDexFileKey(method.dex_file->GetLocation()), 63 method.dex_file->GetLocationChecksum(), 550 auto info_it = info_.find(GetProfileDexFileKey(method_ref.dex_file->GetLocation())); 552 if (method_ref.dex_file->GetLocationChecksum() != info_it->second.checksum) { 561 bool ProfileCompilationInfo::ContainsClass(const DexFile& dex_file, uint16_t class_def_idx) const { argument 562 auto info_it = info_.find(GetProfileDexFileKey(dex_file.GetLocation())); 564 if (dex_file.GetLocationChecksum() != info_it->second.checksum) { 610 const DexFile* dex_file = nullptr; local 614 dex_file = (*dex_files)[i]; 620 if (dex_file ! [all...] |
/art/oatdump/ |
H A D | oatdump.cc | 37 #include "dex_file-inl.h" 183 const DexFile* const dex_file = OpenDexFile(oat_dex_file, &error_msg); local 184 if (dex_file == nullptr) { 188 class_def_index < dex_file->NumClassDefs(); 195 WalkOatClass(oat_class, *dex_file, class_def_index); 207 const DexFile& dex_file, 209 const DexFile::ClassDef& class_def = dex_file.GetClassDef(class_def_index); 210 const uint8_t* class_data = dex_file.GetClassData(class_def); 216 ClassDataItemIterator it(dex_file, class_data); 222 dex_file, 206 WalkOatClass(const OatFile::OatClass& oat_class, const DexFile& dex_file, uint32_t class_def_index) argument 231 WalkOatMethod(const OatFile::OatMethod& oat_method, const DexFile& dex_file, uint32_t class_def_index, uint32_t dex_method_index, const DexFile::CodeItem* code_item, uint32_t method_access_flags) argument 494 const DexFile* const dex_file = OpenDexFile(oat_dex_file, &error_msg); local 523 const DexFile* const dex_file = OpenDexFile(oat_dex_file, &error_msg); local 588 const DexFile* const dex_file = OpenDexFile(&oat_dex_file, &error_msg); local 643 const DexFile* const dex_file = OpenDexFile(&oat_dex_file, &error_msg); local 726 DumpOatClass(VariableIndentationOutputStream* vios, const OatFile::OatClass& oat_class, const DexFile& dex_file, const DexFile::ClassDef& class_def, bool* stop_analysis) argument 775 DumpOatMethod(VariableIndentationOutputStream* vios, const DexFile::ClassDef& class_def, uint32_t class_method_index, const OatFile::OatClass& oat_class, const DexFile& dex_file, uint32_t dex_method_idx, const DexFile::CodeItem* code_item, uint32_t method_access_flags, bool* addr_found) argument 1074 DumpDexCode(std::ostream& os, const DexFile& dex_file, const DexFile::CodeItem* code_item) argument 1110 DumpVerifier(VariableIndentationOutputStream* vios, StackHandleScope<1>* hs, uint32_t dex_method_idx, const DexFile* dex_file, const DexFile::ClassDef& class_def, const DexFile::CodeItem* code_item, uint32_t method_access_flags) argument 2283 const DexFile* const dex_file = OpenDexFile(odf, &error_msg); local [all...] |
/art/compiler/linker/ |
H A D | multi_oat_relative_patcher_test.cc | 28 return lhs.dex_file == rhs.dex_file && lhs.dex_method_index == rhs.dex_method_index; 126 const DexFile* dex_file = reinterpret_cast<const DexFile*>(1); local 127 MethodReference ref1(dex_file, 1u); 128 MethodReference ref2(dex_file, 2u); 159 const DexFile* dex_file = reinterpret_cast<const DexFile*>(1); local 160 MethodReference ref1(dex_file, 1u); 161 MethodReference ref2(dex_file, 2u); 162 MethodReference ref3(dex_file, 3u);
|