Lines Matching refs:index

37   return ir_node != nullptr ? ir_node->index : dex::kNoIndex;  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()
201 data.PushULeb128(ir_annotation->type->index); in WriteAnnotation()
204 data.PushULeb128(irAnnotationElement->name->index); in WriteAnnotation()
569 dexTypeId->descriptor_idx = ir_type->descriptor->index; in FillTypes()
579 dexProtoId->shorty_idx = irProto->shorty->index; in FillProtos()
580 dexProtoId->return_type_idx = irProto->return_type->index; in FillProtos()
591 dexFieldId->class_idx = ir_field->parent->index; in FillFields()
592 dexFieldId->type_idx = ir_field->type->index; in FillFields()
593 dexFieldId->name_idx = ir_field->name->index; in FillFields()
603 dexMethodId->class_idx = ir_method->parent->index; in FillMethods()
604 dexMethodId->proto_idx = ir_method->prototype->index; in FillMethods()
605 dexMethodId->name_idx = ir_method->name->index; in FillMethods()
615 dex_class_def->class_idx = ir_class->type->index; in FillClassDefs()
640 data.Push<dex::u2>(ir_type->index); in WriteTypeList()
707 dex_item.field_idx = irItem->field_decl->index; in WriteClassAnnotations()
714 dex_item.method_idx = irItem->method_decl->index; in WriteClassAnnotations()
721 dex_item.method_idx = irItem->method_decl->index; in WriteClassAnnotations()
981 dex::u4 index_delta = ir_encoded_field->decl->index; in WriteEncodedField()
987 *base_index = ir_encoded_field->decl->index; in WriteEncodedField()
997 dex::u4 index_delta = ir_encoded_method->decl->index; in WriteEncodedMethod()
1003 *base_index = ir_encoded_method->decl->index; in WriteEncodedMethod()
1068 dex::u4 Writer::MapStringIndex(dex::u4 index) const { in MapStringIndex()
1069 if (index != dex::kNoIndex) { in MapStringIndex()
1070 index = dex_ir_->strings_map.at(index)->index; in MapStringIndex()
1071 SLICER_CHECK(index != dex::kNoIndex); in MapStringIndex()
1073 return index; in MapStringIndex()
1077 dex::u4 Writer::MapTypeIndex(dex::u4 index) const { in MapTypeIndex()
1078 if (index != dex::kNoIndex) { in MapTypeIndex()
1079 index = dex_ir_->types_map.at(index)->index; in MapTypeIndex()
1080 SLICER_CHECK(index != dex::kNoIndex); in MapTypeIndex()
1082 return index; in MapTypeIndex()
1086 dex::u4 Writer::MapFieldIndex(dex::u4 index) const { in MapFieldIndex()
1087 if (index != dex::kNoIndex) { in MapFieldIndex()
1088 index = dex_ir_->fields_map.at(index)->index; in MapFieldIndex()
1089 SLICER_CHECK(index != dex::kNoIndex); in MapFieldIndex()
1091 return index; in MapFieldIndex()
1095 dex::u4 Writer::MapMethodIndex(dex::u4 index) const { in MapMethodIndex()
1096 if (index != dex::kNoIndex) { in MapMethodIndex()
1097 index = dex_ir_->methods_map.at(index)->index; in MapMethodIndex()
1098 SLICER_CHECK(index != dex::kNoIndex); in MapMethodIndex()
1100 return index; in MapMethodIndex()