Searched refs:oat_writer (Results 1 – 5 of 5) sorted by relevance
/art/compiler/ |
D | image_test.cc | 111 OatWriter oat_writer(/*compiling_boot_image*/true, &timings); in TestWriteRead() local 117 oat_writer.AddRawDexFileSource(raw_dex_file, in TestWriteRead() 123 bool dex_files_ok = oat_writer.WriteAndOpenDexFiles( in TestWriteRead() 139 oat_writer.PrepareLayout(compiler_driver_.get(), writer.get(), dex_files, &patcher); in TestWriteRead() 140 size_t rodata_size = oat_writer.GetOatHeader().GetExecutableOffset(); in TestWriteRead() 141 size_t text_size = oat_writer.GetSize() - rodata_size; in TestWriteRead() 142 elf_writer->SetLoadedSectionSizes(rodata_size, text_size, oat_writer.GetBssSize()); in TestWriteRead() 146 oat_writer.GetOatDataOffset(), in TestWriteRead() 147 oat_writer.GetSize()); in TestWriteRead() 149 bool rodata_ok = oat_writer.WriteRodata(rodata); in TestWriteRead() [all …]
|
D | oat_test.cc | 132 OatWriter oat_writer(/*compiling_boot_image*/false, &timings); in WriteElf() local 137 if (!oat_writer.AddRawDexFileSource(raw_dex_file, in WriteElf() 143 return DoWriteElf(file, oat_writer, key_value_store, verify); in WriteElf() 151 OatWriter oat_writer(/*compiling_boot_image*/false, &timings); in WriteElf() local 153 if (!oat_writer.AddDexFileSource(dex_filename, dex_filename)) { in WriteElf() 157 return DoWriteElf(file, oat_writer, key_value_store, verify); in WriteElf() 166 OatWriter oat_writer(/*compiling_boot_image*/false, &timings); in WriteElf() local 167 if (!oat_writer.AddZippedDexFilesSource(std::move(zip_fd), location)) { in WriteElf() 170 return DoWriteElf(file, oat_writer, key_value_store, verify); in WriteElf() 174 OatWriter& oat_writer, in DoWriteElf() argument [all …]
|
D | oat_writer.cc | 158 bool Write(OatWriter* oat_writer, OutputStream* out, const size_t file_offset) const; 221 void ReserveTypeLookupTable(OatWriter* oat_writer); 222 void ReserveClassOffsets(OatWriter* oat_writer); 225 bool Write(OatWriter* oat_writer, OutputStream* out) const; 226 bool WriteClassOffsets(OatWriter* oat_writer, OutputStream* out); 2273 void OatWriter::OatDexFile::ReserveTypeLookupTable(OatWriter* oat_writer) { in ReserveTypeLookupTable() argument 2279 size_t original_offset = oat_writer->size_; in ReserveTypeLookupTable() 2281 oat_writer->size_oat_lookup_table_alignment_ += offset - original_offset; in ReserveTypeLookupTable() 2283 oat_writer->size_ = offset + table_size; in ReserveTypeLookupTable() 2284 oat_writer->size_oat_lookup_table_ += table_size; in ReserveTypeLookupTable() [all …]
|
D | Android.mk | 85 oat_writer.cc
|
/art/dex2oat/ |
D | dex2oat.cc | 1672 std::unique_ptr<OatWriter>& oat_writer = oat_writers_[i]; in WriteOatFiles() local 1675 oat_writer->PrepareLayout(driver_.get(), image_writer_.get(), dex_files, &patcher); in WriteOatFiles() 1677 size_t rodata_size = oat_writer->GetOatHeader().GetExecutableOffset(); in WriteOatFiles() 1678 size_t text_size = oat_writer->GetSize() - rodata_size; in WriteOatFiles() 1679 elf_writer->SetLoadedSectionSizes(rodata_size, text_size, oat_writer->GetBssSize()); in WriteOatFiles() 1687 oat_writer->GetOatDataOffset(), in WriteOatFiles() 1688 oat_writer->GetSize()); in WriteOatFiles() 1695 std::unique_ptr<OatWriter>& oat_writer = oat_writers_[i]; in WriteOatFiles() local 1697 oat_writer->AddMethodDebugInfos(debug::MakeTrampolineInfos(oat_writer->GetOatHeader())); in WriteOatFiles() 1701 elf_writer->PrepareDebugInfo(oat_writer->GetMethodDebugInfo()); in WriteOatFiles() [all …]
|