Lines Matching refs:oat_writer
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
186 if (!oat_writer.WriteAndOpenDexFiles(rodata, in DoWriteElf()
206 oat_writer.PrepareLayout(compiler_driver_.get(), nullptr, dex_files, &patcher); in DoWriteElf()
207 size_t rodata_size = oat_writer.GetOatHeader().GetExecutableOffset(); in DoWriteElf()
208 size_t text_size = oat_writer.GetSize() - rodata_size; in DoWriteElf()
209 elf_writer->SetLoadedSectionSizes(rodata_size, text_size, oat_writer.GetBssSize()); in DoWriteElf()
211 if (!oat_writer.WriteRodata(rodata)) { in DoWriteElf()
217 if (!oat_writer.WriteCode(text)) { in DoWriteElf()
222 if (!oat_writer.WriteHeader(elf_writer->GetStream(), 42U, 4096U, 0)) { in DoWriteElf()
227 elf_writer->WriteDebugInfo(oat_writer.GetMethodDebugInfo()); in DoWriteElf()
228 elf_writer->WritePatchLocations(oat_writer.GetAbsolutePatchLocations()); in DoWriteElf()