Searched refs:oat_file (Results 1 - 19 of 19) 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/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...]
H A Doat_file_assistant.h27 #include "oat_file.h"
173 // dex_files will only remain valid as long as the oat_file is valid.
175 const OatFile& oat_file, const char* dex_location);
H A Doat_file.h200 OatClass(const OatFile* oat_file,
312 // Was this oat_file loaded executable?
405 OatDexFile(const OatFile* oat_file,
H A Druntime.cc114 #include "oat_file.h"
732 std::unique_ptr<OatFile> oat_file(OatFile::OpenWithElfFile(elf_file.release(), oat_location,
734 if (oat_file.get() == nullptr) {
739 for (const OatFile::OatDexFile* oat_dex_file : oat_file->GetOatDexFiles()) {
751 Runtime::Current()->GetClassLinker()->RegisterOatFile(oat_file.release());
H A Dclass_linker.h32 #include "oat_file.h"
288 const OatFile* RegisterOatFile(const OatFile* oat_file)
684 bool HasCollisions(const OatFile* oat_file, std::string* error_msg) LOCKS_EXCLUDED(dex_lock_);
H A DAndroid.mk146 oat_file.cc \
/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/compiler/
H A Dimage_test.cc63 ScratchFile oat_file(OS::CreateEmptyFile(oat_filename.c_str()));
89 oat_file.GetFile());
93 // Workound bug that mcld::Linker::emit closes oat_file by reopening as dup_oat.
94 std::unique_ptr<File> dup_oat(OS::OpenFileReadWrite(oat_file.GetFilename().c_str()));
105 << oat_file.GetFilename();
196 oat_file.Unlink();
H A Doat_test.cc33 #include "oat_file-inl.h"
125 std::unique_ptr<OatFile> oat_file(OatFile::Open(tmp.GetFilename(), tmp.GetFilename(), nullptr,
127 ASSERT_TRUE(oat_file.get() != nullptr) << error_msg;
128 const OatHeader& oat_header = oat_file->GetOatHeader();
138 const OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(dex_file.GetLocation().c_str(),
H A Dimage_writer.cc57 #include "oat_file.h"
138 std::unique_ptr<File> oat_file(OS::OpenFileReadWrite(oat_filename.c_str()));
139 if (oat_file.get() == nullptr) {
144 oat_file_ = OatFile::OpenReadable(oat_file.get(), oat_location, nullptr, &error_msg);
148 oat_file->Erase();
171 ElfWriter::GetOatElfInformation(oat_file.get(), &oat_loaded_size, &oat_data_offset);
182 SetOatChecksumFromElfFile(oat_file.get());
184 if (oat_file->FlushCloseOrErase() != 0) {
/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/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...]
/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/dex2oat/
H A Ddex2oat.cc1730 std::unique_ptr<File> oat_file(OS::OpenFileReadWrite(oat_unstripped_.c_str()));
1731 if (oat_file.get() == nullptr) {
1736 if (!ElfWriter::Fixup(oat_file.get(), oat_data_begin)) {
1737 oat_file->Erase();
1738 LOG(ERROR) << "Failed to fixup ELF file " << oat_file->GetPath();
1742 if (oat_file->FlushCloseOrErase()) {
1743 PLOG(ERROR) << "Failed to flush and close fixed ELF file " << oat_file->GetPath();

Completed in 3979 milliseconds