Lines Matching refs:patch

61     LinkerPatch patch(literal_offset, Type::kIntrinsicReference, /* target_dex_file= */ nullptr);  in IntrinsicReferencePatch()
62 patch.intrinsic_data_ = intrinsic_data; in IntrinsicReferencePatch()
63 patch.pc_insn_offset_ = pc_insn_offset; in IntrinsicReferencePatch()
64 return patch; in IntrinsicReferencePatch()
70 LinkerPatch patch(literal_offset, Type::kDataBimgRelRo, /* target_dex_file= */ nullptr); in DataBimgRelRoPatch()
71 patch.boot_image_offset_ = boot_image_offset; in DataBimgRelRoPatch()
72 patch.pc_insn_offset_ = pc_insn_offset; in DataBimgRelRoPatch()
73 return patch; in DataBimgRelRoPatch()
80 LinkerPatch patch(literal_offset, Type::kMethodRelative, target_dex_file); in RelativeMethodPatch()
81 patch.method_idx_ = target_method_idx; in RelativeMethodPatch()
82 patch.pc_insn_offset_ = pc_insn_offset; in RelativeMethodPatch()
83 return patch; in RelativeMethodPatch()
90 LinkerPatch patch(literal_offset, Type::kMethodBssEntry, target_dex_file); in MethodBssEntryPatch()
91 patch.method_idx_ = target_method_idx; in MethodBssEntryPatch()
92 patch.pc_insn_offset_ = pc_insn_offset; in MethodBssEntryPatch()
93 return patch; in MethodBssEntryPatch()
99 LinkerPatch patch(literal_offset, Type::kCallRelative, target_dex_file); in RelativeCodePatch()
100 patch.method_idx_ = target_method_idx; in RelativeCodePatch()
101 return patch; in RelativeCodePatch()
108 LinkerPatch patch(literal_offset, Type::kTypeRelative, target_dex_file); in RelativeTypePatch()
109 patch.type_idx_ = target_type_idx; in RelativeTypePatch()
110 patch.pc_insn_offset_ = pc_insn_offset; in RelativeTypePatch()
111 return patch; in RelativeTypePatch()
118 LinkerPatch patch(literal_offset, Type::kTypeBssEntry, target_dex_file); in TypeBssEntryPatch()
119 patch.type_idx_ = target_type_idx; in TypeBssEntryPatch()
120 patch.pc_insn_offset_ = pc_insn_offset; in TypeBssEntryPatch()
121 return patch; in TypeBssEntryPatch()
128 LinkerPatch patch(literal_offset, Type::kStringRelative, target_dex_file); in RelativeStringPatch()
129 patch.string_idx_ = target_string_idx; in RelativeStringPatch()
130 patch.pc_insn_offset_ = pc_insn_offset; in RelativeStringPatch()
131 return patch; in RelativeStringPatch()
138 LinkerPatch patch(literal_offset, Type::kStringBssEntry, target_dex_file); in StringBssEntryPatch()
139 patch.string_idx_ = target_string_idx; in StringBssEntryPatch()
140 patch.pc_insn_offset_ = pc_insn_offset; in StringBssEntryPatch()
141 return patch; in StringBssEntryPatch()
147 LinkerPatch patch(literal_offset,
150 patch.baker_custom_value1_ = custom_value1;
151 patch.baker_custom_value2_ = custom_value2;
152 return patch;