/art/runtime/ |
oat_file.cc | 17 #include "oat_file.h" 54 UniquePtr<OatFile> oat_file(new OatFile(location)); 55 oat_file->begin_ = &oat_contents[0]; 56 oat_file->end_ = &oat_contents[oat_contents.size()]; 57 return oat_file->Setup() ? oat_file.release() : NULL; 97 UniquePtr<OatFile> oat_file(new OatFile(location)); 98 bool success = oat_file->Dlopen(elf_filename, requested_base); 102 return oat_file.release(); 110 UniquePtr<OatFile> oat_file(new OatFile(location)) [all...] |
class_linker.cc | 45 #include "oat_file.h" 647 void ClassLinker::RegisterOatFile(const OatFile& oat_file) { 649 RegisterOatFileLocked(oat_file); 652 void ClassLinker::RegisterOatFileLocked(const OatFile& oat_file) { 656 CHECK_NE(&oat_file, oat_files_[i]) << oat_file.GetLocation(); 659 VLOG(class_linker) << "Registering " << oat_file.GetLocation(); 660 oat_files_.push_back(&oat_file); 665 OatFile& oat_file = space->ReleaseOatFile(); local 667 RegisterOatFileLocked(oat_file); 680 const OatFile* oat_file = oat_files_[i]; local 826 const OatFile* oat_file = OatFile::Open(oat_location, oat_location, NULL, local 967 const OatFile* oat_file = oat_files_[i]; local 982 const OatFile* oat_file = FindOpenedOatFileFromOatLocation(oat_location); local 1020 OatFile& oat_file = GetImageOatFile(space); local 1507 const OatFile* oat_file = FindOpenedOatFileForDexFile(dex_file); local 2541 const OatFile* oat_file = FindOpenedOatFileForDexFile(dex_file); local [all...] |
oat_file.h | 156 OatClass(const OatFile* oat_file, 191 OatDexFile(const OatFile* oat_file,
|
class_linker.h | 29 #include "oat_file.h" 218 void RegisterOatFile(const OatFile& oat_file) 280 static bool VerifyOatFileChecksums(const OatFile* oat_file, 437 void RegisterOatFileLocked(const OatFile& oat_file) EXCLUSIVE_LOCKS_REQUIRED(dex_lock_) 511 const DexFile* VerifyAndOpenDexFileFromOatFile(const OatFile* oat_file,
|
Android.mk | 113 oat_file.cc \
|
/art/runtime/native/ |
dalvik_system_DexFile.cc | 230 UniquePtr<const OatFile> oat_file(OatFile::Open(odex_filename, odex_filename, NULL, false)); 231 if (oat_file.get() != NULL) { 233 const art::OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(filename.c_str(), NULL); 248 if (ClassLinker::VerifyOatFileChecksums(oat_file.get(), filename.c_str(), location_checksum)) { 260 oat_file.reset(OatFile::Open(cache_location, filename.c_str(), NULL, false)); 261 if (oat_file.get() == NULL) { 271 if (oat_file->GetOatHeader().GetImageFileLocationOatChecksum() != image_header.GetOatChecksum()) { 278 if (oat_file->GetOatHeader().GetImageFileLocationOatDataBegin() 296 if (!ClassLinker::VerifyOatFileChecksums(oat_file.get(), filename.c_str(), location_checksum)) {
|
/art/dex2oat/ |
dex2oat.cc | 231 File* oat_file, 289 if (!driver->WriteElf(android_root, is_host, dex_files, oat_writer, oat_file)) { 290 LOG(ERROR) << "Failed to write ELF file " << oat_file->GetPath(); 314 UniquePtr<File> oat_file(OS::OpenFileReadWrite(oat_filename.c_str())); 315 if (oat_file.get() == NULL) { 319 if (!ElfFixup::Fixup(oat_file.get(), oat_data_begin)) { 320 LOG(ERROR) << "Failed to fixup ELF file " << oat_file->GetPath(); 814 UniquePtr<File> oat_file; local 817 oat_file.reset(OS::CreateEmptyFile(oat_unstripped.c_str())); 822 oat_file.reset(new File(oat_fd, oat_location)) [all...] |
/art/compiler/ |
oat_test.cc | 22 #include "oat_file.h" 103 UniquePtr<OatFile> oat_file(OatFile::Open(tmp.GetFilename(), tmp.GetFilename(), NULL, false)); 104 ASSERT_TRUE(oat_file.get() != NULL); 105 const OatHeader& oat_header = oat_file->GetOatHeader(); 114 const OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(dex_file->GetLocation(),
|
elf_writer_mclinker.cc | 156 UniquePtr<OatFile> oat_file(OatFile::OpenMemory(oat_contents, elf_file_->GetPath())); 157 CHECK(oat_file.get() != NULL) << elf_file_->GetPath(); 159 const char* oat_data_start = reinterpret_cast<const char*>(&oat_file->GetOatHeader()); 160 const size_t oat_data_length = oat_file->GetOatHeader().GetExecutableOffset(); 162 const size_t oat_code_length = oat_file->Size() - oat_data_length; 203 oat_file->Size());
|
image_writer.cc | 48 #include "oat_file.h" 80 UniquePtr<File> oat_file(OS::OpenFileReadWrite(oat_filename.c_str())); 81 if (oat_file.get() == NULL) { 85 oat_file_ = OatFile::OpenWritable(oat_file.get(), oat_location); 136 ElfWriter::GetOatElfInformation(oat_file.get(), oat_loaded_size, oat_data_offset);
|
/art/runtime/gc/space/ |
image_space.cc | 28 #include "oat_file.h" 257 OatFile* oat_file = OatFile::Open(oat_filename, oat_filename, image_header.GetOatDataBegin(), local 259 if (oat_file == NULL) { 263 uint32_t oat_checksum = oat_file->GetOatHeader().GetChecksum(); 271 return oat_file;
|
/art/oatdump/ |
oatdump.cc | 99 explicit OatDumper(const std::string& host_prefix, const OatFile& oat_file) 101 oat_file_(oat_file), 102 oat_dex_files_(oat_file.GetOatDexFiles()), 730 const OatFile* oat_file = class_linker->FindOatFileFromOatLocation(oat_location); local 731 if (oat_file == NULL) { 737 stats_.oat_file_bytes = oat_file->Size(); 739 oat_dumper_.reset(new OatDumper(host_prefix_, *oat_file)); 741 for (const OatFile::OatDexFile* oat_dex_file : oat_file->GetOatDexFiles()) { 1415 OatFile* oat_file = local [all...] |