Home
last modified time | relevance | path

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

12

/art/runtime/
Doat_file_manager.h41 class OatFile; variable
55 const OatFile* RegisterOatFile(std::unique_ptr<const OatFile> oat_file)
58 void UnRegisterAndDeleteOatFile(const OatFile* oat_file)
62 const OatFile* FindOpenedOatFileFromOatLocation(const std::string& oat_location) const
67 const OatFile* FindOpenedOatFileFromDexLocation(const std::string& dex_base_location) const
71 std::vector<const OatFile*> GetBootOatFiles() const;
74 const OatFile* GetPrimaryOatFile() const REQUIRES(!Locks::oat_file_manager_lock_);
78 std::vector<const OatFile*> RegisterImageOatFiles(
100 /*out*/ const OatFile** out_oat_file,
117 /*out*/ const OatFile** out_oat_file,
[all …]
Doat_file-inl.h27 inline const OatQuickMethodHeader* OatFile::OatMethod::GetOatQuickMethodHeader() const { in GetOatQuickMethodHeader()
36 inline uint32_t OatFile::OatMethod::GetOatQuickMethodHeaderOffset() const { in GetOatQuickMethodHeaderOffset()
44 inline uint32_t OatFile::OatMethod::GetQuickCodeSizeOffset() const { in GetQuickCodeSizeOffset()
52 inline size_t OatFile::OatMethod::GetFrameSizeInBytes() const { in GetFrameSizeInBytes()
60 inline uint32_t OatFile::OatMethod::GetCoreSpillMask() const { in GetCoreSpillMask()
68 inline uint32_t OatFile::OatMethod::GetFpSpillMask() const { in GetFpSpillMask()
76 inline uint32_t OatFile::OatMethod::GetVmapTableOffset() const { in GetVmapTableOffset()
81 inline uint32_t OatFile::OatMethod::GetVmapTableOffsetOffset() const { in GetVmapTableOffsetOffset()
89 inline const uint8_t* OatFile::OatMethod::GetVmapTable() const { in GetVmapTable()
101 inline uint32_t OatFile::OatMethod::GetQuickCodeSize() const { in GetQuickCodeSize()
[all …]
Doat_file_assistant.h162 std::unique_ptr<OatFile> GetBestOatFile();
183 static std::unique_ptr<gc::space::ImageSpace> OpenImageSpace(const OatFile* oat_file);
194 const OatFile& oat_file, const char* dex_location);
199 static bool LoadDexFiles(const OatFile& oat_file,
303 const OatFile* GetFile();
328 std::unique_ptr<OatFile> ReleaseFileForUse();
347 std::unique_ptr<OatFile> ReleaseFile();
361 std::unique_ptr<OatFile> file_;
389 bool DexChecksumUpToDate(const OatFile& file, std::string* error_msg);
393 OatStatus GivenOatFileStatus(const OatFile& file);
[all …]
Doat_file_test.cc43 std::unique_ptr<OatFile> odex_file(OatFile::Open(/*zip_fd=*/ -1, in TEST_F()
69 std::unique_ptr<OatFile> odex_file(OatFile::Open(/*zip_fd=*/ -1, in TEST_F()
84 std::unique_ptr<OatFile> odex_file(OatFile::Open(/*zip_fd=*/ -1, in TEST_F()
Doat_file.h95 class OatFile {
105 static OatFile* Open(int zip_fd,
114 static OatFile* Open(int zip_fd, in Open()
131 static OatFile* Open(int zip_fd, in Open()
150 static OatFile* Open(int zip_fd,
162 static OatFile* OpenFromVdex(const std::vector<const DexFile*>& dex_files,
166 virtual ~OatFile();
278 OatClass(const OatFile* oat_file,
285 const OatFile* const oat_file_;
382 OatFile(const std::string& filename, bool executable);
[all …]
Doat_file_manager.cc67 const OatFile* OatFileManager::RegisterOatFile(std::unique_ptr<const OatFile> oat_file) { in RegisterOatFile()
76 for (const std::unique_ptr<const OatFile>& existing : oat_files_) { in RegisterOatFile()
83 const OatFile* ret = oat_file.get(); in RegisterOatFile()
88 void OatFileManager::UnRegisterAndDeleteOatFile(const OatFile* oat_file) { in UnRegisterAndDeleteOatFile()
91 std::unique_ptr<const OatFile> compare(oat_file); in UnRegisterAndDeleteOatFile()
98 const OatFile* OatFileManager::FindOpenedOatFileFromDexLocation( in FindOpenedOatFileFromDexLocation()
101 for (const std::unique_ptr<const OatFile>& oat_file : oat_files_) { in FindOpenedOatFileFromDexLocation()
112 const OatFile* OatFileManager::FindOpenedOatFileFromOatLocation(const std::string& oat_location) in FindOpenedOatFileFromOatLocation()
118 const OatFile* OatFileManager::FindOpenedOatFileFromOatLocationLocked( in FindOpenedOatFileFromOatLocationLocked()
120 for (const std::unique_ptr<const OatFile>& oat_file : oat_files_) { in FindOpenedOatFileFromOatLocationLocked()
[all …]
Doat_file_assistant.cc208 std::unique_ptr<OatFile> OatFileAssistant::GetBestOatFile() { in GetBestOatFile()
222 const OatFile* file = oat_.GetFile(); in GetStatusDump()
243 const OatFile* file = odex_.GetFile(); in GetStatusDump()
260 const OatFile &oat_file, const char *dex_location) { in LoadDexFiles()
270 const OatFile &oat_file, in LoadDexFiles()
358 bool OatFileAssistant::DexChecksumUpToDate(const OatFile& file, std::string* error_msg) { in DexChecksumUpToDate()
393 OatFileAssistant::OatStatus OatFileAssistant::GivenOatFileStatus(const OatFile& file) { in GivenOatFileStatus()
588 const OatFile* odex_file = odex_.GetFile(); in GetRequiredDexChecksums()
606 bool OatFileAssistant::ValidateBootClassPathChecksums(const OatFile& oat_file) { in ValidateBootClassPathChecksums()
701 std::unique_ptr<gc::space::ImageSpace> OatFileAssistant::OpenImageSpace(const OatFile* oat_file) { in OpenImageSpace()
[all …]
Doat_file.cc102 class OatFileBase : public OatFile {
132 OatFileBase(const std::string& filename, bool executable) : OatFile(filename, executable) {} in OatFileBase()
405 inline static bool ReadOatDexFileData(const OatFile& oat_file, in ReadOatDexFileData()
421 static bool ReadIndexBssMapping(OatFile* oat_file, in ReadIndexBssMapping()
1606 OatFile* OatFile::Open(int zip_fd, in Open()
1631 OatFile* with_dlopen = OatFileBase::OpenOatFile<DlOpenOatFile>(zip_fd, in Open()
1660 OatFile* with_internal = OatFileBase::OpenOatFile<ElfOatFile>(zip_fd, in Open()
1673 OatFile* OatFile::Open(int zip_fd, in Open()
1686 OatFile* with_internal = OatFileBase::OpenOatFile<ElfOatFile>(zip_fd, in Open()
1700 OatFile* OatFile::OpenFromVdex(const std::vector<const DexFile*>& dex_files, in OpenFromVdex()
[all …]
Dclass_table.h33 class OatFile; variable
237 bool InsertOatFile(const OatFile* oat_file)
282 bool InsertOatFileLocked(const OatFile* oat_file)
295 std::vector<const OatFile*> oat_files_ GUARDED_BY(lock_);
Doat_file_assistant_test.cc160 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
189 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
262 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
654 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
713 std::unique_ptr<OatFile> best_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
876 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
904 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
944 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
1005 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
1058 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
[all …]
Dart_method.cc453 static const OatFile::OatMethod FindOatMethodFromDexFileFor(ArtMethod* method, bool* found) in FindOatMethodFromDexFileFor()
473 OatFile::OatClass oat_class = OatFile::FindOatClass(*dex_file, in FindOatMethodFromDexFileFor()
477 return OatFile::OatMethod::Invalid(); in FindOatMethodFromDexFileFor()
482 static const OatFile::OatMethod FindOatMethodFor(ArtMethod* method, in FindOatMethodFor()
521 OatFile::OatClass oat_class = OatFile::FindOatClass(declaring_class->GetDexFile(), in FindOatMethodFor()
525 return OatFile::OatMethod::Invalid(); in FindOatMethodFor()
640 OatFile::OatMethod oat_method = in GetOatQuickMethodHeader()
678 OatFile::OatMethod oat_method = FindOatMethodFor(this, pointer_size, &found); in GetOatMethodQuickCode()
Dclass_table-inl.h41 for (const OatFile* oat_file : oat_files_) { in VisitRoots()
59 for (const OatFile* oat_file : oat_files_) { in VisitRoots()
Dclass_loader_context.h35 class OatFile; variable
233 std::vector<std::unique_ptr<OatFile>> opened_oat_files;
Dmodule_exclusion_test.cc173 std::unique_ptr<OatFile> odex_file(OatFile::Open(/*zip_fd=*/ -1, in TEST_F()
Dclass_table.cc236 const OatFile* oat_file = dex_file->GetOatDexFile()->GetOatFile(); in InsertStrongRoot()
245 bool ClassTable::InsertOatFile(const OatFile* oat_file) { in InsertOatFile()
250 bool ClassTable::InsertOatFileLocked(const OatFile* oat_file) { in InsertOatFileLocked()
Ddexopt_test.cc134 std::unique_ptr<OatFile> odex_file(OatFile::Open(/*zip_fd=*/ -1, in GenerateOatForTest()
/art/dexlayout/
Ddexdiag_test.cc53 std::unique_ptr<OatFile> OpenOatAndVdexFiles() { in OpenOatAndVdexFiles()
66 std::unique_ptr<OatFile> oat(OatFile::Open(/*zip_fd=*/ -1, in OpenOatAndVdexFiles()
114 std::unique_ptr<OatFile> oat = OpenOatAndVdexFiles();
126 std::unique_ptr<OatFile> oat = OpenOatAndVdexFiles();
140 std::unique_ptr<OatFile> oat = OpenOatAndVdexFiles();
/art/runtime/gc/space/
Dimage_space.h30 class OatFile; variable
142 const OatFile* oat_file,
148 const OatFile* oat_file,
156 const OatFile* GetOatFile() const;
160 std::unique_ptr<const OatFile> ReleaseOatFile();
268 static bool ValidateOatFile(const OatFile& oat_file, std::string* error_msg);
293 const OatFile* oat_file,
311 std::unique_ptr<OatFile> oat_file_;
315 const OatFile* oat_file_non_owned_;
Dimage_space_test.cc203 std::unique_ptr<OatFile> odex_file(OatFile::Open(/*zip_fd=*/ -1, in TEST_F()
242 std::unique_ptr<OatFile> oat(OatFile::Open(/*zip_fd=*/ -1, in TEST_F()
253 std::unique_ptr<OatFile> oat2(OatFile::Open(/*zip_fd=*/ -1, in TEST_F()
/art/test/661-oat-writer-layout/
Doat_writer_layout.cc58 OatFile::OatClass oat_class = OatFile::FindOatClass(*klass_ptr->GetDexCache()->GetDexFile(), in Java_Main_hasOatCompiledCode()
/art/dex2oat/
Ddex2oat_test.cc125 [](const OatFile&) {}); in __anon390640650102() argument
167 std::unique_ptr<OatFile> odex_file(OatFile::Open(/*zip_fd=*/ -1, in GenerateOdexForTest()
189 std::unique_ptr<OatFile> odex_file(OatFile::Open(/*zip_fd=*/ -1, in GenerateOdexForTest()
531 std::unique_ptr<OatFile> odex_file(OatFile::Open(/*zip_fd=*/ -1, in CheckResult()
554 OatFile::OatClass oat_class = oat_dex_file->GetOatClass(class_def_index); in CheckResult()
800 std::unique_ptr<OatFile> odex_file(OatFile::Open(/*zip_fd=*/ -1, in CheckResult()
969 std::unique_ptr<OatFile> odex_file(OatFile::Open(/*zip_fd=*/ -1, in CheckResult()
996 std::unique_ptr<OatFile> odex_file(OatFile::Open(/*zip_fd=*/ -1, in GetDexFileChecksums()
1113 auto check_oat = [expected_classpath_key](const OatFile& oat_file) { in RunTest()
1154 RunTest(OatFile::kSpecialSharedLibrary, in TEST_F()
[all …]
/art/runtime/native/
Ddalvik_system_DexFile.cc64 /*out*/ const OatFile*& oat_file) { in ConvertJavaArrayToDexFiles()
80 oat_file = reinterpret_cast64<const OatFile*>(long_data[kOatFileIndex]); in ConvertJavaArrayToDexFiles()
91 const OatFile* oat_file, in ConvertDexFilesToJavaArray()
172 const OatFile* oat_file, in CreateCookieFromOatFileManagerResult()
294 const OatFile* oat_file = nullptr; in DexFile_openInMemoryDexFilesNative()
318 const OatFile* oat_file = nullptr; in DexFile_openDexFileNative()
354 const OatFile* oat_file; in DexFile_verifyInBackgroundNative()
376 const OatFile* oat_file; in DexFile_closeDexFile()
427 const OatFile* oat_file; in DexFile_defineClassNative()
487 const OatFile* oat_file = nullptr; in DexFile_getClassNameList()
[all …]
/art/test/692-vdex-inmem-loader/
Dinfo.txt3 OatFile using the data in the vdex.
/art/dex2oat/linker/
Doat_writer_test.cc62 const OatFile::OatMethod& oat_method, in CheckMethod()
274 std::unique_ptr<OatFile> opened_oat_file(OatFile::Open(/*zip_fd=*/ -1, in CheckOatWriteResult()
463 std::unique_ptr<OatFile> oat_file(OatFile::Open(/*zip_fd=*/ -1, in TEST_F()
493 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(accessor.GetClassDefIndex()); in TEST_F()
580 std::unique_ptr<OatFile> oat_file(OatFile::Open(/*zip_fd=*/ -1, in TEST_F()
789 std::unique_ptr<OatFile> opened_oat_file(OatFile::Open(/*zip_fd=*/ -1, in TestZipFileInput()
838 std::unique_ptr<OatFile> opened_oat_file(OatFile::Open(/*zip_fd=*/ -1, in TestZipFileInput()
/art/oatdump/
Doatdump.cc133 OatSymbolizer(const OatFile* oat_file, const std::string& output_name, bool no_bits) : in OatSymbolizer()
251 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(class_def_index); in WalkOatDexFile()
267 void WalkOatClass(const OatFile::OatClass& oat_class, in WalkOatClass()
284 void WalkOatMethod(const OatFile::OatMethod& oat_method, in WalkOatMethod()
326 const OatFile* oat_file_;
382 OatDumper(const OatFile& oat_file, const OatDumperOptions& options) in OatDumper()
717 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(class_def_index); in GetQuickOatCode()
850 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(accessor.GetClassDefIndex()); in AddAllOffsets()
869 void AddOffsets(const OatFile::OatMethod& oat_method) { in AddOffsets()
930 const OatFile::OatClass oat_class = oat_dex_file.GetOatClass(class_def_index); in DumpOatDexFile()
[all …]

12