/art/test/117-nopatchoat/ |
nopatchoat.cc | 51 const OatFile* oat_file = oat_dex_file->GetOatFile(); local 52 return oat_file->IsPic();
|
/art/compiler/ |
elf_patcher.h | 26 #include "oat_file.h" 43 const OatFile* oat_file, uintptr_t oat_data_begin, 57 const OatFile* oat_file, uintptr_t oat_data_begin, 60 return ElfPatcher::Patch(driver, elf_file, oat_file, oat_data_begin, 65 ElfPatcher(const CompilerDriver* driver, ElfFile* elf_file, const OatFile* oat_file, 68 : compiler_driver_(driver), elf_file_(elf_file), oat_file_(oat_file), 112 // The oat_file that is actually loaded.
|
elf_patcher.cc | 44 const OatFile* oat_file = class_linker->FindOpenedOatFileFromOatLocation(oat_location); local 45 if (oat_file == nullptr) { 47 oat_file = OatFile::Open(oat_location, oat_location, nullptr, nullptr, false, error_msg); 48 if (oat_file == nullptr) { 53 CHECK_EQ(class_linker->RegisterOatFile(oat_file), oat_file); 55 return ElfPatcher::Patch(driver, elf_file, oat_file, 56 reinterpret_cast<uintptr_t>(oat_file->Begin()), cb, cb_data, error_msg); 59 bool ElfPatcher::Patch(const CompilerDriver* driver, ElfFile* elf, const OatFile* oat_file, 73 ElfPatcher p(driver, elf, oat_file, oat_header, oat_data_start, cb, cb_data, error_msg) [all...] |
image_test.cc | 62 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())); 107 << oat_file.GetFilename(); 191 oat_file.Unlink();
|
elf_writer_mclinker.cc | 162 std::unique_ptr<OatFile> oat_file(OatFile::OpenMemory(oat_contents, elf_file_->GetPath(), &error_msg)); 163 CHECK(oat_file.get() != NULL) << elf_file_->GetPath() << ": " << error_msg; 165 const char* oat_data_start = reinterpret_cast<const char*>(&oat_file->GetOatHeader()); 166 const size_t oat_data_length = oat_file->GetOatHeader().GetExecutableOffset(); 168 const size_t oat_code_length = oat_file->Size() - oat_data_length; 208 oat_file->Size());
|
oat_test.cc | 27 #include "oat_file-inl.h" 138 std::unique_ptr<OatFile> oat_file(OatFile::Open(tmp.GetFilename(), tmp.GetFilename(), nullptr, 140 ASSERT_TRUE(oat_file.get() != nullptr) << error_msg; 141 const OatHeader& oat_header = oat_file->GetOatHeader(); 150 const OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(dex_file->GetLocation().c_str(),
|
image_writer.cc | 54 #include "oat_file.h" 89 std::unique_ptr<File> oat_file(OS::OpenFileReadWrite(oat_filename.c_str())); 90 if (oat_file.get() == NULL) { 95 oat_file_ = OatFile::OpenReadable(oat_file.get(), oat_location, &error_msg); 147 ElfWriter::GetOatElfInformation(oat_file.get(), oat_loaded_size, oat_data_offset); 151 PatchOatCodeAndMethods(oat_file.get()); 156 if (oat_file->FlushCloseOrErase() != 0) { [all...] |
/art/runtime/ |
oat_file.cc | 17 #include "oat_file.h" 48 std::unique_ptr<OatFile> oat_file(new OatFile(location, false)); 49 oat_file->elf_file_.reset(elf_file); 51 oat_file->begin_ = elf_file->Begin() + hdr->sh_offset; 52 oat_file->end_ = elf_file->Begin() + hdr->sh_size + hdr->sh_offset; 53 return oat_file->Setup(error_msg) ? oat_file.release() : nullptr; 61 std::unique_ptr<OatFile> oat_file(new OatFile(location, false)); 62 oat_file->begin_ = &oat_contents[0]; 63 oat_file->end_ = &oat_contents[oat_contents.size()] [all...] |
class_linker.cc | 49 #include "oat_file.h" 676 const OatFile* ClassLinker::RegisterOatFile(const OatFile* oat_file) { 680 CHECK_NE(oat_file, oat_files_[i]) << oat_file->GetLocation(); 683 VLOG(class_linker) << "Registering " << oat_file->GetLocation(); 684 oat_files_.push_back(oat_file); 685 return oat_file; 690 OatFile* oat_file = space->ReleaseOatFile(); local 691 CHECK_EQ(RegisterOatFile(oat_file), oat_file); local 909 const OatFile* oat_file = open_oat_file.release(); \/\/ Avoid deleting it. local 1238 const OatFile* oat_file = oat_files_[i]; local 1568 const OatFile* oat_file = FindOpenedOatFileFromOatLocation(oat_location); local 1607 OatFile& oat_file = GetImageOatFile(space); local 6016 const OatFile* oat_file = oat_dex_file->GetOatFile(); local [all...] |
oat_file.h | 202 OatClass(const OatFile* oat_file, 258 OatDexFile(const OatFile* oat_file, 327 // Was this oat_file loaded executable?
|
class_linker.h | 32 #include "oat_file.h" 240 const OatFile* RegisterOatFile(const OatFile* oat_file) 289 static bool VerifyOatImageChecksum(const OatFile* oat_file, const InstructionSet instruction_set); 292 static bool VerifyOatChecksums(const OatFile* oat_file, const InstructionSet instruction_set, 295 static bool VerifyOatAndDexFileChecksums(const OatFile* oat_file, 616 bool CheckOatFile(const Runtime* runtime, const OatFile* oat_file, InstructionSet isa, 655 bool VerifyOatWithDexFile(const OatFile* oat_file, const char* dex_location, [all...] |
dex_file.h | 394 const OatFile* oat_file, 396 return OpenMemory(base, size, location, location_checksum, NULL, oat_file, error_msg); 933 const OatFile* oat_file, 940 const OatFile* oat_file); [all...] |
dex_file.cc | 331 const OatFile* oat_file, 335 new DexFile(base, size, location, location_checksum, mem_map, oat_file)); 347 const OatFile* oat_file) 363 oat_file_(oat_file) { [all...] |
runtime.cc | 69 #include "oat_file.h" 621 std::unique_ptr<OatFile> oat_file(OatFile::OpenWithElfFile(elf_file.release(), oat_location, 623 if (oat_file.get() == nullptr) { 628 for (const OatFile::OatDexFile* oat_dex_file : oat_file->GetOatDexFiles()) { 640 Runtime::Current()->GetClassLinker()->RegisterOatFile(oat_file.release()); [all...] |
Android.mk | 133 oat_file.cc \
|
/art/dex2oat/ |
dex2oat.cc | 337 bool PatchOatCode(const CompilerDriver* compiler_driver, File* oat_file, 341 std::unique_ptr<ElfFile> elf_file(ElfFile::Open(oat_file, PROT_READ|PROT_WRITE, 357 File* oat_file, 437 if (!driver->WriteElf(android_root, is_host, dex_files, &oat_writer, oat_file)) { 438 LOG(ERROR) << "Failed to write ELF file " << oat_file->GetPath(); 439 oat_file->Erase(); 446 if (oat_file->Flush() != 0) { 447 PLOG(ERROR) << "Failed flushing oat file " << oat_file->GetPath(); 448 oat_file->Erase(); 455 if (!PatchOatCode(driver.get(), oat_file, oat_location, &error_msg)) 1285 std::unique_ptr<File> oat_file; local [all...] |
/art/patchoat/ |
patchoat.h | 62 PatchOat(ElfFile* oat_file, off_t delta, TimingLogger* timings) 63 : oat_file_(oat_file), delta_(delta), isa_(kNone), timings_(timings) {} 68 PatchOat(InstructionSet isa, ElfFile* oat_file, MemMap* image, 71 : oat_file_(oat_file), image_(image), bitmap_(bitmap), heap_(heap), 108 // Patches oat in place, modifying the oat_file given to the constructor.
|
/art/runtime/native/ |
dalvik_system_DexFile.cc | 293 std::unique_ptr<const OatFile> oat_file(OatFile::Open(oat_filename, oat_filename, nullptr, 296 if (oat_file.get() == nullptr) { 310 *oat_is_pic = oat_file->IsPic(); 314 const art::OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(filename, nullptr, 324 if (ClassLinker::VerifyOatChecksums(oat_file.get(), target_instruction_set, &error_msg)) { 331 ClassLinker::VerifyOatImageChecksum(oat_file.get(), target_instruction_set)) { 346 if (ClassLinker::VerifyOatAndDexFileChecksums(oat_file.get(), filename, location_checksum, 355 && ClassLinker::VerifyOatImageChecksum(oat_file.get(), target_instruction_set)) {
|
/art/oatdump/ |
oatdump.cc | 48 #include "oat_file-inl.h" 142 explicit OatDumper(const OatFile& oat_file, OatDumperOptions* options) 143 : oat_file_(oat_file), 144 oat_dex_files_(oat_file.GetOatDexFiles()), 149 oat_file.Begin()))) { 1044 const OatFile* oat_file = class_linker->FindOpenedOatFileFromOatLocation(oat_location); local 1778 OatFile* oat_file = local [all...] |
/art/runtime/gc/space/ |
image_space.cc | 32 #include "oat_file.h" 744 OatFile* oat_file = OatFile::Open(oat_filename, oat_filename, image_header.GetOatDataBegin(), local 747 if (oat_file == NULL) { 752 uint32_t oat_checksum = oat_file->GetOatHeader().GetChecksum(); 760 int32_t oat_patch_delta = oat_file->GetOatHeader().GetImagePatchDelta(); 768 return oat_file; [all...] |