Lines Matching refs:patch

62     LinkerPatch patch(literal_offset, Type::kIntrinsicReference, /* target_dex_file= */ nullptr);  in IntrinsicReferencePatch()
63 patch.intrinsic_data_ = intrinsic_data; in IntrinsicReferencePatch()
64 patch.pc_insn_offset_ = pc_insn_offset; in IntrinsicReferencePatch()
65 return patch; in IntrinsicReferencePatch()
71 LinkerPatch patch(literal_offset, Type::kDataBimgRelRo, /* target_dex_file= */ nullptr); in DataBimgRelRoPatch()
72 patch.boot_image_offset_ = boot_image_offset; in DataBimgRelRoPatch()
73 patch.pc_insn_offset_ = pc_insn_offset; in DataBimgRelRoPatch()
74 return patch; in DataBimgRelRoPatch()
81 LinkerPatch patch(literal_offset, Type::kMethodRelative, target_dex_file); in RelativeMethodPatch()
82 patch.method_idx_ = target_method_idx; in RelativeMethodPatch()
83 patch.pc_insn_offset_ = pc_insn_offset; in RelativeMethodPatch()
84 return patch; in RelativeMethodPatch()
91 LinkerPatch patch(literal_offset, Type::kMethodBssEntry, target_dex_file); in MethodBssEntryPatch()
92 patch.method_idx_ = target_method_idx; in MethodBssEntryPatch()
93 patch.pc_insn_offset_ = pc_insn_offset; in MethodBssEntryPatch()
94 return patch; in MethodBssEntryPatch()
100 LinkerPatch patch(literal_offset, Type::kCallRelative, target_dex_file); in RelativeCodePatch()
101 patch.method_idx_ = target_method_idx; in RelativeCodePatch()
102 return patch; in RelativeCodePatch()
109 LinkerPatch patch(literal_offset, Type::kTypeRelative, target_dex_file); in RelativeTypePatch()
110 patch.type_idx_ = target_type_idx; in RelativeTypePatch()
111 patch.pc_insn_offset_ = pc_insn_offset; in RelativeTypePatch()
112 return patch; in RelativeTypePatch()
119 LinkerPatch patch(literal_offset, Type::kTypeBssEntry, target_dex_file); in TypeBssEntryPatch()
120 patch.type_idx_ = target_type_idx; in TypeBssEntryPatch()
121 patch.pc_insn_offset_ = pc_insn_offset; in TypeBssEntryPatch()
122 return patch; in TypeBssEntryPatch()
129 LinkerPatch patch(literal_offset, Type::kStringRelative, target_dex_file); in RelativeStringPatch()
130 patch.string_idx_ = target_string_idx; in RelativeStringPatch()
131 patch.pc_insn_offset_ = pc_insn_offset; in RelativeStringPatch()
132 return patch; in RelativeStringPatch()
139 LinkerPatch patch(literal_offset, Type::kStringBssEntry, target_dex_file); in StringBssEntryPatch()
140 patch.string_idx_ = target_string_idx; in StringBssEntryPatch()
141 patch.pc_insn_offset_ = pc_insn_offset; in StringBssEntryPatch()
142 return patch; in StringBssEntryPatch()
147 LinkerPatch patch(literal_offset, in CallEntrypointPatch()
150 patch.entrypoint_offset_ = entrypoint_offset; in CallEntrypointPatch()
151 return patch; in CallEntrypointPatch()
157 LinkerPatch patch(literal_offset,
160 patch.baker_custom_value1_ = custom_value1;
161 patch.baker_custom_value2_ = custom_value2;
162 return patch;