Home
last modified time | relevance | path

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

/art/runtime/
Doat_file_test.cc33 OatFile::ResolveRelativeEncodedDexLocation( in TEST_F()
37 OatFile::ResolveRelativeEncodedDexLocation( in TEST_F()
41 OatFile::ResolveRelativeEncodedDexLocation( in TEST_F()
45 OatFile::ResolveRelativeEncodedDexLocation( in TEST_F()
49 OatFile::ResolveRelativeEncodedDexLocation( in TEST_F()
53 OatFile::ResolveRelativeEncodedDexLocation( in TEST_F()
57 OatFile::ResolveRelativeEncodedDexLocation( in TEST_F()
61 OatFile::ResolveRelativeEncodedDexLocation( in TEST_F()
78 EXPECT_TRUE(OatFile::CheckStaticDexFileDependencies(nullptr, &error_msg)) << error_msg; in TEST_F()
79 EXPECT_TRUE(OatFile::CheckStaticDexFileDependencies("", &error_msg)) << error_msg; in TEST_F()
[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.cc63 std::string OatFile::ResolveRelativeEncodedDexLocation( in ResolveRelativeEncodedDexLocation()
83 void OatFile::CheckLocation(const std::string& location) { in CheckLocation()
87 OatFile* OatFile::OpenWithElfFile(ElfFile* elf_file, in OpenWithElfFile()
91 std::unique_ptr<OatFile> oat_file(new OatFile(location, false)); in OpenWithElfFile()
102 OatFile* OatFile::Open(const std::string& filename, in Open()
111 std::unique_ptr<OatFile> ret; in Open()
156 OatFile* OatFile::OpenWritable(File* file, const std::string& location, in OpenWritable()
163 OatFile* OatFile::OpenReadable(File* file, const std::string& location, in OpenReadable()
170 OatFile* OatFile::OpenDlopen(const std::string& elf_filename, in OpenDlopen()
175 std::unique_ptr<OatFile> oat_file(new OatFile(location, true)); in OpenDlopen()
[all …]
Doat_file_assistant.h164 std::unique_ptr<OatFile> GetBestOatFile();
175 const OatFile& oat_file, const char* dex_location);
219 OatStatus GivenOatFileStatus(const OatFile& file);
220 bool GivenOatFileIsOutOfDate(const OatFile& file);
221 bool GivenOatFileNeedsRelocation(const OatFile& file);
222 bool GivenOatFileIsUpToDate(const OatFile& file);
328 const OatFile* GetOdexFile();
337 const OatFile* GetOatFile();
400 std::unique_ptr<OatFile> cached_odex_file_;
420 std::unique_ptr<OatFile> cached_oat_file_;
Doat_file.h42 class OatFile FINAL {
48 static OatFile* OpenWithElfFile(ElfFile* elf_file, const std::string& location,
55 static OatFile* Open(const std::string& filename,
68 static OatFile* OpenWritable(File* file, const std::string& location,
72 static OatFile* OpenReadable(File* file, const std::string& location,
76 ~OatFile();
200 OatClass(const OatFile* oat_file,
207 const OatFile* const oat_file_;
269 static OatFile* OpenDlopen(const std::string& elf_filename,
275 static OatFile* OpenElfFile(File* file,
[all …]
Doat_file_assistant.cc167 std::unique_ptr<OatFile> OatFileAssistant::GetBestOatFile() { in GetBestOatFile()
201 return std::unique_ptr<OatFile>(); in GetBestOatFile()
205 const OatFile& oat_file, const char* dex_location) { in LoadDexFiles()
210 const OatFile::OatDexFile* oat_dex_file = oat_file.GetOatDexFile( in LoadDexFiles()
286 const OatFile* odex_file = GetOdexFile(); in OdexFileIsOutOfDate()
303 const OatFile* odex_file = GetOdexFile(); in OdexFileIsUpToDate()
355 const OatFile* oat_file = GetOatFile(); in OatFileIsOutOfDate()
372 const OatFile* oat_file = GetOatFile(); in OatFileIsUpToDate()
382 OatFileAssistant::OatStatus OatFileAssistant::GivenOatFileStatus(const OatFile& file) { in GivenOatFileStatus()
395 bool OatFileAssistant::GivenOatFileIsOutOfDate(const OatFile& file) { in GivenOatFileIsOutOfDate()
[all …]
Doat_file_assistant_test.cc330 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
368 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
417 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
518 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
576 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
667 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
707 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
764 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
783 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
805 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
[all …]
Dclass_linker.h288 const OatFile* RegisterOatFile(const OatFile* oat_file)
296 const OatFile* GetPrimaryOatFile()
488 const OatFile::OatMethod FindOatMethodFor(ArtMethod* method, bool* found)
491 OatFile& GetImageOatFile(gc::space::ImageSpace* space)
539 Handle<mirror::Class> klass, const OatFile::OatClass* oat_class)
554 OatFile::OatClass FindOatClass(const DexFile& dex_file, uint16_t class_def_idx, bool* found)
610 void LinkCode(ArtMethod* method, const OatFile::OatClass* oat_class,
631 const OatFile* FindOpenedOatFileFromOatLocation(const std::string& oat_location)
635 const OatFile* GetBootOatFile() SHARED_LOCKS_REQUIRED(dex_lock_);
684 bool HasCollisions(const OatFile* oat_file, std::string* error_msg) LOCKS_EXCLUDED(dex_lock_);
[all …]
Dclass_linker.cc683 const OatFile* ClassLinker::RegisterOatFile(const OatFile* oat_file) { in RegisterOatFile()
695 OatFile& ClassLinker::GetImageOatFile(gc::space::ImageSpace* space) { in GetImageOatFile()
697 OatFile* oat_file = space->ReleaseOatFile(); in GetImageOatFile()
777 static void AddDexFilesFromOat(const OatFile* oat_file, bool already_loaded, in AddDexFilesFromOat()
810 const OatFile* ClassLinker::GetBootOatFile() { in GetBootOatFile()
818 const OatFile* ClassLinker::GetPrimaryOatFile() { in GetPrimaryOatFile()
820 const OatFile* boot_oat_file = GetBootOatFile(); in GetPrimaryOatFile()
822 for (const OatFile* oat_file : oat_files_) { in GetPrimaryOatFile()
838 bool ClassLinker::HasCollisions(const OatFile* oat_file, std::string* error_msg) { in HasCollisions()
851 const OatFile* boot_oat = GetBootOatFile(); in HasCollisions()
[all …]
Druntime.cc732 std::unique_ptr<OatFile> oat_file(OatFile::OpenWithElfFile(elf_file.release(), oat_location, in OpenDexFilesFromImage()
739 for (const OatFile::OatDexFile* oat_dex_file : oat_file->GetOatDexFiles()) { in OpenDexFilesFromImage()
/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_;
157 const OatFile* oat_file_non_owned_;
Dimage_space.cc786 OatFile* ImageSpace::OpenOatFile(const char* image_path, std::string* error_msg) const { in OpenOatFile()
792 OatFile* oat_file = OatFile::Open(oat_filename, oat_filename, image_header.GetOatDataBegin(), in OpenOatFile()
822 for (const OatFile::OatDexFile* oat_dex_file : oat_file_->GetOatDexFiles()) { in ValidateOatFile()
843 const OatFile* ImageSpace::GetOatFile() const { in GetOatFile()
848 OatFile* ImageSpace::ReleaseOatFile() { in ReleaseOatFile()
/art/test/117-nopatchoat/
Dnopatchoat.cc27 static const OatFile::OatDexFile* getOatDexFile(jclass cls) { in getOatDexFile()
35 const OatFile::OatDexFile* oat_dex_file = getOatDexFile(cls); in hasExecutableOat()
41 const OatFile::OatDexFile* oat_dex_file = getOatDexFile(cls); in isPic()
47 const OatFile* oat_file = oat_dex_file->GetOatFile(); in isPic()
/art/oatdump/
Doatdump.cc85 explicit RodataWriter(const OatFile* oat_file) : oat_file_(oat_file) {} in RodataWriter()
93 const OatFile* oat_file_;
98 explicit TextWriter(const OatFile* oat_file) : oat_file_(oat_file) {} in TextWriter()
107 const OatFile* oat_file_;
110 explicit OatSymbolizer(const OatFile* oat_file, const std::string& output_name) : in OatSymbolizer()
117 const OatFile::OatMethod&,
152 std::vector<const OatFile::OatDexFile*> oat_dex_files = oat_file_->GetOatDexFiles(); in Walk()
154 const OatFile::OatDexFile* oat_dex_file = oat_dex_files[i]; in Walk()
160 void WalkOatDexFile(const OatFile::OatDexFile* oat_dex_file, Callback callback) { in WalkOatDexFile()
170 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(class_def_index); in WalkOatDexFile()
[all …]
/art/compiler/
Doat_test.cc45 const OatFile::OatMethod& oat_method, in CheckMethod()
125 std::unique_ptr<OatFile> oat_file(OatFile::Open(tmp.GetFilename(), tmp.GetFilename(), nullptr, in TEST_F()
138 const OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(dex_file.GetLocation().c_str(), in TEST_F()
158 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(i); in TEST_F()
Dcommon_compiler_test.h46 OatFile::OatMethod CreateOatMethod(const void* code);
Dimage_writer.h308 OatFile* oat_file_;
Dimage_writer.cc144 oat_file_ = OatFile::OpenReadable(oat_file.get(), oat_location, nullptr, &error_msg); in Write()
/art/test/116-nodex2oat/
Dnodex2oat.cc31 const OatFile::OatDexFile* oat_dex_file = dex_file.GetOatDexFile(); in hasOat()
/art/test/118-noimage-dex2oat/
Dnoimage-dex2oat.cc31 const OatFile::OatDexFile* oat_dex_file = dex_file.GetOatDexFile(); in hasOat()
/art/compiler/jit/
Djit_compiler.cc208 OatFile::OatMethod* out_method) { in AddToCodeCache()
253 *out_method = OatFile::OatMethod(base, code_offset); in AddToCodeCache()
269 OatFile::OatMethod oat_method(nullptr, 0); in MakeExecutable()
Djit_compiler.h45 OatFile::OatMethod* out_method) SHARED_LOCKS_REQUIRED(Locks::mutator_lock_);
/art/test/137-cfi/
Dcfi.cc97 const OatFile* oat_file = image_space->GetOatFile(); in IsPicImage()
/art/dex2oat/
Ddex2oat.cc1376 OatFile::EncodeDexFileDependencies(class_path_files)); in Compile()