Home
last modified time | relevance | path

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

12

/art/runtime/
Doat_file_manager.h39 class OatFile; variable
52 const OatFile* RegisterOatFile(std::unique_ptr<const OatFile> oat_file)
55 void UnRegisterAndDeleteOatFile(const OatFile* oat_file)
59 const OatFile* FindOpenedOatFileFromOatLocation(const std::string& oat_location) const
64 const OatFile* FindOpenedOatFileFromDexLocation(const std::string& dex_base_location) const
73 std::vector<const OatFile*> GetBootOatFiles() const;
76 const OatFile* GetPrimaryOatFile() const REQUIRES(!Locks::oat_file_manager_lock_);
80 std::vector<const OatFile*> RegisterImageOatFiles(std::vector<gc::space::ImageSpace*> spaces)
101 /*out*/ const OatFile** out_oat_file,
114 bool HasCollisions(const OatFile* oat_file,
[all …]
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()
Doat_file-inl.h25 inline const OatQuickMethodHeader* OatFile::OatMethod::GetOatQuickMethodHeader() const { in GetOatQuickMethodHeader()
34 inline uint32_t OatFile::OatMethod::GetOatQuickMethodHeaderOffset() const { in GetOatQuickMethodHeaderOffset()
42 inline uint32_t OatFile::OatMethod::GetQuickCodeSizeOffset() const { in GetQuickCodeSizeOffset()
50 inline size_t OatFile::OatMethod::GetFrameSizeInBytes() const { in GetFrameSizeInBytes()
58 inline uint32_t OatFile::OatMethod::GetCoreSpillMask() const { in GetCoreSpillMask()
66 inline uint32_t OatFile::OatMethod::GetFpSpillMask() const { in GetFpSpillMask()
74 inline uint32_t OatFile::OatMethod::GetVmapTableOffset() const { in GetVmapTableOffset()
79 inline uint32_t OatFile::OatMethod::GetVmapTableOffsetOffset() const { in GetVmapTableOffsetOffset()
87 inline const uint8_t* OatFile::OatMethod::GetVmapTable() const { in GetVmapTable()
99 inline uint32_t OatFile::OatMethod::GetQuickCodeSize() const { in GetQuickCodeSize()
[all …]
Doat_file.h61 class OatFile {
70 static OatFile* OpenWithElfFile(ElfFile* elf_file,
79 static OatFile* Open(const std::string& filename,
93 static OatFile* OpenWritable(File* file, const std::string& location,
97 static OatFile* OpenReadable(File* file, const std::string& location,
101 virtual ~OatFile();
213 OatClass(const OatFile* oat_file,
220 const OatFile* const oat_file_;
304 OatFile(const std::string& filename, bool executable);
370 DISALLOW_COPY_AND_ASSIGN(OatFile);
[all …]
Doat_file_assistant.h190 std::unique_ptr<OatFile> GetBestOatFile();
197 static std::unique_ptr<gc::space::ImageSpace> OpenImageSpace(const OatFile* oat_file);
208 const OatFile& oat_file, const char* dex_location);
312 const OatFile* GetFile();
333 std::unique_ptr<OatFile> ReleaseFileForUse();
348 std::unique_ptr<OatFile> ReleaseFile();
357 std::unique_ptr<OatFile> file_;
391 bool DexChecksumUpToDate(const OatFile& file, std::string* error_msg);
395 OatStatus GivenOatFileStatus(const OatFile& file);
Doat_file.cc89 class OatFileBase : public OatFile {
106 OatFileBase(const std::string& filename, bool executable) : OatFile(filename, executable) {} in OatFileBase()
260 inline static bool ReadOatDexFileData(const OatFile& oat_file, in ReadOatDexFileData()
1020 std::string OatFile::ResolveRelativeEncodedDexLocation( in ResolveRelativeEncodedDexLocation()
1044 OatFile* OatFile::OpenWithElfFile(ElfFile* elf_file, in OpenWithElfFile()
1055 OatFile* OatFile::Open(const std::string& oat_filename, in Open()
1080 OatFile* with_dlopen = OatFileBase::OpenOatFile<DlOpenOatFile>(vdex_filename, in Open()
1109 OatFile* with_internal = OatFileBase::OpenOatFile<ElfOatFile>(vdex_filename, in Open()
1122 OatFile* OatFile::OpenWritable(File* file, in OpenWritable()
1138 OatFile* OatFile::OpenReadable(File* file, in OpenReadable()
[all …]
Doat_file_manager.cc52 const OatFile* OatFileManager::RegisterOatFile(std::unique_ptr<const OatFile> oat_file) { in RegisterOatFile()
57 for (const std::unique_ptr<const OatFile>& existing : oat_files_) { in RegisterOatFile()
65 const OatFile* ret = oat_file.get(); in RegisterOatFile()
70 void OatFileManager::UnRegisterAndDeleteOatFile(const OatFile* oat_file) { in UnRegisterAndDeleteOatFile()
73 std::unique_ptr<const OatFile> compare(oat_file); in UnRegisterAndDeleteOatFile()
80 const OatFile* OatFileManager::FindOpenedOatFileFromDexLocation( in FindOpenedOatFileFromDexLocation()
83 for (const std::unique_ptr<const OatFile>& oat_file : oat_files_) { in FindOpenedOatFileFromDexLocation()
94 const OatFile* OatFileManager::FindOpenedOatFileFromOatLocation(const std::string& oat_location) in FindOpenedOatFileFromOatLocation()
100 const OatFile* OatFileManager::FindOpenedOatFileFromOatLocationLocked( in FindOpenedOatFileFromOatLocationLocked()
102 for (const std::unique_ptr<const OatFile>& oat_file : oat_files_) { in FindOpenedOatFileFromOatLocationLocked()
[all …]
Doat_file_assistant.cc247 std::unique_ptr<OatFile> OatFileAssistant::GetBestOatFile() { in GetBestOatFile()
261 const OatFile* file = oat_.GetFile(); in GetStatusDump()
282 const OatFile* file = odex_.GetFile(); in GetStatusDump()
299 const OatFile& oat_file, const char* dex_location) { in LoadDexFiles()
304 const OatFile::OatDexFile* oat_dex_file = oat_file.GetOatDexFile( in LoadDexFiles()
385 bool OatFileAssistant::DexChecksumUpToDate(const OatFile& file, std::string* error_msg) { in DexChecksumUpToDate()
403 const OatFile::OatDexFile* oat_dex_file = file.GetOatDexFile(dex.c_str(), nullptr); in DexChecksumUpToDate()
419 OatFileAssistant::OatStatus OatFileAssistant::GivenOatFileStatus(const OatFile& file) { in GivenOatFileStatus()
737 class_path = OatFile::kSpecialSharedLibrary; in Dex2Oat()
826 const OatFile* odex_file = odex_.GetFile(); in GetRequiredDexChecksums()
[all …]
Doat_file_assistant_test.cc118 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
399 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
458 std::unique_ptr<OatFile> best_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
489 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
666 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
694 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
734 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
810 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
863 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
891 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); in TEST_F()
[all …]
Dart_method.cc474 static const OatFile::OatMethod FindOatMethodFromDexFileFor(ArtMethod* method, bool* found) in FindOatMethodFromDexFileFor()
494 OatFile::OatClass oat_class = OatFile::FindOatClass(*dex_file, in FindOatMethodFromDexFileFor()
498 return OatFile::OatMethod::Invalid(); in FindOatMethodFromDexFileFor()
503 static const OatFile::OatMethod FindOatMethodFor(ArtMethod* method, in FindOatMethodFor()
542 OatFile::OatClass oat_class = OatFile::FindOatClass(*declaring_class->GetDexCache()->GetDexFile(), in FindOatMethodFor()
546 return OatFile::OatMethod::Invalid(); in FindOatMethodFor()
579 OatFile::OatMethod oat_method = FindOatMethodFor(this, pointer_size, &found); in GetQuickenedInfo()
590 const OatFile::OatDexFile* oat_dex_file = GetDexCache()->GetDexFile()->GetOatDexFile(); in GetQuickenedInfo()
591 const OatFile* oat_file = oat_dex_file->GetOatFile(); in GetQuickenedInfo()
657 OatFile::OatMethod oat_method = in GetOatQuickMethodHeader()
[all …]
Dclass_table.h36 class OatFile; variable
230 bool InsertOatFile(const OatFile* oat_file)
269 bool InsertOatFileLocked(const OatFile* oat_file)
282 std::vector<const OatFile*> oat_files_ GUARDED_BY(lock_);
Dclass_table-inl.h36 for (const OatFile* oat_file : oat_files_) { in VisitRoots()
54 for (const OatFile* oat_file : oat_files_) { in VisitRoots()
Dclass_table.cc241 const OatFile* oat_file = dex_file->GetOatDexFile()->GetOatFile(); in InsertStrongRoot()
250 bool ClassTable::InsertOatFile(const OatFile* oat_file) { in InsertOatFile()
255 bool ClassTable::InsertOatFileLocked(const OatFile* oat_file) { in InsertOatFileLocked()
Ddexopt_test.cc102 std::unique_ptr<OatFile> odex_file(OatFile::Open(oat_location.c_str(), in GenerateOatForTest()
/art/runtime/gc/space/
Dimage_space.h27 class OatFile; variable
52 const OatFile* oat_file,
64 const OatFile* GetOatFile() const;
68 std::unique_ptr<const OatFile> ReleaseOatFile();
143 static bool ValidateOatFile(const OatFile& oat_file, std::string* error_msg);
175 const OatFile* oat_file,
192 std::unique_ptr<OatFile> oat_file_;
196 const OatFile* oat_file_non_owned_;
Dimage_space_test.cc43 std::unique_ptr<OatFile> oat(OatFile::Open(oat_location.c_str(), in TEST_F()
Dimage_space.cc516 const OatFile* oat_file, in Init()
1128 const OatFile* app_oat_file, in RelocateInPlace()
1347 static std::unique_ptr<OatFile> OpenOatFile(const ImageSpace& image, in OpenOatFile()
1355 std::unique_ptr<OatFile> oat_file(OatFile::Open(oat_filename, in OpenOatFile()
1662 const OatFile* boot_oat_file = boot_image_space->GetOatFile(); in LoadBootImage()
1722 const OatFile* oat_file, in CreateFromAppImage()
1731 const OatFile* ImageSpace::GetOatFile() const { in GetOatFile()
1735 std::unique_ptr<const OatFile> ImageSpace::ReleaseOatFile() { in ReleaseOatFile()
1793 bool ImageSpace::ValidateOatFile(const OatFile& oat_file, std::string* error_msg) { in ValidateOatFile()
1794 for (const OatFile::OatDexFile* oat_dex_file : oat_file.GetOatDexFiles()) { in ValidateOatFile()
[all …]
/art/test/117-nopatchoat/
Dnopatchoat.cc31 static const OatFile::OatDexFile* getOatDexFile(jclass cls) { in getOatDexFile()
45 const OatFile::OatDexFile* oat_dex_file = getOatDexFile(cls); in hasExecutableOat()
51 const OatFile::OatDexFile* oat_dex_file = getOatDexFile(cls); in needsRelocation()
57 const OatFile* oat_file = oat_dex_file->GetOatFile(); in needsRelocation()
/art/oatdump/
Doatdump.cc99 static std::map<const OatFile::OatDexFile*,
102 const DexFile* OpenDexFile(const OatFile::OatDexFile* oat_dex_file, std::string* error_msg) { in OpenDexFile()
116 OatSymbolizer(const OatFile* oat_file, const std::string& output_name, bool no_bits) : in OatSymbolizer()
189 std::vector<const OatFile::OatDexFile*> oat_dex_files = oat_file_->GetOatDexFiles(); in Walk()
191 const OatFile::OatDexFile* oat_dex_file = oat_dex_files[i]; in Walk()
197 void WalkOatDexFile(const OatFile::OatDexFile* oat_dex_file) { in WalkOatDexFile()
206 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(class_def_index); in WalkOatDexFile()
222 void WalkOatClass(const OatFile::OatClass& oat_class, in WalkOatClass()
247 void WalkOatMethod(const OatFile::OatMethod& oat_method, in WalkOatMethod()
289 const OatFile* oat_file_;
[all …]
/art/compiler/
Doat_test.cc64 const OatFile::OatMethod& oat_method, in CheckMethod()
419 std::unique_ptr<OatFile> oat_file(OatFile::Open(tmp_oat.GetFilename(), in TEST_F()
438 const OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(dex_file.GetLocation().c_str(), in TEST_F()
459 const OatFile::OatClass oat_class = oat_dex_file->GetOatClass(i); in TEST_F()
549 std::unique_ptr<OatFile> oat_file(OatFile::Open(tmp_oat.GetFilename(), in TEST_F()
626 std::unique_ptr<OatFile> opened_oat_file(OatFile::Open(oat_file.GetFilename(), in TestDexFileInput()
735 std::unique_ptr<OatFile> opened_oat_file(OatFile::Open(oat_file.GetFilename(), in TestZipFileInput()
784 std::unique_ptr<OatFile> opened_oat_file(OatFile::Open(oat_file.GetFilename(), in TestZipFileInput()
Dcommon_compiler_test.h47 OatFile::OatMethod CreateOatMethod(const void* code);
/art/dex2oat/
Ddex2oat_test.cc102 std::unique_ptr<OatFile> odex_file(OatFile::Open(odex_location.c_str(),
119 std::unique_ptr<OatFile> odex_file(OatFile::Open(odex_location.c_str(),
155 class_path = OatFile::kSpecialSharedLibrary; in Dex2Oat()
488 std::unique_ptr<OatFile> odex_file(OatFile::Open(odex_location.c_str(), in CheckResult()
511 OatFile::OatClass oat_class = oat_dex_file->GetOatClass(class_def_index); in CheckResult()
752 std::unique_ptr<OatFile> odex_file(OatFile::Open(odex_location.c_str(), in CheckResult()
/art/runtime/native/
Ddalvik_system_DexFile.cc53 /*out*/ const OatFile*& oat_file) { in ConvertJavaArrayToDexFiles()
69 oat_file = reinterpret_cast<const OatFile*>(static_cast<uintptr_t>(long_data[kOatFileIndex])); in ConvertJavaArrayToDexFiles()
80 const OatFile* oat_file, in ConvertDexFilesToJavaArray()
274 const OatFile* oat_file = nullptr; in DexFile_openDexFileNative()
310 const OatFile* oat_file; in DexFile_closeDexFile()
357 const OatFile* oat_file; in DexFile_defineClassNative()
417 const OatFile* oat_file = nullptr; in DexFile_getClassNameList()
651 const OatFile* oat_file = nullptr; in DexFile_isBackedByOatFile()
687 std::unique_ptr<OatFile> best_oat_file = oat_file_assistant.GetBestOatFile(); in DexFile_getDexFileOutputPaths()
/art/test/common/
Druntime_state.cc59 const OatFile::OatDexFile* oat_dex_file = dex_file.GetOatDexFile(); in Java_Main_hasOatFile()
99 const OatFile::OatDexFile* oat_dex_file = dex_file.GetOatDexFile(); in Java_Main_compiledWithOptimizing()
104 const OatFile* oat_file = oat_dex_file->GetOatFile(); in Java_Main_compiledWithOptimizing()
/art/runtime/gc/collector/
Dimmune_spaces.cc55 const OatFile* const image_oat_file = image_space->GetOatFile(); in CreateLargestImmuneRegion()

12