Home
last modified time | relevance | path

Searched refs:VdexFile (Results 1 – 18 of 18) sorted by relevance

/art/runtime/
Dvdex_file.cc46 constexpr uint8_t VdexFile::VerifierDepsHeader::kVdexInvalidMagic[4];
47 constexpr uint8_t VdexFile::VerifierDepsHeader::kVdexMagic[4];
48 constexpr uint8_t VdexFile::VerifierDepsHeader::kVerifierDepsVersion[4];
49 constexpr uint8_t VdexFile::VerifierDepsHeader::kDexSectionVersion[4];
50 constexpr uint8_t VdexFile::VerifierDepsHeader::kDexSectionVersionEmpty[4];
52 bool VdexFile::VerifierDepsHeader::IsMagicValid() const { in IsMagicValid()
56 bool VdexFile::VerifierDepsHeader::IsVerifierDepsVersionValid() const { in IsVerifierDepsVersionValid()
60 bool VdexFile::VerifierDepsHeader::IsDexSectionVersionValid() const { in IsDexSectionVersionValid()
65 bool VdexFile::VerifierDepsHeader::HasDexSection() const { in HasDexSection()
69 VdexFile::VerifierDepsHeader::VerifierDepsHeader(uint32_t number_of_dex_files, in VerifierDepsHeader()
[all …]
Dvdex_file_test.cc34 std::unique_ptr<VdexFile> vdex = VdexFile::Open(tmp.GetFd(), in TEST_F()
43 vdex = VdexFile::Open( in TEST_F()
Dvdex_file.h64 class VdexFile {
159 friend class VdexFile; // For updating quickening_info_size_. member
179 explicit VdexFile(MemMap&& mmap) : mmap_(std::move(mmap)) {} in VdexFile() function
183 static std::unique_ptr<VdexFile> OpenAtAddress(uint8_t* mmap_addr,
194 static std::unique_ptr<VdexFile> OpenAtAddress(uint8_t* mmap_addr,
206 static std::unique_ptr<VdexFile> Open(const std::string& vdex_filename, in Open()
222 static std::unique_ptr<VdexFile> Open(int file_fd, in Open()
394 DISALLOW_COPY_AND_ASSIGN(VdexFile);
Doat_file.h50 class VdexFile; variable
163 std::unique_ptr<VdexFile>&& vdex_file,
372 VdexFile* GetVdexFile() const { in GetVdexFile()
394 std::unique_ptr<VdexFile> vdex_;
Doat_file_assistant.cc318 bool OatFileAssistant::DexChecksumUpToDate(const VdexFile& file, std::string* error_msg) { in DexChecksumUpToDate()
400 VdexFile* vdex = file.GetVdexFile(); in GivenOatFileStatus()
724 std::unique_ptr<VdexFile> vdex; in Status()
732 vdex = VdexFile::Open(vdex_fd_, in Status()
742 vdex = VdexFile::Open(vdex_filename, in Status()
Doat_file_assistant.h379 bool DexChecksumUpToDate(const VdexFile& file, std::string* error_msg);
Doat_file.cc182 void SetVdex(VdexFile* vdex) { in SetVdex()
286 vdex_ = VdexFile::OpenAtAddress(vdex_begin_, in LoadVdex()
314 vdex_ = VdexFile::OpenAtAddress( in LoadVdex()
1374 VdexFile* vdex_file,
1425 VdexFile* vdex_file, in InitializeFromElfFile()
1516 std::unique_ptr<VdexFile>&& vdex_file, in Open()
1525 bool Setup(const std::vector<const DexFile*>& dex_files, std::unique_ptr<VdexFile>&& vdex_file) { in Setup()
1714 std::unique_ptr<VdexFile>&& vdex_file, in OpenFromVdex()
Doat_file_manager.cc497 std::unique_ptr<VdexFile> vdex_file = nullptr; in OpenDexFilesFromOat_Impl()
499 vdex_file = VdexFile::Open(vdex_path, in OpenDexFilesFromOat_Impl()
716 if (!VdexFile::WriteToDisk(vdex_path_, in Run()
Druntime.cc2885 std::unordered_set<const VdexFile*> vdexs; in DeoptimizeBootImage()
2899 for (const VdexFile* vf : vdexs) { in DeoptimizeBootImage()
/art/openjdkjvmti/
Dfixed_up_dex_file.cc54 static const art::VdexFile* GetVdex(const art::DexFile& original_dex_file) { in GetVdex()
68 const art::VdexFile* vdex = GetVdex(original_dex_file); in DoDexUnquicken()
/art/dex2oat/linker/
Doat_writer.cc595 bool OatWriter::AddVdexDexFilesSource(const VdexFile& vdex_file, in AddVdexDexFilesSource()
689 vdex_size_ = sizeof(VdexFile::VerifierDepsHeader) + in WriteAndOpenDexFiles()
690 oat_dex_files_.size() * sizeof(VdexFile::VdexChecksum); in WriteAndOpenDexFiles()
2574 auto* quickening_table_offset = reinterpret_cast<VdexFile::QuickeningTableOffsetType*>( in WriteQuickeningInfo()
2575 vdex_begin_ + oat_dex_file.dex_file_offset_ - sizeof(VdexFile::QuickeningTableOffsetType)); in WriteQuickeningInfo()
3157 vdex_size_ += sizeof(VdexFile::DexSectionHeader); in WriteDexFiles()
3179 vdex_size_with_dex_files += sizeof(VdexFile::QuickeningTableOffsetType); in WriteDexFiles()
3264 auto* quickening_table_offset = reinterpret_cast<VdexFile::QuickeningTableOffsetType*>( in WriteDexFiles()
3269 size_quickening_table_offset_ += sizeof(VdexFile::QuickeningTableOffsetType); in WriteDexFiles()
3270 vdex_size_ = quickening_table_offset_offset + sizeof(VdexFile::QuickeningTableOffsetType); in WriteDexFiles()
[all …]
Doat_writer.h51 class VdexFile; variable
162 const VdexFile& vdex_file,
Doat_writer_test.cc294 const VdexFile::DexSectionHeader &vdex_header = in CheckOatWriteResult()
/art/dexlayout/
Ddexdiag.cc330 std::unique_ptr<VdexFile> vdex(VdexFile::Open(vdex_name, in DisplayMappingIfFromVdexFile()
/art/dex2oat/
Ddex2oat.cc1482 input_vdex_file_ = VdexFile::Open(input_vdex_, in OpenFile()
1532 input_vdex_file_ = VdexFile::Open(input_vdex_fd_, in OpenFile()
1575 if (!vdex_file->PwriteFully(&VdexFile::VerifierDepsHeader::kVdexInvalidMagic, in OpenFile()
1576 arraysize(VdexFile::VerifierDepsHeader::kVdexInvalidMagic), in OpenFile()
1605 std::unique_ptr<ZipEntry> zip_entry(dm_file_->Find(VdexFile::kVdexNameInDmFile, &error_msg)); in OpenFile()
1607 LOG(INFO) << "No " << VdexFile::kVdexNameInDmFile << " file in DexMetadata archive. " in OpenFile()
1611 VdexFile::kVdexNameInDmFile, in OpenFile()
1614 alignof(VdexFile)); in OpenFile()
1618 input_vdex_file_ = std::make_unique<VdexFile>(std::move(input_file)); in OpenFile()
3029 std::unique_ptr<VdexFile> input_vdex_file_;
Ddex2oat_test.cc1920 std::unique_ptr<VdexFile> vdex(VdexFile::Open(vdex_location.c_str(), in TEST_F()
1958 writer.StartEntry(VdexFile::kVdexNameInDmFile, ZipWriter::kCompress); in TEST_F()
2058 std::unique_ptr<VdexFile> vdex(VdexFile::Open(vdex_location2.c_str(), in TEST_F()
/art/dex2oat/driver/
Dcompiler_driver.h79 class VdexFile; variable
/art/oatdump/
Doatdump.cc555 VdexFile::VerifierDepsHeader vdex_header = oat_file_.GetVdexFile()->GetVerifierDepsHeader(); in Dump()
600 std::unique_ptr<const VdexFile> vdex_file = OpenVdexUnquicken(vdex_filename, in Dump()
751 std::unique_ptr<const VdexFile> OpenVdexUnquicken(const std::string& vdex_filename, in OpenVdexUnquicken()
780 std::unique_ptr<VdexFile> vdex_file(new VdexFile(std::move(mmap))); in OpenVdexUnquicken()