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()
562 dexTypeId->descriptor_idx = ir_type->descriptor->index; in FillTypes()
572 dexProtoId->shorty_idx = irProto->shorty->index; in FillProtos()
573 dexProtoId->return_type_idx = irProto->return_type->index; in FillProtos()
584 dexFieldId->class_idx = ir_field->parent->index; in FillFields()
585 dexFieldId->type_idx = ir_field->type->index; in FillFields()
586 dexFieldId->name_idx = ir_field->name->index; in FillFields()
596 dexMethodId->class_idx = ir_method->parent->index; in FillMethods()
597 dexMethodId->proto_idx = ir_method->prototype->index; in FillMethods()
598 dexMethodId->name_idx = ir_method->name->index; in FillMethods()
608 dex_class_def->class_idx = ir_class->type->index; in FillClassDefs()
633 data.Push<dex::u2>(ir_type->index); in WriteTypeList()
700 dex_item.field_idx = irItem->field_decl->index; in WriteClassAnnotations()
707 dex_item.method_idx = irItem->method_decl->index; in WriteClassAnnotations()
714 dex_item.method_idx = irItem->method_decl->index; in WriteClassAnnotations()
975 dex::u4 index_delta = ir_encoded_field->decl->index; in WriteEncodedField()
981 *base_index = ir_encoded_field->decl->index; in WriteEncodedField()
991 dex::u4 index_delta = ir_encoded_method->decl->index; in WriteEncodedMethod()
997 *base_index = ir_encoded_method->decl->index; in WriteEncodedMethod()
1062 dex::u4 Writer::MapStringIndex(dex::u4 index) const { in MapStringIndex()
1063 if (index != dex::kNoIndex) { in MapStringIndex()
1064 index = dex_ir_->strings_map.at(index)->index; in MapStringIndex()
1065 SLICER_CHECK(index != dex::kNoIndex); in MapStringIndex()
1067 return index; in MapStringIndex()
1071 dex::u4 Writer::MapTypeIndex(dex::u4 index) const { in MapTypeIndex()
1072 if (index != dex::kNoIndex) { in MapTypeIndex()
1073 index = dex_ir_->types_map.at(index)->index; in MapTypeIndex()
1074 SLICER_CHECK(index != dex::kNoIndex); in MapTypeIndex()
1076 return index; in MapTypeIndex()
1080 dex::u4 Writer::MapFieldIndex(dex::u4 index) const { in MapFieldIndex()
1081 if (index != dex::kNoIndex) { in MapFieldIndex()
1082 index = dex_ir_->fields_map.at(index)->index; in MapFieldIndex()
1083 SLICER_CHECK(index != dex::kNoIndex); in MapFieldIndex()
1085 return index; in MapFieldIndex()
1089 dex::u4 Writer::MapMethodIndex(dex::u4 index) const { in MapMethodIndex()
1090 if (index != dex::kNoIndex) { in MapMethodIndex()
1091 index = dex_ir_->methods_map.at(index)->index; in MapMethodIndex()
1092 SLICER_CHECK(index != dex::kNoIndex); in MapMethodIndex()
1094 return index; in MapMethodIndex()