• Home
  • Raw
  • Download

Lines Matching refs:oat_file

660 const OatFile* ClassLinker::RegisterOatFile(const OatFile* oat_file) {  in RegisterOatFile()  argument
664 CHECK_NE(oat_file, oat_files_[i]) << oat_file->GetLocation(); in RegisterOatFile()
667 VLOG(class_linker) << "Registering " << oat_file->GetLocation(); in RegisterOatFile()
668 oat_files_.push_back(oat_file); in RegisterOatFile()
669 return oat_file; in RegisterOatFile()
674 OatFile* oat_file = space->ReleaseOatFile(); in GetImageOatFile() local
675 CHECK_EQ(RegisterOatFile(oat_file), oat_file); in GetImageOatFile()
677 return *oat_file; in GetImageOatFile()
690 for (const OatFile* oat_file : oat_files_) { in FindOpenedOatDexFile() local
691 DCHECK(oat_file != nullptr); in FindOpenedOatDexFile()
694 if (oat_file->GetLocation() != oat_location) { in FindOpenedOatDexFile()
699 const OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(dex_location, in FindOpenedOatDexFile()
719 static bool LoadMultiDexFilesFromOatFile(const OatFile* oat_file, in LoadMultiDexFilesFromOatFile() argument
725 if (oat_file == nullptr) { in LoadMultiDexFilesFromOatFile()
752 const OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(next_name, nullptr, false); in LoadMultiDexFilesFromOatFile()
759 oat_file->GetLocation().c_str()); in LoadMultiDexFilesFromOatFile()
783 << "dex_location=" << next_name << " oat_location=" << oat_file->GetLocation().c_str() in LoadMultiDexFilesFromOatFile()
893 const OatFile* oat_file = open_oat_file.release(); // Avoid deleting it. in OpenDexFilesFromOat() local
896 RegisterOatFile(oat_file); in OpenDexFilesFromOat()
899 return oat_file->IsExecutable(); in OpenDexFilesFromOat()
967 std::unique_ptr<OatFile> oat_file(OatFile::Open(oat_location, oat_location, nullptr, in FindOatFileInOatLocationForDexFile() local
970 if (oat_file.get() == nullptr) { in FindOatFileInOatLocationForDexFile()
980 uint32_t actual_image_oat_checksum = oat_file->GetOatHeader().GetImageFileLocationOatChecksum(); in FindOatFileInOatLocationForDexFile()
989 uint32_t actual_image_oat_offset = oat_file->GetOatHeader().GetImageFileLocationOatDataBegin(); in FindOatFileInOatLocationForDexFile()
997 int32_t actual_patch_delta = oat_file->GetOatHeader().GetImagePatchDelta(); in FindOatFileInOatLocationForDexFile()
1005 const OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(dex_location, in FindOatFileInOatLocationForDexFile()
1022 return oat_file.release(); in FindOatFileInOatLocationForDexFile()
1039 std::unique_ptr<OatFile> oat_file(OatFile::Open(oat_location, oat_location, nullptr, in CreateOatFileForDexLocation() local
1042 if (oat_file.get() == nullptr) { in CreateOatFileForDexLocation()
1049 return oat_file.release(); in CreateOatFileForDexLocation()
1052 bool ClassLinker::VerifyOatImageChecksum(const OatFile* oat_file, in VerifyOatImageChecksum() argument
1068 return oat_file->GetOatHeader().GetImageFileLocationOatChecksum() == image_oat_checksum; in VerifyOatImageChecksum()
1071 bool ClassLinker::VerifyOatChecksums(const OatFile* oat_file, in VerifyOatChecksums() argument
1099 const OatHeader& oat_header = oat_file->GetOatHeader(); in VerifyOatChecksums()
1105 oat_file->GetLocation().c_str(), in VerifyOatChecksums()
1106 oat_file->GetOatHeader().GetImageFileLocationOatChecksum(), in VerifyOatChecksums()
1107 oat_file->GetOatHeader().GetImageFileLocationOatDataBegin(), in VerifyOatChecksums()
1108 oat_file->GetOatHeader().GetImagePatchDelta(), in VerifyOatChecksums()
1114 bool ClassLinker::VerifyOatAndDexFileChecksums(const OatFile* oat_file, in VerifyOatAndDexFileChecksums() argument
1119 if (!VerifyOatChecksums(oat_file, instruction_set, error_msg)) { in VerifyOatAndDexFileChecksums()
1123 const OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(dex_location, in VerifyOatAndDexFileChecksums()
1127 oat_file->GetLocation().c_str(), dex_location, dex_location_checksum); in VerifyOatAndDexFileChecksums()
1128 for (const OatFile::OatDexFile* oat_dex_file : oat_file->GetOatDexFiles()) { in VerifyOatAndDexFileChecksums()
1130 oat_file->GetLocation().c_str(), in VerifyOatAndDexFileChecksums()
1139 oat_file->GetLocation().c_str(), in VerifyOatAndDexFileChecksums()
1147 bool ClassLinker::VerifyOatWithDexFile(const OatFile* oat_file, in VerifyOatWithDexFile() argument
1151 CHECK(oat_file != nullptr); in VerifyOatWithDexFile()
1158 const OatFile::OatDexFile* oat_dex_file = oat_file->GetOatDexFile(dex_location, nullptr); in VerifyOatWithDexFile()
1161 "dex file '%s': %s", oat_file->GetLocation().c_str(), dex_location, in VerifyOatWithDexFile()
1167 bool verified = VerifyOatAndDexFileChecksums(oat_file, dex_location, *dex_location_checksum, in VerifyOatWithDexFile()
1172 dex_file.reset(oat_file->GetOatDexFile(dex_location, in VerifyOatWithDexFile()
1187 std::unique_ptr<const OatFile> oat_file(OpenOatFileFromDexLocation(dex_location_str, isa, in FindOatFileContainingDexFileFromDexLocation() local
1192 if (oat_file.get() == nullptr) { in FindOatFileContainingDexFileFromDexLocation()
1196 } else if (oat_file->IsExecutable() && in FindOatFileContainingDexFileFromDexLocation()
1197 !VerifyOatWithDexFile(oat_file.get(), dex_location, in FindOatFileContainingDexFileFromDexLocation()
1200 "'%s': %s", oat_file->GetLocation().c_str(), dex_location, in FindOatFileContainingDexFileFromDexLocation()
1203 } else if (!oat_file->IsExecutable() && in FindOatFileContainingDexFileFromDexLocation()
1205 !VerifyOatImageChecksum(oat_file.get(), isa)) { in FindOatFileContainingDexFileFromDexLocation()
1208 oat_file->GetLocation().c_str(), dex_location)); in FindOatFileContainingDexFileFromDexLocation()
1211 return oat_file.release(); in FindOatFileContainingDexFileFromDexLocation()
1218 const OatFile* oat_file = oat_files_[i]; in FindOpenedOatFileFromOatLocation() local
1219 DCHECK(oat_file != nullptr); in FindOpenedOatFileFromOatLocation()
1220 if (oat_file->GetLocation() == oat_location) { in FindOpenedOatFileFromOatLocation()
1221 return oat_file; in FindOpenedOatFileFromOatLocation()
1476 int32_t ClassLinker::GetRequiredDelta(const OatFile* oat_file, InstructionSet isa) { in GetRequiredDelta() argument
1489 const OatHeader& oat_header = oat_file->GetOatHeader(); in GetRequiredDelta()
1493 bool ClassLinker::CheckOatFile(const OatFile* oat_file, InstructionSet isa, in CheckOatFile() argument
1519 const OatHeader& oat_header = oat_file->GetOatHeader(); in CheckOatFile()
1552 const OatFile* oat_file = FindOpenedOatFileFromOatLocation(oat_location); in FindOatFileFromOatLocation() local
1553 if (oat_file != nullptr) { in FindOatFileFromOatLocation()
1554 return oat_file; in FindOatFileFromOatLocation()
1591 OatFile& oat_file = GetImageOatFile(space); in InitFromImage() local
1592 CHECK_EQ(oat_file.GetOatHeader().GetImageFileLocationOatChecksum(), 0U); in InitFromImage()
1593 CHECK_EQ(oat_file.GetOatHeader().GetImageFileLocationOatDataBegin(), 0U); in InitFromImage()
1594 const char* image_file_location = oat_file.GetOatHeader(). in InitFromImage()
1597 portable_resolution_trampoline_ = oat_file.GetOatHeader().GetPortableResolutionTrampoline(); in InitFromImage()
1598 quick_resolution_trampoline_ = oat_file.GetOatHeader().GetQuickResolutionTrampoline(); in InitFromImage()
1599 portable_imt_conflict_trampoline_ = oat_file.GetOatHeader().GetPortableImtConflictTrampoline(); in InitFromImage()
1600 quick_imt_conflict_trampoline_ = oat_file.GetOatHeader().GetQuickImtConflictTrampoline(); in InitFromImage()
1601 quick_generic_jni_trampoline_ = oat_file.GetOatHeader().GetQuickGenericJniTrampoline(); in InitFromImage()
1602 quick_to_interpreter_bridge_trampoline_ = oat_file.GetOatHeader().GetQuickToInterpreterBridge(); in InitFromImage()
1617 CHECK_EQ(oat_file.GetOatHeader().GetDexFileCount(), in InitFromImage()
1623 const OatFile::OatDexFile* oat_dex_file = oat_file.GetOatDexFile(dex_file_location.c_str(), in InitFromImage()
1625 CHECK(oat_dex_file != nullptr) << oat_file.GetLocation() << " " << dex_file_location; in InitFromImage()
1630 << " from within oat file " << oat_file.GetLocation() in InitFromImage()