Lines Matching refs:offset

97   size_t offset;  in OatWriter()  local
100 offset = InitOatHeader(); in OatWriter()
104 offset = InitOatDexFiles(offset); in OatWriter()
108 offset = InitDexFiles(offset); in OatWriter()
112 offset = InitOatClasses(offset); in OatWriter()
116 offset = InitOatMaps(offset); in OatWriter()
120 offset = InitOatCode(offset); in OatWriter()
124 offset = InitOatCodeDexFiles(offset); in OatWriter()
126 size_ = offset; in OatWriter()
146 uint32_t offset = oat_class->method_headers_[method_offsets_index].gc_map_offset_; in GetOffset() local
147 return offset == 0u ? 0u : in GetOffset()
148 (oat_class->method_offsets_[method_offsets_index].code_offset_ & ~1) - offset; in GetOffset()
151 static void SetOffset(OatClass* oat_class, size_t method_offsets_index, uint32_t offset) in SetOffset()
154 (oat_class->method_offsets_[method_offsets_index].code_offset_ & ~1) - offset; in SetOffset()
168 uint32_t offset = oat_class->method_headers_[method_offsets_index].mapping_table_offset_; in GetOffset() local
169 return offset == 0u ? 0u : in GetOffset()
170 (oat_class->method_offsets_[method_offsets_index].code_offset_ & ~1) - offset; in GetOffset()
173 static void SetOffset(OatClass* oat_class, size_t method_offsets_index, uint32_t offset) in SetOffset()
176 (oat_class->method_offsets_[method_offsets_index].code_offset_ & ~1) - offset; in SetOffset()
190 uint32_t offset = oat_class->method_headers_[method_offsets_index].vmap_table_offset_; in GetOffset() local
191 return offset == 0u ? 0u : in GetOffset()
192 (oat_class->method_offsets_[method_offsets_index].code_offset_ & ~1) - offset; in GetOffset()
195 static void SetOffset(OatClass* oat_class, size_t method_offsets_index, uint32_t offset) in SetOffset()
198 (oat_class->method_offsets_[method_offsets_index].code_offset_ & ~1) - offset; in SetOffset()
208 DexMethodVisitor(OatWriter* writer, size_t offset) in DexMethodVisitor() argument
210 offset_(offset), in DexMethodVisitor()
252 OatDexMethodVisitor(OatWriter* writer, size_t offset) in OatDexMethodVisitor() argument
253 : DexMethodVisitor(writer, offset), in OatDexMethodVisitor()
277 InitOatClassesMethodVisitor(OatWriter* writer, size_t offset) in InitOatClassesMethodVisitor() argument
278 : DexMethodVisitor(writer, offset), in InitOatClassesMethodVisitor()
332 InitCodeMethodVisitor(OatWriter* writer, size_t offset) in InitCodeMethodVisitor() argument
333 : OatDexMethodVisitor(writer, offset) { in InitCodeMethodVisitor()
495 InitMapMethodVisitor(OatWriter* writer, size_t offset) in InitMapMethodVisitor() argument
496 : OatDexMethodVisitor(writer, offset) { in InitMapMethodVisitor()
535 InitImageMethodVisitor(OatWriter* writer, size_t offset) in InitImageMethodVisitor() argument
536 : OatDexMethodVisitor(writer, offset) { in InitImageMethodVisitor()
753 size_t OatWriter::InitOatDexFiles(size_t offset) { in InitOatDexFiles() argument
758 OatDexFile* oat_dex_file = new OatDexFile(offset, *dex_file); in InitOatDexFiles()
760 offset += oat_dex_file->SizeOf(); in InitOatDexFiles()
762 return offset; in InitOatDexFiles()
765 size_t OatWriter::InitDexFiles(size_t offset) { in InitDexFiles() argument
769 size_t original_offset = offset; in InitDexFiles()
770 offset = RoundUp(offset, 4); in InitDexFiles()
771 size_dex_file_alignment_ += offset - original_offset; in InitDexFiles()
774 oat_dex_files_[i]->dex_file_offset_ = offset; in InitDexFiles()
777 offset += dex_file->GetHeader().file_size_; in InitDexFiles()
779 return offset; in InitDexFiles()
782 size_t OatWriter::InitOatClasses(size_t offset) { in InitOatClasses() argument
784 InitOatClassesMethodVisitor visitor(this, offset); in InitOatClasses()
787 offset = visitor.GetOffset(); in InitOatClasses()
792 for (uint32_t& offset : oat_dex_file->methods_offsets_) { in InitOatClasses()
794 offset = (*oat_class_it)->offset_; in InitOatClasses()
801 return offset; in InitOatClasses()
804 size_t OatWriter::InitOatMaps(size_t offset) { in InitOatMaps() argument
807 VisitorType visitor(this, offset); \ in InitOatMaps()
810 offset = visitor.GetOffset(); \ in InitOatMaps()
819 return offset; in InitOatMaps()
822 size_t OatWriter::InitOatCode(size_t offset) { in InitOatCode() argument
824 size_t old_offset = offset; in InitOatCode()
825 size_t adjusted_offset = offset; in InitOatCode()
827 offset = RoundUp(offset, kPageSize); in InitOatCode()
828 oat_header_->SetExecutableOffset(offset); in InitOatCode()
829 size_executable_offset_alignment_ = offset - old_offset; in InitOatCode()
835 offset = CompiledCode::AlignCode(offset, instruction_set); \ in InitOatCode()
836 adjusted_offset = offset + CompiledCode::CodeDelta(instruction_set); \ in InitOatCode()
839 offset += field->size(); in InitOatCode()
866 return offset; in InitOatCode()
869 size_t OatWriter::InitOatCodeDexFiles(size_t offset) { in InitOatCodeDexFiles() argument
872 VisitorType visitor(this, offset); \ in InitOatCodeDexFiles()
875 offset = visitor.GetOffset(); \ in InitOatCodeDexFiles()
885 return offset; in InitOatCodeDexFiles()
1096 OatWriter::OatDexFile::OatDexFile(size_t offset, const DexFile& dex_file) { in OatDexFile() argument
1097 offset_ = offset; in OatDexFile()
1157 OatWriter::OatClass::OatClass(size_t offset, in OatClass() argument
1165 offset_ = offset; in OatClass()