Searched defs:oat_file (Results 1 - 10 of 10) sorted by relevance

/art/test/117-nopatchoat/
H A Dnopatchoat.cc47 const OatFile* oat_file = oat_dex_file->GetOatFile(); local
48 return oat_file->IsPic();
/art/test/137-cfi/
H A Dcfi.cc34 #include "oat_file.h"
97 const OatFile* oat_file = image_space->GetOatFile(); local
98 CHECK(oat_file != nullptr); // We should have an oat file to go with the image.
99 return oat_file->IsPic();
/art/patchoat/
H A Dpatchoat.h62 PatchOat(ElfFile* oat_file, off_t delta, TimingLogger* timings) argument
63 : oat_file_(oat_file), image_(nullptr), bitmap_(nullptr), heap_(nullptr), delta_(delta),
69 PatchOat(InstructionSet isa, ElfFile* oat_file, MemMap* image, argument
72 : oat_file_(oat_file), image_(image), bitmap_(bitmap), heap_(heap),
109 // Patches oat in place, modifying the oat_file given to the constructor.
112 bool PatchElf(ElfFileImpl* oat_file);
114 bool PatchOatHeader(ElfFileImpl* oat_file);
H A Dpatchoat.cc703 bool PatchOat::PatchOatHeader(ElfFileImpl* oat_file) { argument
704 auto rodata_sec = oat_file->FindSectionByName(".rodata");
708 OatHeader* oat_header = reinterpret_cast<OatHeader*>(oat_file->Begin() + rodata_sec->sh_offset);
710 LOG(ERROR) << "Elf file " << oat_file->GetFile().GetPath() << " has an invalid oat header";
725 bool PatchOat::PatchElf(ElfFileImpl* oat_file) { argument
729 if (!oat_file->ApplyOatPatchesTo(".text", delta_)) {
734 if (!PatchOatHeader<ElfFileImpl>(oat_file)) {
739 for (unsigned int i = 0; i < oat_file->GetProgramHeaderNum(); ++i) {
740 auto hdr = oat_file->GetProgramHeader(i);
757 oat_file
[all...]
/art/runtime/
H A Doat_file_assistant_test.cc330 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
331 EXPECT_EQ(nullptr, oat_file.get());
368 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
369 ASSERT_TRUE(oat_file.get() != nullptr);
370 EXPECT_TRUE(oat_file->IsExecutable());
372 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str());
417 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
418 ASSERT_TRUE(oat_file.get() != nullptr);
419 EXPECT_TRUE(oat_file->IsExecutable());
421 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_locatio
518 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
576 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
667 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
707 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
764 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
783 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
805 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
994 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
1016 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
[all...]
H A Doat_file.cc17 #include "oat_file.h"
91 std::unique_ptr<OatFile> oat_file(new OatFile(location, false));
92 oat_file->elf_file_.reset(elf_file);
96 oat_file->begin_ = elf_file->Begin() + offset;
97 oat_file->end_ = elf_file->Begin() + size + offset;
99 return oat_file->Setup(abs_dex_location, error_msg) ? oat_file.release() : nullptr;
175 std::unique_ptr<OatFile> oat_file(new OatFile(location, true));
176 bool success = oat_file->Dlopen(elf_filename, requested_base, abs_dex_location, error_msg);
180 return oat_file
600 OatDexFile(const OatFile* oat_file, const std::string& dex_file_location, const std::string& canonical_dex_file_location, uint32_t dex_file_location_checksum, const uint8_t* dex_file_pointer, const uint32_t* oat_class_offsets_pointer) argument
671 OatClass(const OatFile* oat_file, mirror::Class::Status status, OatClassType type, uint32_t bitmap_size, const uint32_t* bitmap_pointer, const OatMethodOffsets* methods_pointer) argument
[all...]
H A Doat_file_assistant.cc205 const OatFile& oat_file, const char* dex_location) {
210 const OatFile::OatDexFile* oat_dex_file = oat_file.GetOatDexFile(
214 << oat_file.GetLocation() << " for dex location " << dex_location;
228 oat_dex_file = oat_file.GetOatDexFile(secondary_dex_location.c_str(), nullptr, false);
355 const OatFile* oat_file = GetOatFile(); local
356 if (oat_file == nullptr) {
359 cached_oat_file_is_out_of_date_ = GivenOatFileIsOutOfDate(*oat_file);
372 const OatFile* oat_file = GetOatFile(); local
373 if (oat_file == nullptr) {
376 cached_oat_file_is_up_to_date_ = GivenOatFileIsUpToDate(*oat_file);
204 LoadDexFiles( const OatFile& oat_file, const char* dex_location) argument
[all...]
H A Dclass_linker.cc57 #include "oat_file.h"
683 const OatFile* ClassLinker::RegisterOatFile(const OatFile* oat_file) { argument
687 CHECK_NE(oat_file, oat_files_[i]) << oat_file->GetLocation();
690 VLOG(class_linker) << "Registering " << oat_file->GetLocation();
691 oat_files_.push_back(oat_file);
692 return oat_file;
697 OatFile* oat_file = space->ReleaseOatFile(); local
698 CHECK_EQ(RegisterOatFile(oat_file), oat_file); local
777 AddDexFilesFromOat(const OatFile* oat_file, bool already_loaded, std::priority_queue<DexFileAndClassPair>* heap) argument
838 HasCollisions(const OatFile* oat_file, std::string* error_msg) argument
945 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
1010 const OatFile* oat_file = oat_files_[i]; local
1111 OatFile& oat_file = GetImageOatFile(space); local
5782 const OatFile* oat_file = oat_dex_file->GetOatFile(); local
[all...]
/art/runtime/gc/space/
H A Dimage_space.cc35 #include "oat_file.h"
792 OatFile* oat_file = OatFile::Open(oat_filename, oat_filename, image_header.GetOatDataBegin(), local
796 if (oat_file == nullptr) {
801 uint32_t oat_checksum = oat_file->GetOatHeader().GetChecksum();
809 int32_t oat_patch_delta = oat_file->GetOatHeader().GetImagePatchDelta();
817 return oat_file;
/art/oatdump/
H A Doatdump.cc50 #include "oat_file-inl.h"
85 explicit RodataWriter(const OatFile* oat_file) : oat_file_(oat_file) {} argument
98 explicit TextWriter(const OatFile* oat_file) : oat_file_(oat_file) {} argument
110 explicit OatSymbolizer(const OatFile* oat_file, const std::string& output_name) : argument
111 oat_file_(oat_file), builder_(nullptr),
346 explicit OatDumper(const OatFile& oat_file, const OatDumperOptions& options) argument
347 : oat_file_(oat_file),
348 oat_dex_files_(oat_file
1460 const OatFile* oat_file = class_linker->FindOpenedOatFileFromOatLocation(oat_location); local
2210 DumpOatWithRuntime(Runtime* runtime, OatFile* oat_file, OatDumperOptions* options, std::ostream* os) argument
2251 DumpOatWithoutRuntime(OatFile* oat_file, OatDumperOptions* options, std::ostream* os) argument
2265 OatFile* oat_file = OatFile::Open(oat_filename, oat_filename, nullptr, nullptr, false, local
2281 OatFile* oat_file = OatFile::Open(oat_filename, oat_filename, nullptr, nullptr, false, local
[all...]

Completed in 4031 milliseconds