Lines Matching refs:index

73 const char* Reader::GetStringMUTF8(dex::u4 index) const {  in GetStringMUTF8()
74 if (index == dex::kNoIndex) { in GetStringMUTF8()
77 const dex::u1* strData = GetStringData(index); in GetStringMUTF8()
89 void Reader::CreateClassIr(dex::u4 index) { in CreateClassIr() argument
90 auto ir_class = GetClass(index); in CreateClassIr()
121 ir::Class* Reader::GetClass(dex::u4 index) { in GetClass() argument
122 SLICER_CHECK(index != dex::kNoIndex); in GetClass()
123 auto& p = dex_ir_->classes_map[index]; in GetClass()
127 auto newClass = ParseClass(index); in GetClass()
130 dex_ir_->classes_indexes.MarkUsedIndex(index); in GetClass()
138 ir::Type* Reader::GetType(dex::u4 index) { in GetType() argument
139 SLICER_CHECK(index != dex::kNoIndex); in GetType()
140 auto& p = dex_ir_->types_map[index]; in GetType()
144 auto newType = ParseType(index); in GetType()
147 dex_ir_->types_indexes.MarkUsedIndex(index); in GetType()
155 ir::FieldDecl* Reader::GetFieldDecl(dex::u4 index) { in GetFieldDecl() argument
156 SLICER_CHECK(index != dex::kNoIndex); in GetFieldDecl()
157 auto& p = dex_ir_->fields_map[index]; in GetFieldDecl()
161 auto newField = ParseFieldDecl(index); in GetFieldDecl()
164 dex_ir_->fields_indexes.MarkUsedIndex(index); in GetFieldDecl()
172 ir::MethodDecl* Reader::GetMethodDecl(dex::u4 index) { in GetMethodDecl() argument
173 SLICER_CHECK(index != dex::kNoIndex); in GetMethodDecl()
174 auto& p = dex_ir_->methods_map[index]; in GetMethodDecl()
178 auto newMethod = ParseMethodDecl(index); in GetMethodDecl()
181 dex_ir_->methods_indexes.MarkUsedIndex(index); in GetMethodDecl()
189 ir::Proto* Reader::GetProto(dex::u4 index) { in GetProto() argument
190 SLICER_CHECK(index != dex::kNoIndex); in GetProto()
191 auto& p = dex_ir_->protos_map[index]; in GetProto()
195 auto newProto = ParseProto(index); in GetProto()
198 dex_ir_->protos_indexes.MarkUsedIndex(index); in GetProto()
206 ir::String* Reader::GetString(dex::u4 index) { in GetString() argument
207 SLICER_CHECK(index != dex::kNoIndex); in GetString()
208 auto& p = dex_ir_->strings_map[index]; in GetString()
212 auto newString = ParseString(index); in GetString()
215 dex_ir_->strings_indexes.MarkUsedIndex(index); in GetString()
221 ir::Class* Reader::ParseClass(dex::u4 index) { in ParseClass() argument
222 auto& dex_class_def = ClassDefs()[index]; in ParseClass()
275 ir_class->orig_index = index; in ParseClass()
509 dex::u4 index = ParseIntValue<dex::u4>(pptr, arg + 1); in ParseEncodedValue() local
510 ir_encoded_value->u.string_value = GetString(index); in ParseEncodedValue()
514 dex::u4 index = ParseIntValue<dex::u4>(pptr, arg + 1); in ParseEncodedValue() local
515 ir_encoded_value->u.type_value = GetType(index); in ParseEncodedValue()
519 dex::u4 index = ParseIntValue<dex::u4>(pptr, arg + 1); in ParseEncodedValue() local
520 ir_encoded_value->u.field_value = GetFieldDecl(index); in ParseEncodedValue()
524 dex::u4 index = ParseIntValue<dex::u4>(pptr, arg + 1); in ParseEncodedValue() local
525 ir_encoded_value->u.method_value = GetMethodDecl(index); in ParseEncodedValue()
529 dex::u4 index = ParseIntValue<dex::u4>(pptr, arg + 1); in ParseEncodedValue() local
530 ir_encoded_value->u.enum_value = GetFieldDecl(index); in ParseEncodedValue()
791 ir::Type* Reader::ParseType(dex::u4 index) { in ParseType() argument
792 auto& dex_type = TypeIds()[index]; in ParseType()
796 ir_type->orig_index = index; in ParseType()
801 ir::FieldDecl* Reader::ParseFieldDecl(dex::u4 index) { in ParseFieldDecl() argument
802 auto& dex_field = FieldIds()[index]; in ParseFieldDecl()
808 ir_field->orig_index = index; in ParseFieldDecl()
813 ir::MethodDecl* Reader::ParseMethodDecl(dex::u4 index) { in ParseMethodDecl() argument
814 auto& dex_method = MethodIds()[index]; in ParseMethodDecl()
820 ir_method->orig_index = index; in ParseMethodDecl()
846 ir::Proto* Reader::ParseProto(dex::u4 index) { in ParseProto() argument
847 auto& dex_proto = ProtoIds()[index]; in ParseProto()
853 ir_proto->orig_index = index; in ParseProto()
861 ir::String* Reader::ParseString(dex::u4 index) { in ParseString() argument
864 auto data = GetStringData(index); in ParseString()
870 ir_string->orig_index = index; in ParseString()
883 dex::u4 index = dex::kNoIndex; in ParseInstructions() local
890 index = dex_instr.vB; in ParseInstructions()
894 index = dex_instr.vC; in ParseInstructions()
903 GetString(index); in ParseInstructions()
907 GetType(index); in ParseInstructions()
911 GetFieldDecl(index); in ParseInstructions()
915 GetMethodDecl(index); in ParseInstructions()