Home
last modified time | relevance | path

Searched refs:OatFile (Results 1 – 23 of 23) sorted by relevance

/art/runtime/
Doat_file.cc41 void OatFile::CheckLocation(const std::string& location) { in CheckLocation()
45 OatFile* OatFile::OpenWithElfFile(ElfFile* elf_file, in OpenWithElfFile()
48 std::unique_ptr<OatFile> oat_file(new OatFile(location, false)); in OpenWithElfFile()
56 OatFile* OatFile::OpenMemory(std::vector<uint8_t>& oat_contents, in OpenMemory()
61 std::unique_ptr<OatFile> oat_file(new OatFile(location, false)); in OpenMemory()
67 OatFile* OatFile::Open(const std::string& filename, in Open()
75 std::unique_ptr<OatFile> ret; in Open()
105 OatFile* OatFile::OpenWritable(File* file, const std::string& location, std::string* error_msg) { in OpenWritable()
110 OatFile* OatFile::OpenReadable(File* file, const std::string& location, std::string* error_msg) { in OpenReadable()
115 OatFile* OatFile::OpenDlopen(const std::string& elf_filename, in OpenDlopen()
[all …]
Doat_file-inl.h24 inline const OatQuickMethodHeader* OatFile::OatMethod::GetOatQuickMethodHeader() const { in GetOatQuickMethodHeader()
33 inline uint32_t OatFile::OatMethod::GetOatQuickMethodHeaderOffset() const { in GetOatQuickMethodHeaderOffset()
41 inline uint32_t OatFile::OatMethod::GetQuickCodeSize() const { in GetQuickCodeSize()
49 inline uint32_t OatFile::OatMethod::GetQuickCodeSizeOffset() const { in GetQuickCodeSizeOffset()
57 inline size_t OatFile::OatMethod::GetFrameSizeInBytes() const { in GetFrameSizeInBytes()
65 inline uint32_t OatFile::OatMethod::GetCoreSpillMask() const { in GetCoreSpillMask()
73 inline uint32_t OatFile::OatMethod::GetFpSpillMask() const { in GetFpSpillMask()
81 const uint8_t* OatFile::OatMethod::GetGcMap() const { in GetGcMap()
93 uint32_t OatFile::OatMethod::GetGcMapOffset() const { in GetGcMapOffset()
98 uint32_t OatFile::OatMethod::GetGcMapOffsetOffset() const { in GetGcMapOffsetOffset()
[all …]
Doat_file.h41 class OatFile {
45 static OatFile* OpenWithElfFile(ElfFile* elf_file, const std::string& location,
49 static OatFile* Open(const std::string& filename,
61 static OatFile* OpenWritable(File* file, const std::string& location, std::string* error_msg);
63 static OatFile* OpenReadable(File* file, const std::string& location, std::string* error_msg);
66 static OatFile* OpenMemory(std::vector<uint8_t>& oat_contents,
70 ~OatFile();
202 OatClass(const OatFile* oat_file,
209 const OatFile* oat_file_;
227 const OatFile* GetOatFile() const { in GetOatFile()
[all …]
Dclass_linker.h240 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,
431 bool FindOatMethodFor(mirror::ArtMethod* method, OatFile::OatMethod* oat_method)
434 OatFile& GetImageOatFile(gc::space::ImageSpace* space)
486 const OatFile::OatClass* oat_class)
502 bool FindOatClass(const DexFile& dex_file, uint16_t class_def_idx, OatFile::OatClass* oat_class)
559 void LinkCode(Handle<mirror::ArtMethod> method, const OatFile::OatClass* oat_class,
581 const OatFile::OatDexFile* FindOpenedOatDexFileForDexFile(const DexFile& dex_file)
[all …]
Dclass_linker.cc676 const OatFile* ClassLinker::RegisterOatFile(const OatFile* oat_file) { in RegisterOatFile()
688 OatFile& ClassLinker::GetImageOatFile(gc::space::ImageSpace* space) { in GetImageOatFile()
690 OatFile* oat_file = space->ReleaseOatFile(); in GetImageOatFile()
696 const OatFile::OatDexFile* ClassLinker::FindOpenedOatDexFileForDexFile(const DexFile& dex_file) { in FindOpenedOatDexFileForDexFile()
702 const OatFile::OatDexFile* ClassLinker::FindOpenedOatDexFile(const char* oat_location, in FindOpenedOatDexFile()
706 for (const OatFile* oat_file : oat_files_) { in FindOpenedOatDexFile()
715 const OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(dex_location, in FindOpenedOatDexFile()
735 static bool LoadMultiDexFilesFromOatFile(const OatFile* oat_file, in LoadMultiDexFilesFromOatFile()
768 const OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(next_name, nullptr, false); in LoadMultiDexFilesFromOatFile()
844 const OatFile::OatDexFile* oat_dex_file = FindOpenedOatDexFile(oat_location, dex_location, in OpenDexFilesFromOat()
[all …]
Ddex_file.h46 class OatFile; variable
394 const OatFile* oat_file, in Open()
894 const OatFile* GetOatFile() const { in GetOatFile()
933 const OatFile* oat_file,
940 const OatFile* oat_file);
1027 const OatFile* oat_file_;
Druntime.cc621 std::unique_ptr<OatFile> oat_file(OatFile::OpenWithElfFile(elf_file.release(), oat_location, in OpenDexFilesFromImage()
628 for (const OatFile::OatDexFile* oat_dex_file : oat_file->GetOatDexFiles()) { in OpenDexFilesFromImage()
Ddex_file.cc331 const OatFile* oat_file, in OpenMemory()
347 const OatFile* oat_file) in DexFile()
/art/test/117-nopatchoat/
Dnopatchoat.cc27 static const OatFile::OatDexFile* getOatDexFile(jclass cls) { in getOatDexFile()
32 const OatFile::OatDexFile* oat_dex_file = in getOatDexFile()
39 const OatFile::OatDexFile* oat_dex_file = getOatDexFile(cls); in hasExecutableOat()
45 const OatFile::OatDexFile* oat_dex_file = getOatDexFile(cls); in isPic()
51 const OatFile* oat_file = oat_dex_file->GetOatFile(); in isPic()
/art/runtime/gc/space/
Dimage_space.h26 class OatFile; variable
62 const OatFile* GetOatFile() const;
66 OatFile* ReleaseOatFile()
135 OatFile* OpenOatFile(const char* image, std::string* error_msg) const
153 std::unique_ptr<OatFile> oat_file_;
Dimage_space.cc738 OatFile* ImageSpace::OpenOatFile(const char* image_path, std::string* error_msg) const { in OpenOatFile()
744 OatFile* oat_file = OatFile::Open(oat_filename, oat_filename, image_header.GetOatDataBegin(), in OpenOatFile()
773 for (const OatFile::OatDexFile* oat_dex_file : oat_file_->GetOatDexFiles()) { in ValidateOatFile()
793 const OatFile* ImageSpace::GetOatFile() const { in GetOatFile()
797 OatFile* ImageSpace::ReleaseOatFile() { in ReleaseOatFile()
/art/compiler/
Delf_patcher.h43 const OatFile* oat_file, uintptr_t oat_data_begin,
57 const OatFile* oat_file, uintptr_t oat_data_begin, in Patch()
65 ElfPatcher(const CompilerDriver* driver, ElfFile* elf_file, const OatFile* oat_file, in ElfPatcher()
99 uintptr_t GetBaseAddressFor(const OatFile* f) { in GetBaseAddressFor()
113 const OatFile* oat_file_;
Doat_test.cc39 const OatFile::OatMethod& oat_method, in CheckMethod()
138 std::unique_ptr<OatFile> oat_file(OatFile::Open(tmp.GetFilename(), tmp.GetFilename(), nullptr, in TEST_F()
150 const OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(dex_file->GetLocation().c_str(), in TEST_F()
167 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(i); in TEST_F()
Dcommon_compiler_test.cc145 OatFile::OatMethod CommonCompilerTest::CreateOatMethod(const void* code) { in CreateOatMethod()
150 return OatFile::OatMethod(base, code_offset); in CreateOatMethod()
208 OatFile::OatMethod oat_method = CreateOatMethod(method_code); in MakeExecutable()
220 OatFile::OatMethod oat_method = CreateOatMethod(method_code); in MakeExecutable()
226 OatFile::OatMethod oat_method = CreateOatMethod(method_code); in MakeExecutable()
Delf_patcher.cc44 const OatFile* oat_file = class_linker->FindOpenedOatFileFromOatLocation(oat_location); in Patch()
47 oat_file = OatFile::Open(oat_location, oat_location, nullptr, nullptr, false, error_msg); in Patch()
59 bool ElfPatcher::Patch(const CompilerDriver* driver, ElfFile* elf, const OatFile* oat_file, in Patch()
211 const OatFile* target_oat = in PatchElf()
Dcommon_compiler_test.h45 OatFile::OatMethod CreateOatMethod(const void* code);
Delf_writer_mclinker.cc162 …std::unique_ptr<OatFile> oat_file(OatFile::OpenMemory(oat_contents, elf_file_->GetPath(), &error_m… in AddOatInput()
Dimage_writer.h242 OatFile* oat_file_;
Dimage_writer.cc95 oat_file_ = OatFile::OpenReadable(oat_file.get(), oat_location, &error_msg); in Write()
/art/oatdump/
Doatdump.cc142 explicit OatDumper(const OatFile& oat_file, OatDumperOptions* options) in OatDumper()
250 const OatFile::OatDexFile* oat_dex_file = oat_dex_files_[i]; in Dump()
279 const OatFile::OatDexFile* oat_dex_file = oat_dex_files_[i]; in GetQuickOatCode()
292 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(class_def_index); in GetQuickOatCode()
308 const OatFile::OatDexFile* oat_dex_file = oat_dex_files_[i]; in AddAllOffsets()
322 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(class_def_index); in AddAllOffsets()
350 void AddOffsets(const OatFile::OatMethod& oat_method) { in AddOffsets()
361 bool DumpOatDexFile(std::ostream& os, const OatFile::OatDexFile& oat_dex_file) { in DumpOatDexFile()
382 const OatFile::OatClass oat_class = oat_dex_file.GetOatClass(class_def_index); in DumpOatDexFile()
408 bool DumpOatClass(std::ostream& os, const OatFile::OatClass& oat_class, const DexFile& dex_file, in DumpOatClass()
[all …]
/art/test/116-nodex2oat/
Dnodex2oat.cc31 const OatFile::OatDexFile* oat_dex_file = in hasOat()
/art/test/118-noimage-dex2oat/
Dnoimage-dex2oat.cc31 const OatFile::OatDexFile* oat_dex_file = in hasOat()
/art/runtime/native/
Ddalvik_system_DexFile.cc293 std::unique_ptr<const OatFile> oat_file(OatFile::Open(oat_filename, oat_filename, nullptr, in CopyProfileFile()
314 const art::OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(filename, nullptr, in CopyProfileFile()