Lines Matching refs:patch
65 LinkerPatch patch(literal_offset, Type::kIntrinsicReference, /* target_dex_file= */ nullptr); in IntrinsicReferencePatch()
66 patch.intrinsic_data_ = intrinsic_data; in IntrinsicReferencePatch()
67 patch.pc_insn_offset_ = pc_insn_offset; in IntrinsicReferencePatch()
68 return patch; in IntrinsicReferencePatch()
74 LinkerPatch patch(literal_offset, Type::kDataBimgRelRo, /* target_dex_file= */ nullptr); in DataBimgRelRoPatch()
75 patch.boot_image_offset_ = boot_image_offset; in DataBimgRelRoPatch()
76 patch.pc_insn_offset_ = pc_insn_offset; in DataBimgRelRoPatch()
77 return patch; in DataBimgRelRoPatch()
84 LinkerPatch patch(literal_offset, Type::kMethodRelative, target_dex_file); in RelativeMethodPatch()
85 patch.method_idx_ = target_method_idx; in RelativeMethodPatch()
86 patch.pc_insn_offset_ = pc_insn_offset; in RelativeMethodPatch()
87 return patch; in RelativeMethodPatch()
94 LinkerPatch patch(literal_offset, Type::kMethodBssEntry, target_dex_file); in MethodBssEntryPatch()
95 patch.method_idx_ = target_method_idx; in MethodBssEntryPatch()
96 patch.pc_insn_offset_ = pc_insn_offset; in MethodBssEntryPatch()
97 return patch; in MethodBssEntryPatch()
104 LinkerPatch patch(literal_offset, Type::kJniEntrypointRelative, target_dex_file); in RelativeJniEntrypointPatch()
105 patch.method_idx_ = target_method_idx; in RelativeJniEntrypointPatch()
106 patch.pc_insn_offset_ = pc_insn_offset; in RelativeJniEntrypointPatch()
107 return patch; in RelativeJniEntrypointPatch()
113 LinkerPatch patch(literal_offset, Type::kCallRelative, target_dex_file); in RelativeCodePatch()
114 patch.method_idx_ = target_method_idx; in RelativeCodePatch()
115 return patch; in RelativeCodePatch()
122 LinkerPatch patch(literal_offset, Type::kTypeRelative, target_dex_file); in RelativeTypePatch()
123 patch.type_idx_ = target_type_idx; in RelativeTypePatch()
124 patch.pc_insn_offset_ = pc_insn_offset; in RelativeTypePatch()
125 return patch; in RelativeTypePatch()
132 LinkerPatch patch(literal_offset, Type::kTypeBssEntry, target_dex_file); in TypeBssEntryPatch()
133 patch.type_idx_ = target_type_idx; in TypeBssEntryPatch()
134 patch.pc_insn_offset_ = pc_insn_offset; in TypeBssEntryPatch()
135 return patch; in TypeBssEntryPatch()
142 LinkerPatch patch(literal_offset, Type::kPublicTypeBssEntry, target_dex_file); in PublicTypeBssEntryPatch()
143 patch.type_idx_ = target_type_idx; in PublicTypeBssEntryPatch()
144 patch.pc_insn_offset_ = pc_insn_offset; in PublicTypeBssEntryPatch()
145 return patch; in PublicTypeBssEntryPatch()
152 LinkerPatch patch(literal_offset, Type::kPackageTypeBssEntry, target_dex_file); in PackageTypeBssEntryPatch()
153 patch.type_idx_ = target_type_idx; in PackageTypeBssEntryPatch()
154 patch.pc_insn_offset_ = pc_insn_offset; in PackageTypeBssEntryPatch()
155 return patch; in PackageTypeBssEntryPatch()
162 LinkerPatch patch(literal_offset, Type::kStringRelative, target_dex_file); in RelativeStringPatch()
163 patch.string_idx_ = target_string_idx; in RelativeStringPatch()
164 patch.pc_insn_offset_ = pc_insn_offset; in RelativeStringPatch()
165 return patch; in RelativeStringPatch()
172 LinkerPatch patch(literal_offset, Type::kStringBssEntry, target_dex_file); in StringBssEntryPatch()
173 patch.string_idx_ = target_string_idx; in StringBssEntryPatch()
174 patch.pc_insn_offset_ = pc_insn_offset; in StringBssEntryPatch()
175 return patch; in StringBssEntryPatch()
180 LinkerPatch patch(literal_offset, in CallEntrypointPatch()
183 patch.entrypoint_offset_ = entrypoint_offset; in CallEntrypointPatch()
184 return patch; in CallEntrypointPatch()
190 LinkerPatch patch(literal_offset,
193 patch.baker_custom_value1_ = custom_value1;
194 patch.baker_custom_value2_ = custom_value2;
195 return patch;