Lines Matching refs:u4
73 const char* Reader::GetStringMUTF8(dex::u4 index) const { in GetStringMUTF8()
89 void Reader::CreateClassIr(dex::u4 index) { in CreateClassIr()
96 dex::u4 Reader::FindClassIndex(const char* class_descriptor) const { in FindClassIndex()
99 for (dex::u4 i = 0; i < classes.size(); ++i) { in FindClassIndex()
121 ir::Class* Reader::GetClass(dex::u4 index) { in GetClass()
138 ir::Type* Reader::GetType(dex::u4 index) { in GetType()
155 ir::FieldDecl* Reader::GetFieldDecl(dex::u4 index) { in GetFieldDecl()
172 ir::MethodDecl* Reader::GetMethodDecl(dex::u4 index) { in GetMethodDecl()
189 ir::Proto* Reader::GetProto(dex::u4 index) { in GetProto()
206 ir::String* Reader::GetString(dex::u4 index) { in GetString()
221 ir::Class* Reader::ParseClass(dex::u4 index) { in ParseClass()
243 dex::u4 static_fields_count = dex::ReadULeb128(&class_data); in ParseClass()
244 dex::u4 instance_fields_count = dex::ReadULeb128(&class_data); in ParseClass()
245 dex::u4 direct_methods_count = dex::ReadULeb128(&class_data); in ParseClass()
246 dex::u4 virtual_methods_count = dex::ReadULeb128(&class_data); in ParseClass()
248 dex::u4 base_index = dex::kNoIndex; in ParseClass()
249 for (dex::u4 i = 0; i < static_fields_count; ++i) { in ParseClass()
255 for (dex::u4 i = 0; i < instance_fields_count; ++i) { in ParseClass()
261 for (dex::u4 i = 0; i < direct_methods_count; ++i) { in ParseClass()
267 for (dex::u4 i = 0; i < virtual_methods_count; ++i) { in ParseClass()
280 ir::AnnotationsDirectory* Reader::ExtractAnnotations(dex::u4 offset) { in ExtractAnnotations()
299 for (dex::u4 i = 0; i < dex_annotations->fields_size; ++i) { in ExtractAnnotations()
303 for (dex::u4 i = 0; i < dex_annotations->methods_size; ++i) { in ExtractAnnotations()
307 for (dex::u4 i = 0; i < dex_annotations->parameters_size; ++i) { in ExtractAnnotations()
314 ir::Annotation* Reader::ExtractAnnotationItem(dex::u4 offset) { in ExtractAnnotationItem()
328 ir::AnnotationSet* Reader::ExtractAnnotationSet(dex::u4 offset) { in ExtractAnnotationSet()
341 for (dex::u4 i = 0; i < dex_annotation_set->size; ++i) { in ExtractAnnotationSet()
350 ir::AnnotationSetRefList* Reader::ExtractAnnotationSetRefList(dex::u4 offset) { in ExtractAnnotationSetRefList()
356 for (dex::u4 i = 0; i < dex_annotation_set_ref_list->size; ++i) { in ExtractAnnotationSetRefList()
357 dex::u4 entry_offset = dex_annotation_set_ref_list->list[i].annotations_off; in ExtractAnnotationSetRefList()
412 ir::EncodedField* Reader::ParseEncodedField(const dex::u1** pptr, dex::u4* base_index) { in ParseEncodedField()
509 dex::u4 index = ParseIntValue<dex::u4>(pptr, arg + 1); in ParseEncodedValue()
514 dex::u4 index = ParseIntValue<dex::u4>(pptr, arg + 1); in ParseEncodedValue()
519 dex::u4 index = ParseIntValue<dex::u4>(pptr, arg + 1); in ParseEncodedValue()
524 dex::u4 index = ParseIntValue<dex::u4>(pptr, arg + 1); in ParseEncodedValue()
529 dex::u4 index = ParseIntValue<dex::u4>(pptr, arg + 1); in ParseEncodedValue()
564 dex::u4 type_index = dex::ReadULeb128(pptr); in ParseAnnotation()
565 dex::u4 elements_count = dex::ReadULeb128(pptr); in ParseAnnotation()
570 for (dex::u4 i = 0; i < elements_count; ++i) { in ParseAnnotation()
585 dex::u4 count = dex::ReadULeb128(pptr); in ParseEncodedArray()
586 for (dex::u4 i = 0; i < count; ++i) { in ParseEncodedArray()
593 ir::EncodedArray* Reader::ExtractEncodedArray(dex::u4 offset) { in ExtractEncodedArray()
607 ir::DebugInfo* Reader::ExtractDebugInfo(dex::u4 offset) { in ExtractDebugInfo()
618 dex::u4 param_count = dex::ReadULeb128(&ptr); in ExtractDebugInfo()
619 for (dex::u4 i = 0; i < param_count; ++i) { in ExtractDebugInfo()
620 dex::u4 name_index = dex::ReadULeb128(&ptr) - 1; in ExtractDebugInfo()
650 dex::u4 name_index = dex::ReadULeb128(&ptr) - 1; in ExtractDebugInfo()
655 dex::u4 type_index = dex::ReadULeb128(&ptr) - 1; in ExtractDebugInfo()
665 dex::u4 name_index = dex::ReadULeb128(&ptr) - 1; in ExtractDebugInfo()
670 dex::u4 type_index = dex::ReadULeb128(&ptr) - 1; in ExtractDebugInfo()
675 dex::u4 sig_index = dex::ReadULeb128(&ptr) - 1; in ExtractDebugInfo()
688 dex::u4 name_index = dex::ReadULeb128(&ptr) - 1; in ExtractDebugInfo()
701 ir::Code* Reader::ExtractCode(dex::u4 offset) { in ExtractCode()
728 dex::u4 aligned_count = (dex_code->insns_size + 1) / 2 * 2; in ExtractCode()
740 dex::u4 handlers_count = dex::ReadULeb128(&ptr); in ExtractCode()
743 for (dex::u4 handler_index = 0; handler_index < handlers_count; ++handler_index) { in ExtractCode()
747 dex::u4 type_index = dex::ReadULeb128(&ptr); in ExtractCode()
768 ir::EncodedMethod* Reader::ParseEncodedMethod(const dex::u1** pptr, dex::u4* base_index) { in ParseEncodedMethod()
782 dex::u4 code_offset = dex::ReadULeb128(pptr); in ParseEncodedMethod()
791 ir::Type* Reader::ParseType(dex::u4 index) { in ParseType()
801 ir::FieldDecl* Reader::ParseFieldDecl(dex::u4 index) { in ParseFieldDecl()
813 ir::MethodDecl* Reader::ParseMethodDecl(dex::u4 index) { in ParseMethodDecl()
825 ir::TypeList* Reader::ExtractTypeList(dex::u4 offset) { in ExtractTypeList()
838 for (dex::u4 i = 0; i < dex_type_list->size; ++i) { in ExtractTypeList()
846 ir::Proto* Reader::ParseProto(dex::u4 index) { in ParseProto()
861 ir::String* Reader::ParseString(dex::u4 index) { in ParseString()
883 dex::u4 index = dex::kNoIndex; in ParseInstructions()
974 sizeof(dex::u4) + sizeof(dex::MapItem) * map_list->size; in ValidateHeader()