Lines Matching refs:oat_writer
39 #include "oat_writer.h"
132 OatWriter oat_writer(/*compiling_boot_image*/false, &timings);
137 if (!oat_writer.AddRawDexFileSource(raw_dex_file,
143 return DoWriteElf(file, oat_writer, key_value_store, verify);
151 OatWriter oat_writer(/*compiling_boot_image*/false, &timings);
153 if (!oat_writer.AddDexFileSource(dex_filename, dex_filename)) {
157 return DoWriteElf(file, oat_writer, key_value_store, verify);
166 OatWriter oat_writer(/*compiling_boot_image*/false, &timings);
167 if (!oat_writer.AddZippedDexFilesSource(std::move(zip_fd), location)) {
170 return DoWriteElf(file, oat_writer, key_value_store, verify);
174 OatWriter& oat_writer,
186 if (!oat_writer.WriteAndOpenDexFiles(rodata,
206 oat_writer.PrepareLayout(compiler_driver_.get(), nullptr, dex_files, &patcher);
207 size_t rodata_size = oat_writer.GetOatHeader().GetExecutableOffset();
208 size_t text_size = oat_writer.GetSize() - rodata_size;
209 elf_writer->SetLoadedSectionSizes(rodata_size, text_size, oat_writer.GetBssSize());
211 if (!oat_writer.WriteRodata(rodata)) {
217 if (!oat_writer.WriteCode(text)) {
222 if (!oat_writer.WriteHeader(elf_writer->GetStream(), 42U, 4096U, 0)) {
227 elf_writer->WriteDebugInfo(oat_writer.GetMethodDebugInfo());
228 elf_writer->WritePatchLocations(oat_writer.GetAbsolutePatchLocations());