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(offset >= sizeof(dex::Header)); in CopySection()
230 SLICER_CHECK(offset + size <= image_size); in CopySection()
232 ::memcpy(image + offset, section.data(), size); in CopySection()
250 dex::u4 offset = 0; in CreateImage() local
254 offset += sizeof(dex::Header); in CreateImage()
255 offset += dex_->string_ids.Init(offset, dex_ir_->strings.size()); in CreateImage()
256 offset += dex_->type_ids.Init(offset, dex_ir_->types.size()); in CreateImage()
257 offset += dex_->proto_ids.Init(offset, dex_ir_->protos.size()); in CreateImage()
258 offset += dex_->field_ids.Init(offset, dex_ir_->fields.size()); in CreateImage()
259 offset += dex_->method_ids.Init(offset, dex_ir_->methods.size()); in CreateImage()
260 offset += dex_->class_defs.Init(offset, dex_ir_->classes.size()); in CreateImage()
263 SLICER_CHECK(offset % 4 == 0); in CreateImage()
264 const dex::u4 data_offset = offset; in CreateImage()
268 offset += CreateStringDataSection(offset); in CreateImage()
269 offset += CreateTypeListsSection(offset); in CreateImage()
270 offset += CreateDebugInfoSection(offset); in CreateImage()
271 offset += CreateEncodedArrayItemSection(offset); in CreateImage()
272 offset += CreateCodeItemSection(offset); in CreateImage()
273 offset += CreateClassDataSection(offset); in CreateImage()
274 offset += CreateAnnItemSection(offset); in CreateImage()
275 offset += CreateAnnSetsSection(offset); in CreateImage()
276 offset += CreateAnnSetRefListsSection(offset); in CreateImage()
277 offset += CreateAnnDirectoriesSection(offset); in CreateImage()
278 offset += CreateMapSection(offset); in CreateImage()
288 SLICER_CHECK(offset % 4 == 0); in CreateImage()
289 const dex::u4 image_size = offset; in CreateImage()
364 dex::u4 offset = section.AddItem(); in CreateStringDataSection() local
366 dexStringId->string_data_off = section.AbsoluteOffset(offset); in CreateStringDataSection()
381 map_item.offset = section.SectionOffset(); in AddMapItem()
397 headerItem.offset = 0; in CreateMapSection()
420 SLICER_CHECK(a.offset != b.offset); in CreateMapSection()
421 return a.offset < b.offset; in CreateMapSection()
436 dex::u4& offset = node_offset_[ir_node.get()]; in CreateAnnItemSection() local
437 SLICER_CHECK(offset == 0); in CreateAnnItemSection()
438 offset = WriteAnnotationItem(ir_node.get()); in CreateAnnItemSection()
450 dex::u4& offset = node_offset_[ir_node.get()]; in CreateAnnSetsSection() local
451 SLICER_CHECK(offset == 0); in CreateAnnSetsSection()
452 offset = WriteAnnotationSet(ir_node.get()); in CreateAnnSetsSection()
463 dex::u4& offset = node_offset_[ir_node.get()]; in CreateAnnSetRefListsSection() local
464 SLICER_CHECK(offset == 0); in CreateAnnSetRefListsSection()
465 offset = WriteAnnotationSetRefList(ir_node.get()); in CreateAnnSetRefListsSection()
476 dex::u4& offset = node_offset_[ir_type_list.get()]; in CreateTypeListsSection() local
477 SLICER_CHECK(offset == 0); in CreateTypeListsSection()
478 offset = WriteTypeList(ir_type_list->types); in CreateTypeListsSection()
489 dex::u4& offset = node_offset_[ir_node.get()]; in CreateCodeItemSection() local
490 SLICER_CHECK(offset == 0); in CreateCodeItemSection()
491 offset = WriteCode(ir_node.get()); in CreateCodeItemSection()
503 dex::u4& offset = node_offset_[ir_node.get()]; in CreateDebugInfoSection() local
504 SLICER_CHECK(offset == 0); in CreateDebugInfoSection()
505 offset = WriteDebugInfo(ir_node.get()); in CreateDebugInfoSection()
630 dex::u4 offset = data.AddItem(4); in WriteTypeList() local
635 return data.AbsoluteOffset(offset); in WriteTypeList()
643 dex::u4 offset = data.AddItem(); in WriteAnnotationItem() local
646 return data.AbsoluteOffset(offset); in WriteAnnotationItem()
656 dex::u4 offset = data.AddItem(4); in WriteAnnotationSet() local
661 return data.AbsoluteOffset(offset); in WriteAnnotationSet()
672 dex::u4 offset = data.AddItem(4); in WriteAnnotationSetRefList() local
677 return data.AbsoluteOffset(offset); in WriteAnnotationSetRefList()
688 dex::u4& offset = node_offset_[ir_annotations]; in WriteClassAnnotations() local
689 if (offset == 0) { in WriteClassAnnotations()
731 offset = data.AddItem(4); in WriteClassAnnotations()
736 offset = data.AbsoluteOffset(offset); in WriteClassAnnotations()
738 return offset; in WriteClassAnnotations()
746 dex::u4 offset = data.AddItem(); in WriteDebugInfo() local
811 return data.AbsoluteOffset(offset); in WriteDebugInfo()
818 auto offset = dex_->code.Push(instructions); in WriteInstructions() local
819 dex::u2* ptr = dex_->code.ptr<dex::u2>(offset); in WriteInstructions()
962 dex::u4 offset = data.AddItem(4); in WriteCode() local
969 return data.AbsoluteOffset(offset); in WriteCode()
1015 dex::u4 offset = data.AddItem(); in WriteClassData() local
1042 return data.AbsoluteOffset(offset); in WriteClassData()
1051 dex::u4& offset = node_offset_[ir_class->static_init]; in WriteClassStaticValues() local
1052 if (offset == 0) { in WriteClassStaticValues()
1054 offset = data.AddItem(); in WriteClassStaticValues()
1056 offset = data.AbsoluteOffset(offset); in WriteClassStaticValues()
1058 return offset; in WriteClassStaticValues()
1104 dex::u4 offset = it->second; in FilePointer() local
1105 SLICER_CHECK(offset > 0); in FilePointer()
1106 return offset; in FilePointer()