Home
last modified time | relevance | path

Searched refs:OatFile (Results 1 – 25 of 45) 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.h160 std::unique_ptr<OatFile> GetBestOatFile();
181 static std::unique_ptr<gc::space::ImageSpace> OpenImageSpace(const OatFile* oat_file);
192 const OatFile& oat_file, const char* dex_location);
197 static bool LoadDexFiles(const OatFile& oat_file,
298 const OatFile* GetFile();
323 std::unique_ptr<OatFile> ReleaseFileForUse();
342 std::unique_ptr<OatFile> ReleaseFile();
356 std::unique_ptr<OatFile> file_;
384 bool DexChecksumUpToDate(const OatFile& file, std::string* error_msg);
388 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_;
385 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.cc201 std::unique_ptr<OatFile> OatFileAssistant::GetBestOatFile() { in GetBestOatFile()
215 const OatFile* file = oat_.GetFile(); in GetStatusDump()
236 const OatFile* file = odex_.GetFile(); in GetStatusDump()
253 const OatFile &oat_file, const char *dex_location) { in LoadDexFiles()
263 const OatFile &oat_file, in LoadDexFiles()
351 bool OatFileAssistant::DexChecksumUpToDate(const OatFile& file, std::string* error_msg) { in DexChecksumUpToDate()
386 OatFileAssistant::OatStatus OatFileAssistant::GivenOatFileStatus(const OatFile& file) { in GivenOatFileStatus()
581 const OatFile* odex_file = odex_.GetFile(); in GetRequiredDexChecksums()
599 bool OatFileAssistant::ValidateBootClassPathChecksums(const OatFile& oat_file) { in ValidateBootClassPathChecksums()
674 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()
406 inline static bool ReadOatDexFileData(const OatFile& oat_file, in ReadOatDexFileData()
422 static bool ReadIndexBssMapping(OatFile* oat_file, in ReadIndexBssMapping()
1619 OatFile* OatFile::Open(int zip_fd, in Open()
1644 OatFile* with_dlopen = OatFileBase::OpenOatFile<DlOpenOatFile>(zip_fd, in Open()
1673 OatFile* with_internal = OatFileBase::OpenOatFile<ElfOatFile>(zip_fd, in Open()
1686 OatFile* OatFile::Open(int zip_fd, in Open()
1699 OatFile* with_internal = OatFileBase::OpenOatFile<ElfOatFile>(zip_fd, in Open()
1713 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_);
Dart_method.cc435 static const OatFile::OatMethod FindOatMethodFromDexFileFor(ArtMethod* method, bool* found) in FindOatMethodFromDexFileFor()
455 OatFile::OatClass oat_class = OatFile::FindOatClass(*dex_file, in FindOatMethodFromDexFileFor()
459 return OatFile::OatMethod::Invalid(); in FindOatMethodFromDexFileFor()
464 static const OatFile::OatMethod FindOatMethodFor(ArtMethod* method, in FindOatMethodFor()
503 OatFile::OatClass oat_class = OatFile::FindOatClass(declaring_class->GetDexFile(), in FindOatMethodFor()
507 return OatFile::OatMethod::Invalid(); in FindOatMethodFor()
622 OatFile::OatMethod oat_method = in GetOatQuickMethodHeader()
660 OatFile::OatMethod oat_method = FindOatMethodFor(this, pointer_size, &found); in GetOatMethodQuickCode()
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()
845 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
902 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
955 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
983 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
1012 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
1122 const OatFile* oat_file = nullptr; in Run()
[all …]
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.cc207 std::unique_ptr<OatFile> odex_file(OatFile::Open(/*zip_fd=*/ -1, in TEST_F()
246 std::unique_ptr<OatFile> oat(OatFile::Open(/*zip_fd=*/ -1, in TEST_F()
257 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()
1107 auto check_oat = [expected_classpath_key](const OatFile& oat_file) { in RunTest()
1148 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()
266 std::unique_ptr<OatFile> opened_oat_file(OatFile::Open(/*zip_fd=*/ -1, in CheckOatWriteResult()
455 std::unique_ptr<OatFile> oat_file(OatFile::Open(/*zip_fd=*/ -1, in TEST_F()
485 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(accessor.GetClassDefIndex()); in TEST_F()
572 std::unique_ptr<OatFile> oat_file(OatFile::Open(/*zip_fd=*/ -1, in TEST_F()
781 std::unique_ptr<OatFile> opened_oat_file(OatFile::Open(/*zip_fd=*/ -1, in TestZipFileInput()
830 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()
721 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(class_def_index); in GetQuickOatCode()
854 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(accessor.GetClassDefIndex()); in AddAllOffsets()
873 void AddOffsets(const OatFile::OatMethod& oat_method) { in AddOffsets()
934 const OatFile::OatClass oat_class = oat_dex_file.GetOatClass(class_def_index); in DumpOatDexFile()
[all …]

12