Lines Matching refs:offset
102 SLICER_EXTRA(auto offset = data.size()); in WriteEncodedValue()
190 auto ptr = data.ptr<const dex::u1>(offset); in WriteEncodedValue()
191 auto size = data.size() - offset; in WriteEncodedValue()
227 dex::u4 offset = section.SectionOffset(); in CopySection() local
229 SLICER_CHECK_GE(offset, dex::Header::kV40Size); in CopySection()
230 SLICER_CHECK_LE(offset + size, image_size); in CopySection()
232 ::memcpy(image + offset, section.data(), size); in CopySection()
263 dex::u4 offset = 0; in CreateImage() local
267 offset += header_size; in CreateImage()
268 offset += dex_->string_ids.Init(offset, dex_ir_->strings.size()); in CreateImage()
269 offset += dex_->type_ids.Init(offset, dex_ir_->types.size()); in CreateImage()
270 offset += dex_->proto_ids.Init(offset, dex_ir_->protos.size()); in CreateImage()
271 offset += dex_->field_ids.Init(offset, dex_ir_->fields.size()); in CreateImage()
272 offset += dex_->method_ids.Init(offset, dex_ir_->methods.size()); in CreateImage()
273 offset += dex_->class_defs.Init(offset, dex_ir_->classes.size()); in CreateImage()
274 offset += dex_->method_handles.Init(offset, dex_ir_->method_handles.size()); in CreateImage()
277 SLICER_CHECK_EQ(offset % 4, 0); in CreateImage()
278 const dex::u4 data_offset = offset; in CreateImage()
282 offset += CreateStringDataSection(offset); in CreateImage()
283 offset += CreateTypeListsSection(offset); in CreateImage()
284 offset += CreateDebugInfoSection(offset); in CreateImage()
285 offset += CreateEncodedArrayItemSection(offset); in CreateImage()
286 offset += CreateCodeItemSection(offset); in CreateImage()
287 offset += CreateClassDataSection(offset); in CreateImage()
288 offset += CreateAnnItemSection(offset); in CreateImage()
289 offset += CreateAnnSetsSection(offset); in CreateImage()
290 offset += CreateAnnSetRefListsSection(offset); in CreateImage()
291 offset += CreateAnnDirectoriesSection(offset); in CreateImage()
292 offset += CreateMapSection(offset); in CreateImage()
303 SLICER_CHECK_EQ(offset % 4, 0); in CreateImage()
304 const dex::u4 image_size = offset; in CreateImage()
385 dex::u4 offset = section.AddItem(); in CreateStringDataSection() local
387 dexStringId->string_data_off = section.AbsoluteOffset(offset); in CreateStringDataSection()
402 map_item.offset = section.SectionOffset(); in AddMapItem()
418 headerItem.offset = 0; in CreateMapSection()
442 SLICER_CHECK_NE(a.offset, b.offset); in CreateMapSection()
443 return a.offset < b.offset; in CreateMapSection()
458 dex::u4& offset = node_offset_[ir_node.get()]; in CreateAnnItemSection() local
459 SLICER_CHECK_EQ(offset, 0); in CreateAnnItemSection()
460 offset = WriteAnnotationItem(ir_node.get()); in CreateAnnItemSection()
472 dex::u4& offset = node_offset_[ir_node.get()]; in CreateAnnSetsSection() local
473 SLICER_CHECK_EQ(offset, 0); in CreateAnnSetsSection()
474 offset = WriteAnnotationSet(ir_node.get()); in CreateAnnSetsSection()
485 dex::u4& offset = node_offset_[ir_node.get()]; in CreateAnnSetRefListsSection() local
486 SLICER_CHECK_EQ(offset, 0); in CreateAnnSetRefListsSection()
487 offset = WriteAnnotationSetRefList(ir_node.get()); in CreateAnnSetRefListsSection()
498 dex::u4& offset = node_offset_[ir_type_list.get()]; in CreateTypeListsSection() local
499 SLICER_CHECK_EQ(offset, 0); in CreateTypeListsSection()
500 offset = WriteTypeList(ir_type_list->types); in CreateTypeListsSection()
511 dex::u4& offset = node_offset_[ir_node.get()]; in CreateCodeItemSection() local
512 SLICER_CHECK_EQ(offset, 0); in CreateCodeItemSection()
513 offset = WriteCode(ir_node.get()); in CreateCodeItemSection()
525 dex::u4& offset = node_offset_[ir_node.get()]; in CreateDebugInfoSection() local
526 SLICER_CHECK_EQ(offset, 0); in CreateDebugInfoSection()
527 offset = WriteDebugInfo(ir_node.get()); in CreateDebugInfoSection()
672 dex::u4 offset = data.AddItem(4); in WriteTypeList() local
677 return data.AbsoluteOffset(offset); in WriteTypeList()
685 dex::u4 offset = data.AddItem(); in WriteAnnotationItem() local
688 return data.AbsoluteOffset(offset); in WriteAnnotationItem()
698 dex::u4 offset = data.AddItem(4); in WriteAnnotationSet() local
703 return data.AbsoluteOffset(offset); in WriteAnnotationSet()
714 dex::u4 offset = data.AddItem(4); in WriteAnnotationSetRefList() local
719 return data.AbsoluteOffset(offset); in WriteAnnotationSetRefList()
730 dex::u4& offset = node_offset_[ir_annotations]; in WriteClassAnnotations() local
731 if (offset == 0) { in WriteClassAnnotations()
773 offset = data.AddItem(4); in WriteClassAnnotations()
778 offset = data.AbsoluteOffset(offset); in WriteClassAnnotations()
780 return offset; in WriteClassAnnotations()
788 dex::u4 offset = data.AddItem(); in WriteDebugInfo() local
853 return data.AbsoluteOffset(offset); in WriteDebugInfo()
860 auto offset = dex_->code.Push(instructions); in WriteInstructions() local
861 dex::u2* ptr = dex_->code.ptr<dex::u2>(offset); in WriteInstructions()
1030 dex::u4 offset = data.AddItem(4); in WriteCode() local
1037 return data.AbsoluteOffset(offset); in WriteCode()
1083 dex::u4 offset = data.AddItem(); in WriteClassData() local
1110 return data.AbsoluteOffset(offset); in WriteClassData()
1119 dex::u4& offset = node_offset_[ir_class->static_init]; in WriteClassStaticValues() local
1120 if (offset == 0) { in WriteClassStaticValues()
1122 offset = data.AddItem(); in WriteClassStaticValues()
1124 offset = data.AbsoluteOffset(offset); in WriteClassStaticValues()
1126 return offset; in WriteClassStaticValues()
1190 dex::u4 offset = it->second; in FilePointer() local
1191 SLICER_CHECK_GT(offset, 0); in FilePointer()
1192 return offset; in FilePointer()