Lines Matching refs:u4

36 static dex::u4 OptIndex(const T* ir_node) {  in OptIndex()
135 WriteIntValue<dex::u4>(type, ir_value->u.string_value->index, data); in WriteEncodedValue()
139 WriteIntValue<dex::u4>(type, ir_value->u.type_value->index, data); in WriteEncodedValue()
143 WriteIntValue<dex::u4>(type, ir_value->u.field_value->index, data); in WriteEncodedValue()
147 WriteIntValue<dex::u4>(type, ir_value->u.method_value->index, data); in WriteEncodedValue()
151 WriteIntValue<dex::u4>(type, ir_value->u.enum_value->index, data); in WriteEncodedValue()
220 static void CopySection(const T& section, dex::u1* image, dex::u4 image_size) { in CopySection()
227 dex::u4 offset = section.SectionOffset(); in CopySection()
228 dex::u4 size = section.size(); in CopySection()
235 static u4 ReadU4(const u2* ptr) { return ptr[0] | (u4(ptr[1]) << 16); } in ReadU4()
237 static void WriteU4(u2* ptr, u4 val) { in WriteU4()
257 dex::u4 offset = 0; in CreateImage()
271 const dex::u4 data_offset = offset; in CreateImage()
296 const dex::u4 image_size = offset; in CreateImage()
362 dex::u4 Writer::CreateStringDataSection(dex::u4 section_offset) { in CreateStringDataSection()
371 dex::u4 offset = section.AddItem(); in CreateStringDataSection()
376 dex::u4 size = section.Seal(4); in CreateStringDataSection()
394 dex::u4 Writer::CreateMapSection(dex::u4 section_offset) { in CreateMapSection()
431 section.Push<dex::u4>(map_items.size()); in CreateMapSection()
437 dex::u4 Writer::CreateAnnItemSection(dex::u4 section_offset) { in CreateAnnItemSection()
443 dex::u4& offset = node_offset_[ir_node.get()]; in CreateAnnItemSection()
453 dex::u4 Writer::CreateAnnSetsSection(dex::u4 section_offset) { in CreateAnnSetsSection()
457 dex::u4& offset = node_offset_[ir_node.get()]; in CreateAnnSetsSection()
466 dex::u4 Writer::CreateAnnSetRefListsSection(dex::u4 section_offset) { in CreateAnnSetRefListsSection()
470 dex::u4& offset = node_offset_[ir_node.get()]; in CreateAnnSetRefListsSection()
479 dex::u4 Writer::CreateTypeListsSection(dex::u4 section_offset) { in CreateTypeListsSection()
483 dex::u4& offset = node_offset_[ir_type_list.get()]; in CreateTypeListsSection()
492 dex::u4 Writer::CreateCodeItemSection(dex::u4 section_offset) { in CreateCodeItemSection()
496 dex::u4& offset = node_offset_[ir_node.get()]; in CreateCodeItemSection()
501 dex::u4 size = dex_->code.Seal(4); in CreateCodeItemSection()
506 dex::u4 Writer::CreateDebugInfoSection(dex::u4 section_offset) { in CreateDebugInfoSection()
510 dex::u4& offset = node_offset_[ir_node.get()]; in CreateDebugInfoSection()
515 dex::u4 size = dex_->debug_info.Seal(4); in CreateDebugInfoSection()
520 dex::u4 Writer::CreateClassDataSection(dex::u4 section_offset) { in CreateClassDataSection()
530 dex::u4 size = dex_->class_data.Seal(4); in CreateClassDataSection()
535 dex::u4 Writer::CreateAnnDirectoriesSection(dex::u4 section_offset) { in CreateAnnDirectoriesSection()
549 dex::u4 Writer::CreateEncodedArrayItemSection(dex::u4 section_offset) { in CreateEncodedArrayItemSection()
631 dex::u4 Writer::WriteTypeList(const std::vector<ir::Type*>& types) { in WriteTypeList()
637 dex::u4 offset = data.AddItem(4); in WriteTypeList()
638 data.Push<dex::u4>(types.size()); in WriteTypeList()
646 dex::u4 Writer::WriteAnnotationItem(const ir::Annotation* ir_annotation) { in WriteAnnotationItem()
650 dex::u4 offset = data.AddItem(); in WriteAnnotationItem()
657 dex::u4 Writer::WriteAnnotationSet(const ir::AnnotationSet* ir_annotation_set) { in WriteAnnotationSet()
663 dex::u4 offset = data.AddItem(4); in WriteAnnotationSet()
664 data.Push<dex::u4>(annotations.size()); in WriteAnnotationSet()
666 data.Push<dex::u4>(FilePointer(ir_annotation)); in WriteAnnotationSet()
672 dex::u4 Writer::WriteAnnotationSetRefList( in WriteAnnotationSetRefList()
679 dex::u4 offset = data.AddItem(4); in WriteAnnotationSetRefList()
680 data.Push<dex::u4>(annotations.size()); in WriteAnnotationSetRefList()
682 data.Push<dex::u4>(FilePointer(ir_annotation_set)); in WriteAnnotationSetRefList()
688 dex::u4 Writer::WriteClassAnnotations(const ir::Class* ir_class) { in WriteClassAnnotations()
695 dex::u4& offset = node_offset_[ir_annotations]; in WriteClassAnnotations()
726 dex::u4 class_annotations_offset = in WriteClassAnnotations()
749 dex::u4 Writer::WriteDebugInfo(const ir::DebugInfo* ir_debug_info) { in WriteDebugInfo()
753 dex::u4 offset = data.AddItem(); in WriteDebugInfo()
783 dex::u4 name_index = dex::ReadULeb128(&src) - 1; in WriteDebugInfo()
786 dex::u4 type_index = dex::ReadULeb128(&src) - 1; in WriteDebugInfo()
794 dex::u4 name_index = dex::ReadULeb128(&src) - 1; in WriteDebugInfo()
797 dex::u4 type_index = dex::ReadULeb128(&src) - 1; in WriteDebugInfo()
800 dex::u4 sig_index = dex::ReadULeb128(&src) - 1; in WriteDebugInfo()
811 dex::u4 name_index = dex::ReadULeb128(&src) - 1; in WriteDebugInfo()
855 dex::u4 new_index = MapStringIndex(ReadU4(idx)); in WriteInstructions()
860 dex::u4 new_index = MapStringIndex(*idx); in WriteInstructions()
869 dex::u4 new_index = MapTypeIndex(*idx); in WriteInstructions()
877 dex::u4 new_index = MapFieldIndex(*idx); in WriteInstructions()
885 dex::u4 new_index = MapMethodIndex(*idx); in WriteInstructions()
912 dex::u4 handlers_count = dex::ReadULeb128(&ptr); in WriteTryBlocks()
915 for (dex::u4 handler_index = 0; handler_index < handlers_count; ++handler_index) { in WriteTryBlocks()
925 dex::u4 type_index = dex::ReadULeb128(&ptr); in WriteTryBlocks()
942 dex::u4 tries_offset = data.size(); in WriteTryBlocks()
956 dex::u4 Writer::WriteCode(const ir::Code* irCode) { in WriteCode()
968 dex::u4 offset = data.AddItem(4); in WriteCode()
980 dex::u4* base_index) { in WriteEncodedField()
981 dex::u4 index_delta = ir_encoded_field->decl->index; in WriteEncodedField()
996 dex::u4* base_index) { in WriteEncodedMethod()
997 dex::u4 index_delta = ir_encoded_method->decl->index; in WriteEncodedMethod()
1005 dex::u4 code_offset = FilePointer(ir_encoded_method->code); in WriteEncodedMethod()
1014 dex::u4 Writer::WriteClassData(const ir::Class* ir_class) { in WriteClassData()
1021 dex::u4 offset = data.AddItem(); in WriteClassData()
1028 dex::u4 base_index = dex::kNoIndex; in WriteClassData()
1052 dex::u4 Writer::WriteClassStaticValues(const ir::Class* ir_class) { in WriteClassStaticValues()
1057 dex::u4& offset = node_offset_[ir_class->static_init]; in WriteClassStaticValues()
1068 dex::u4 Writer::MapStringIndex(dex::u4 index) const { in MapStringIndex()
1077 dex::u4 Writer::MapTypeIndex(dex::u4 index) const { in MapTypeIndex()
1086 dex::u4 Writer::MapFieldIndex(dex::u4 index) const { in MapFieldIndex()
1095 dex::u4 Writer::MapMethodIndex(dex::u4 index) const { in MapMethodIndex()
1104 dex::u4 Writer::FilePointer(const ir::Node* ir_node) const { in FilePointer()
1110 dex::u4 offset = it->second; in FilePointer()