Home
last modified time | relevance | path

Searched refs:oat_file_ (Results 1 – 13 of 13) sorted by relevance

/art/runtime/
Doat_file.cc446 : oat_file_(oat_file), in OatDexFile()
471 const byte* oat_class_pointer = oat_file_->Begin() + oat_class_offset; in GetOatClass()
472 CHECK_LT(oat_class_pointer, oat_file_->End()) << oat_file_->GetLocation(); in GetOatClass()
475 CHECK_LT(status_pointer, oat_file_->End()) << oat_file_->GetLocation(); in GetOatClass()
481 CHECK_LT(type_pointer, oat_file_->End()) << oat_file_->GetLocation(); in GetOatClass()
486 CHECK_LE(after_type_pointer, oat_file_->End()) << oat_file_->GetLocation(); in GetOatClass()
494 CHECK_LE(bitmap_pointer, oat_file_->End()) << oat_file_->GetLocation(); in GetOatClass()
499 CHECK_LE(methods_pointer, oat_file_->End()) << oat_file_->GetLocation(); in GetOatClass()
501 return OatClass(oat_file_, in GetOatClass()
515 : oat_file_(oat_file), status_(status), type_(type), in OatClass()
[all …]
Doat_file.h209 const OatFile* oat_file_; variable
228 return oat_file_; in GetOatFile()
265 const OatFile* const oat_file_; variable
Ddex_file.h895 return oat_file_; in GetOatFile()
1027 const OatFile* oat_file_; variable
Ddex_file.cc363 oat_file_(oat_file) { in DexFile()
/art/patchoat/
Dpatchoat.cc328 CHECK(oat_file_.get() != nullptr); in WriteElf()
330 size_t expect = oat_file_->Size(); in WriteElf()
331 if (out->WriteFully(reinterpret_cast<char*>(oat_file_->Begin()), expect) && in WriteElf()
608 Elf32_Shdr* patches_sec = oat_file_->FindSectionByName(".oat_patches"); in CheckOatFile()
615 uintptr_t* patches = reinterpret_cast<uintptr_t*>(oat_file_->Begin() + patches_sec->sh_offset); in CheckOatFile()
617 Elf32_Shdr* oat_data_sec = oat_file_->FindSectionByName(".rodata"); in CheckOatFile()
618 Elf32_Shdr* oat_text_sec = oat_file_->FindSectionByName(".text"); in CheckOatFile()
639 Elf32_Shdr *rodata_sec = oat_file_->FindSectionByName(".rodata"); in PatchOatHeader()
643 OatHeader* oat_header = reinterpret_cast<OatHeader*>(oat_file_->Begin() + rodata_sec->sh_offset); in PatchOatHeader()
645 LOG(ERROR) << "Elf file " << oat_file_->GetFile().GetPath() << " has an invalid oat header"; in PatchOatHeader()
[all …]
Dpatchoat.h63 : oat_file_(oat_file), delta_(delta), isa_(kNone), timings_(timings) {} in PatchOat()
71 : oat_file_(oat_file), image_(image), bitmap_(bitmap), heap_(heap), in PatchOat()
142 std::unique_ptr<ElfFile> oat_file_; variable
/art/oatdump/
Doatdump.cc143 : oat_file_(oat_file), in OatDumper()
146 instruction_set_(oat_file_.GetOatHeader().GetInstructionSet()), in OatDumper()
164 const OatHeader& oat_header = oat_file_.GetOatHeader(); in Dump()
185 os << StringPrintf(" (%p)", oat_file_.Begin() + oat_header.offset()); \ in Dump()
238 os << reinterpret_cast<const void*>(oat_file_.Begin()) << "\n\n"; in Dump()
241 os << reinterpret_cast<const void*>(oat_file_.End()) << "\n\n"; in Dump()
245 os << oat_file_.Size() << "\n\n"; in Dump()
261 if (reinterpret_cast<const byte*>(oat_data) < oat_file_.Begin() || in ComputeSize()
262 reinterpret_cast<const byte*>(oat_data) > oat_file_.End()) { in ComputeSize()
266 reinterpret_cast<uintptr_t>(oat_file_.Begin()); in ComputeSize()
[all …]
/art/compiler/
Delf_patcher.h68 : compiler_driver_(driver), elf_file_(elf_file), oat_file_(oat_file), in ElfPatcher()
100 if (f == oat_file_) { in GetBaseAddressFor()
113 const OatFile* oat_file_; variable
Delf_patcher.cc132 CHECK_GE(patch_ptr, reinterpret_cast<uintptr_t>(oat_file_->Begin())); in GetPatchLocation()
133 CHECK_LE(patch_ptr, reinterpret_cast<uintptr_t>(oat_file_->End())); in GetPatchLocation()
134 uintptr_t off = patch_ptr - reinterpret_cast<uintptr_t>(oat_file_->Begin()); in GetPatchLocation()
181 uintptr_t loc = patch_ptr - (reinterpret_cast<uintptr_t>(oat_file_->Begin()) + in SetPatchLocation()
183 CHECK_GT(patch_ptr, reinterpret_cast<uintptr_t>(oat_file_->Begin()) + in SetPatchLocation()
185 CHECK_LT(loc, oat_file_->Size() - oat_header_->GetExecutableOffset()); in SetPatchLocation()
Dimage_writer.cc95 oat_file_ = OatFile::OpenReadable(oat_file.get(), oat_location, &error_msg); in Write()
96 if (oat_file_ == nullptr) { in Write()
101 CHECK_EQ(class_linker->RegisterOatFile(oat_file_), oat_file_); in Write()
104 oat_file_->GetOatHeader().GetInterpreterToInterpreterBridgeOffset(); in Write()
106 oat_file_->GetOatHeader().GetInterpreterToCompiledCodeBridgeOffset(); in Write()
108 jni_dlsym_lookup_offset_ = oat_file_->GetOatHeader().GetJniDlsymLookupOffset(); in Write()
111 oat_file_->GetOatHeader().GetPortableImtConflictTrampolineOffset(); in Write()
113 oat_file_->GetOatHeader().GetPortableResolutionTrampolineOffset(); in Write()
115 oat_file_->GetOatHeader().GetPortableToInterpreterBridgeOffset(); in Write()
118 oat_file_->GetOatHeader().GetQuickGenericJniTrampolineOffset(); in Write()
[all …]
Dimage_writer.h44 : compiler_driver_(compiler_driver), oat_file_(NULL), image_end_(0), in ImageWriter()
159 DCHECK_LT(offset, oat_file_->Size()); in GetOatAddress()
242 OatFile* oat_file_; variable
/art/runtime/gc/space/
Dimage_space.cc697 space->oat_file_.reset(space->OpenOatFile(image_filename, error_msg)); in Init()
698 if (space->oat_file_.get() == nullptr) { in Init()
709 runtime->SetInstructionSet(space->oat_file_->GetOatHeader().GetInstructionSet()); in Init()
772 CHECK(oat_file_.get() != NULL); in ValidateOatFile()
773 for (const OatFile::OatDexFile* oat_dex_file : oat_file_->GetOatDexFiles()) { in ValidateOatFile()
784 oat_file_->GetLocation().c_str(), dex_file_location.c_str(), in ValidateOatFile()
794 return oat_file_.get(); in GetOatFile()
798 CHECK(oat_file_.get() != NULL); in ReleaseOatFile()
799 return oat_file_.release(); in ReleaseOatFile()
Dimage_space.h153 std::unique_ptr<OatFile> oat_file_; variable