Lines Matching refs:relative_offset
43 DCHECK_EQ(static_cast<off_t>(file_offset + relative_offset), out->Seek(0, kSeekCurrent)) \
44 << "file_offset=" << file_offset << " relative_offset=" << relative_offset
572 size_t relative_offset)
573 : OatDexMethodVisitor(writer, relative_offset),
653 size_t relative_offset)
654 : OatDexMethodVisitor(writer, relative_offset),
904 size_t relative_offset = out->Seek(0, kSeekCurrent) - file_offset;
905 relative_offset = WriteMaps(out, file_offset, relative_offset);
906 if (relative_offset == 0) {
911 relative_offset = WriteCode(out, file_offset, relative_offset);
912 if (relative_offset == 0) {
917 relative_offset = WriteCodeDexFiles(out, file_offset, relative_offset);
918 if (relative_offset == 0) {
968 CHECK_EQ(size_, relative_offset);
1006 size_t OatWriter::WriteMaps(OutputStream* out, const size_t file_offset, size_t relative_offset) {
1009 VisitorType visitor(this, out, file_offset, relative_offset); \
1013 relative_offset = visitor.GetOffset(); \
1016 size_t gc_maps_offset = relative_offset;
1018 size_gc_map_ = relative_offset - gc_maps_offset;
1020 size_t mapping_tables_offset = relative_offset;
1022 size_mapping_table_ = relative_offset - mapping_tables_offset;
1024 size_t vmap_tables_offset = relative_offset;
1026 size_vmap_table_ = relative_offset - vmap_tables_offset;
1030 return relative_offset;
1033 size_t OatWriter::WriteCode(OutputStream* out, const size_t file_offset, size_t relative_offset) {
1035 relative_offset += size_executable_offset_alignment_;
1036 DCHECK_EQ(relative_offset, oat_header_->GetExecutableOffset());
1037 size_t expected_file_offset = file_offset + relative_offset;
1049 uint32_t aligned_offset = CompiledCode::AlignCode(relative_offset, instruction_set); \
1050 uint32_t alignment_padding = aligned_offset - relative_offset; \
1058 relative_offset += alignment_padding + field->size(); \
1074 return relative_offset;
1079 size_t relative_offset) {
1082 VisitorType visitor(this, out, file_offset, relative_offset); \
1086 relative_offset = visitor.GetOffset(); \
1093 return relative_offset;