Home | History | Annotate | Download | only in compiler

Lines Matching refs:oat_writer

17 #include "oat_writer.h"
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) {
2279 size_t original_offset = oat_writer->size_;
2281 oat_writer->size_oat_lookup_table_alignment_ += offset - original_offset;
2283 oat_writer->size_ = offset + table_size;
2284 oat_writer->size_oat_lookup_table_ += table_size;
2289 void OatWriter::OatDexFile::ReserveClassOffsets(OatWriter* oat_writer) {
2293 size_t original_offset = oat_writer->size_;
2295 oat_writer->size_oat_class_offsets_alignment_ += offset - original_offset;
2297 oat_writer->size_ = offset + GetClassOffsetsRawSize();
2301 bool OatWriter::OatDexFile::Write(OatWriter* oat_writer, OutputStream* out) const {
2302 const size_t file_offset = oat_writer->oat_data_offset_;
2309 oat_writer->size_oat_dex_file_location_size_ += sizeof(dex_file_location_size_);
2315 oat_writer->size_oat_dex_file_location_data_ += dex_file_location_size_;
2321 oat_writer->size_oat_dex_file_location_checksum_ += sizeof(dex_file_location_checksum_);
2327 oat_writer->size_oat_dex_file_offset_ += sizeof(dex_file_offset_);
2333 oat_writer->size_oat_dex_file_class_offsets_offset_ += sizeof(class_offsets_offset_);
2339 oat_writer->size_oat_dex_file_lookup_table_offset_ += sizeof(lookup_table_offset_);
2344 bool OatWriter::OatDexFile::WriteClassOffsets(OatWriter* oat_writer, OutputStream* out) {
2350 oat_writer->size_oat_class_offsets_ += GetClassOffsetsRawSize();
2430 bool OatWriter::OatClass::Write(OatWriter* oat_writer,
2438 oat_writer->size_oat_class_status_ += sizeof(status_);
2444 oat_writer->size_oat_class_type_ += sizeof(type_);
2452 oat_writer->size_oat_class_method_bitmaps_ += sizeof(method_bitmap_size_);
2458 oat_writer->size_oat_class_method_bitmaps_ += method_bitmap_size_;
2465 oat_writer->size_oat_class_method_offsets_ += GetMethodOffsetsRawSize();