Searched refs:oat_file (Results 1 - 25 of 30) sorted by relevance

12

/art/test/117-nopatchoat/
H A Dnopatchoat.cc22 #include "oat_file.h"
57 const OatFile* oat_file = oat_dex_file->GetOatFile(); local
58 return !oat_file->IsPic()
59 && CompilerFilter::IsAotCompilationEnabled(oat_file->GetCompilerFilter());
/art/runtime/
H A Doat_file_assistant_test.cc118 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
119 EXPECT_EQ(nullptr, oat_file.get());
399 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
400 ASSERT_TRUE(oat_file.get() != nullptr);
401 EXPECT_TRUE(oat_file->IsExecutable());
403 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_location.c_str());
489 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
490 ASSERT_TRUE(oat_file.get() != nullptr);
491 EXPECT_TRUE(oat_file->IsExecutable());
493 dex_files = oat_file_assistant.LoadDexFiles(*oat_file, dex_locatio
666 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
694 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
734 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
810 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
863 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
891 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
920 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
1059 const OatFile* oat_file = nullptr; local
1111 const OatFile* oat_file = task->GetLoadedOatFile(); local
1131 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
1153 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
1249 std::unique_ptr<OatFile> oat_file = oat_file_assistant.GetBestOatFile(); local
[all...]
H A Doat_file_manager.h51 // with the same base address. Returns the oat file pointer from oat_file.
52 const OatFile* RegisterOatFile(std::unique_ptr<const OatFile> oat_file)
55 void UnRegisterAndDeleteOatFile(const OatFile* oat_file)
113 // Return true if there are any class definition collisions in the oat_file.
114 bool HasCollisions(const OatFile* oat_file,
H A Doat_file_manager.cc52 const OatFile* OatFileManager::RegisterOatFile(std::unique_ptr<const OatFile> oat_file) { argument
54 DCHECK(oat_file != nullptr);
56 CHECK(oat_files_.find(oat_file) == oat_files_.end());
58 CHECK_NE(oat_file.get(), existing.get()) << oat_file->GetLocation();
61 CHECK_NE(oat_file->Begin(), existing->Begin()) << "Oat file already mapped at that location";
64 have_non_pic_oat_file_ = have_non_pic_oat_file_ || !oat_file->IsPic();
65 const OatFile* ret = oat_file.get();
66 oat_files_.insert(std::move(oat_file));
70 void OatFileManager::UnRegisterAndDeleteOatFile(const OatFile* oat_file) { argument
241 AddDexFilesFromOat( const OatFile* oat_file, std::vector<const DexFile*>* dex_files, std::vector<std::unique_ptr<const DexFile>>* opened_dex_files) argument
539 HasCollisions(const OatFile* oat_file, jobject class_loader, jobjectArray dex_elements, std::string* error_msg ) const argument
[all...]
H A Dclass_table-inl.h21 #include "oat_file.h"
36 for (const OatFile* oat_file : oat_files_) {
37 for (GcRoot<mirror::Object>& root : oat_file->GetBssGcRoots()) {
54 for (const OatFile* oat_file : oat_files_) {
55 for (GcRoot<mirror::Object>& root : oat_file->GetBssGcRoots()) {
H A Dclass_table.cc20 #include "oat_file.h"
241 const OatFile* oat_file = dex_file->GetOatDexFile()->GetOatFile(); local
242 if (oat_file != nullptr && !oat_file->GetBssGcRoots().empty()) {
243 InsertOatFileLocked(oat_file); // Ignore return value.
250 bool ClassTable::InsertOatFile(const OatFile* oat_file) { argument
252 return InsertOatFileLocked(oat_file);
255 bool ClassTable::InsertOatFileLocked(const OatFile* oat_file) { argument
256 if (ContainsElement(oat_files_, oat_file)) {
259 oat_files_.push_back(oat_file);
[all...]
H A Doat_file_assistant.cc299 const OatFile& oat_file, const char* dex_location) {
304 const OatFile::OatDexFile* oat_dex_file = oat_file.GetOatDexFile(
321 oat_dex_file = oat_file.GetOatDexFile(multidex_dex_location.c_str(), nullptr);
673 std::unique_ptr<File> oat_file(OS::CreateEmptyFile(oat_file_name.c_str()));
674 if (oat_file.get() == nullptr) {
680 if (fchmod(oat_file->Fd(), file_mode) != 0) {
683 oat_file->Erase();
690 args.push_back("--oat-fd=" + std::to_string(oat_file->Fd()));
699 oat_file->Erase();
710 if (oat_file
298 LoadDexFiles( const OatFile& oat_file, const char* dex_location) argument
918 OpenImageSpace(const OatFile* oat_file) argument
[all...]
H A Doat_file_assistant.h29 #include "oat_file.h"
197 static std::unique_ptr<gc::space::ImageSpace> OpenImageSpace(const OatFile* oat_file);
206 // dex_files will only remain valid as long as the oat_file is valid.
208 const OatFile& oat_file, const char* dex_location);
H A Doat_file.cc17 #include "oat_file.h"
51 #include "oat_file-inl.h"
260 inline static bool ReadOatDexFileData(const OatFile& oat_file, argument
265 DCHECK_LE(*oat, oat_file.End());
266 if (UNLIKELY(static_cast<size_t>(oat_file.End() - *oat) < sizeof(T))) {
929 std::unique_ptr<ElfOatFile> oat_file(new ElfOatFile(location, executable));
930 bool success = oat_file->ElfFileOpen(file,
942 if (!oat_file->ComputeFields(requested_base, file->GetPath(), error_msg)) {
946 if (!oat_file->Setup(abs_dex_location, error_msg)) {
950 return oat_file
1280 OatDexFile(const OatFile* oat_file, const std::string& dex_file_location, const std::string& canonical_dex_file_location, uint32_t dex_file_location_checksum, const uint8_t* dex_file_pointer, const uint8_t* lookup_table_data, const uint32_t* oat_class_offsets_pointer, uint8_t* dex_cache_arrays) argument
1401 OatClass(const OatFile* oat_file, mirror::Class::Status status, OatClassType type, uint32_t bitmap_size, const uint32_t* bitmap_pointer, const OatMethodOffsets* methods_pointer) argument
[all...]
H A Dclass_table.h230 bool InsertOatFile(const OatFile* oat_file)
269 bool InsertOatFileLocked(const OatFile* oat_file)
H A Doat_file.h204 return OatClass(/* oat_file */ nullptr,
213 OatClass(const OatFile* oat_file,
330 // Was this oat_file loaded executable?
444 OatDexFile(const OatFile* oat_file,
/art/compiler/
H A Doat_test.cc42 #include "oat_file-inl.h"
127 File* oat_file,
145 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify);
149 File* oat_file,
161 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify);
165 File* oat_file,
177 return DoWriteElf(vdex_file, oat_file, oat_writer, key_value_store, verify);
181 File* oat_file,
189 oat_file);
194 if (!oat_writer.WriteAndOpenDexFiles(kIsVdexEnabled ? vdex_file : oat_file,
126 WriteElf(File* vdex_file, File* oat_file, const std::vector<const DexFile*>& dex_files, SafeMap<std::string, std::string>& key_value_store, bool verify) argument
148 WriteElf(File* vdex_file, File* oat_file, const std::vector<const char*>& dex_filenames, SafeMap<std::string, std::string>& key_value_store, bool verify, ProfileCompilationInfo* profile_compilation_info) argument
164 WriteElf(File* vdex_file, File* oat_file, File&& zip_fd, const char* location, SafeMap<std::string, std::string>& key_value_store, bool verify) argument
180 DoWriteElf(File* vdex_file, File* oat_file, OatWriter& oat_writer, SafeMap<std::string, std::string>& key_value_store, bool verify) argument
605 ScratchFile oat_file, vdex_file(oat_file, ".vdex"); local
725 ScratchFile oat_file, vdex_file(oat_file, ".vdex"); local
771 ScratchFile oat_file, vdex_file(oat_file, ".vdex"); local
835 ScratchFile oat_file, vdex_file(oat_file, ".vdex"); local
[all...]
H A Dimage_test.cc114 for (ScratchFile& oat_file : oat_files) {
115 oat_file.Unlink();
236 for (ScratchFile& oat_file : oat_files) {
240 oat_file.GetFile()));
347 std::unique_ptr<File> oat_file(OS::OpenFileReadWrite(oat_filename));
348 ASSERT_TRUE(oat_file != nullptr);
349 bool success_fixup = ElfWriter::Fixup(oat_file.get(),
352 ASSERT_EQ(oat_file->FlushCloseOrErase(), 0) << "Could not flush and close oat file "
H A Doat_writer.h312 bool ReadDexFileHeader(File* oat_file, OatDexFile* oat_dex_file);
/art/runtime/openjdkjvmti/
H A Dfixed_up_dex_file.cc37 #include "oat_file.h"
59 const art::OatFile* oat_file = oat_dex->GetOatFile(); local
60 if (oat_file == nullptr) {
63 const art::VdexFile* vdex = oat_file->GetVdexFile();
69 for (const art::OatDexFile* cur_oat_dex : oat_file->GetOatDexFiles()) {
/art/runtime/native/
H A Ddalvik_system_DexFile.cc33 #include "oat_file.h"
53 /*out*/ const OatFile*& oat_file) {
69 oat_file = reinterpret_cast<const OatFile*>(static_cast<uintptr_t>(long_data[kOatFileIndex]));
80 const OatFile* oat_file,
94 long_data[kOatFileIndex] = reinterpret_cast<uintptr_t>(oat_file);
274 const OatFile* oat_file = nullptr; local
279 /*out*/ &oat_file,
283 jlongArray array = ConvertDexFilesToJavaArray(env, oat_file, dex_files);
310 const OatFile* oat_file; local
311 if (!ConvertJavaArrayToDexFiles(env, cookie, dex_files, oat_file)) {
49 ConvertJavaArrayToDexFiles( JNIEnv* env, jobject arrayObject, std::vector<const DexFile*>& dex_files, const OatFile*& oat_file) argument
79 ConvertDexFilesToJavaArray(JNIEnv* env, const OatFile* oat_file, std::vector<std::unique_ptr<const DexFile>>& vec) argument
357 const OatFile* oat_file; local
417 const OatFile* oat_file = nullptr; local
651 const OatFile* oat_file = nullptr; local
[all...]
/art/runtime/gc/space/
H A Dimage_space.h52 const OatFile* oat_file,
143 static bool ValidateOatFile(const OatFile& oat_file, std::string* error_msg);
170 // OatFile in /data/dalvik-cache if necessary. If the oat_file is null, it uses the oat file from
175 const OatFile* oat_file,
H A Dimage_space.cc43 #include "oat_file.h"
509 /* oat_file */nullptr,
516 const OatFile* oat_file,
553 if (oat_file != nullptr) {
556 const uint32_t oat_checksum = oat_file->GetOatHeader().GetChecksum();
665 oat_file,
682 if (oat_file == nullptr) {
691 space->oat_file_non_owned_ = oat_file;
705 // If oat_file is null, then it is the boot image space. Use oat_file_non_owned_ from the space
707 CHECK_EQ(oat_file !
1721 CreateFromAppImage(const char* image, const OatFile* oat_file, std::string* error_msg) argument
1793 ValidateOatFile(const OatFile& oat_file, std::string* error_msg) argument
[all...]
/art/test/137-cfi/
H A Dcfi.cc35 #include "oat_file.h"
113 const OatFile* oat_file = image_spaces[0]->GetOatFile(); local
114 CHECK(oat_file != nullptr); // We should have an oat file to go with the image.
115 return oat_file->IsPic();
/art/test/common/
H A Druntime_state.cc104 const OatFile* oat_file = oat_dex_file->GetOatFile(); local
105 CHECK(oat_file != nullptr);
107 const char* cmd_line = oat_file->GetOatHeader().GetStoreValueByKey(OatHeader::kDex2OatCmdLineKey);
/art/dex2oat/
H A Ddex2oat.cc585 for (std::unique_ptr<File>& oat_file : oat_files_) {
586 oat_file.release();
1279 std::unique_ptr<File> oat_file(OS::CreateEmptyFile(oat_filename));
1280 if (oat_file.get() == nullptr) {
1284 if (fchmod(oat_file->Fd(), 0644) != 0) {
1286 oat_file->Erase();
1289 oat_files_.push_back(std::move(oat_file));
1323 std::unique_ptr<File> oat_file(new File(oat_fd_, oat_location_, /* check_usage */ true));
1324 if (oat_file.get() == nullptr) {
1328 oat_file
1937 std::unique_ptr<File>& oat_file = oat_files_[i]; local
[all...]
H A Ddex2oat_test.cc36 #include "oat_file.h"
60 std::unique_ptr<File> oat_file; local
64 oat_file.reset(OS::CreateEmptyFile(odex_location.c_str()));
65 CHECK(oat_file != nullptr) << odex_location;
66 args.push_back("--oat-fd=" + std::to_string(oat_file->Fd()));
78 if (oat_file != nullptr) {
79 CHECK_EQ(oat_file->FlushClose(), 0) << "Could not flush and close oat file";
/art/oatdump/
H A Doatdump.cc60 #include "oat_file-inl.h"
116 OatSymbolizer(const OatFile* oat_file, const std::string& output_name, bool no_bits) : argument
117 oat_file_(oat_file),
345 OatDumper(const OatFile& oat_file, const OatDumperOptions& options) argument
346 : oat_file_(oat_file),
347 oat_dex_files_(oat_file.GetOatDexFiles()),
354 oat_file.Begin(),
355 oat_file.End(),
1821 const OatFile* oat_file = image_space_.GetOatFile(); local
1822 if (oat_file
2787 DumpOatWithRuntime(Runtime* runtime, std::unique_ptr<OatFile> oat_file, OatDumperOptions* options, std::ostream* os) argument
2809 DumpOatWithoutRuntime(OatFile* oat_file, OatDumperOptions* options, std::ostream* os) argument
2845 OatFile* oat_file = OatFile::Open(oat_filename, local
[all...]
/art/runtime/gc/collector/
H A Dimmune_spaces_test.cc21 #include "oat_file.h"
43 std::unique_ptr<DummyOatFile>&& oat_file,
51 oat_file_ = std::move(oat_file);
109 std::unique_ptr<DummyOatFile> oat_file(new DummyOatFile(oat_map->Begin(), oat_map->End()));
134 std::move(oat_file),
41 DummyImageSpace(MemMap* map, accounting::ContinuousSpaceBitmap* live_bitmap, std::unique_ptr<DummyOatFile>&& oat_file, std::unique_ptr<MemMap>&& oat_map) argument
/art/runtime/jit/
H A Dprofile_saver.cc403 const OatFile* oat_file = oat_manager.FindOpenedOatFileFromDexLocation(location); local
404 if (oat_file == nullptr) {
411 CompilerFilter::Filter filter = oat_file->GetCompilerFilter();
415 << location << " oat location: " << oat_file->GetLocation();

Completed in 391 milliseconds

12