Lines Matching full:patch

72     LinkerPatch patch(literal_offset, Type::kIntrinsicReference, /* target_dex_file= */ nullptr);  in IntrinsicReferencePatch()
73 patch.intrinsic_data_ = intrinsic_data; in IntrinsicReferencePatch()
74 patch.pc_insn_offset_ = pc_insn_offset; in IntrinsicReferencePatch()
75 return patch; in IntrinsicReferencePatch()
81 LinkerPatch patch(literal_offset, Type::kBootImageRelRo, /* target_dex_file= */ nullptr); in BootImageRelRoPatch()
82 patch.boot_image_offset_ = boot_image_offset; in BootImageRelRoPatch()
83 patch.pc_insn_offset_ = pc_insn_offset; in BootImageRelRoPatch()
84 return patch; in BootImageRelRoPatch()
91 LinkerPatch patch(literal_offset, Type::kMethodRelative, target_dex_file); in RelativeMethodPatch()
92 patch.method_idx_ = target_method_idx; in RelativeMethodPatch()
93 patch.pc_insn_offset_ = pc_insn_offset; in RelativeMethodPatch()
94 return patch; in RelativeMethodPatch()
101 LinkerPatch patch(literal_offset, Type::kMethodAppImageRelRo, target_dex_file); in MethodAppImageRelRoPatch()
102 patch.method_idx_ = target_method_idx; in MethodAppImageRelRoPatch()
103 patch.pc_insn_offset_ = pc_insn_offset; in MethodAppImageRelRoPatch()
104 return patch; in MethodAppImageRelRoPatch()
111 LinkerPatch patch(literal_offset, Type::kMethodBssEntry, target_dex_file); in MethodBssEntryPatch()
112 patch.method_idx_ = target_method_idx; in MethodBssEntryPatch()
113 patch.pc_insn_offset_ = pc_insn_offset; in MethodBssEntryPatch()
114 return patch; in MethodBssEntryPatch()
121 LinkerPatch patch(literal_offset, Type::kJniEntrypointRelative, target_dex_file); in RelativeJniEntrypointPatch()
122 patch.method_idx_ = target_method_idx; in RelativeJniEntrypointPatch()
123 patch.pc_insn_offset_ = pc_insn_offset; in RelativeJniEntrypointPatch()
124 return patch; in RelativeJniEntrypointPatch()
130 LinkerPatch patch(literal_offset, Type::kCallRelative, target_dex_file); in RelativeCodePatch()
131 patch.method_idx_ = target_method_idx; in RelativeCodePatch()
132 return patch; in RelativeCodePatch()
139 LinkerPatch patch(literal_offset, Type::kTypeRelative, target_dex_file); in RelativeTypePatch()
140 patch.type_idx_ = target_type_idx; in RelativeTypePatch()
141 patch.pc_insn_offset_ = pc_insn_offset; in RelativeTypePatch()
142 return patch; in RelativeTypePatch()
149 LinkerPatch patch(literal_offset, Type::kTypeAppImageRelRo, target_dex_file); in TypeAppImageRelRoPatch()
150 patch.type_idx_ = target_type_idx; in TypeAppImageRelRoPatch()
151 patch.pc_insn_offset_ = pc_insn_offset; in TypeAppImageRelRoPatch()
152 return patch; in TypeAppImageRelRoPatch()
159 LinkerPatch patch(literal_offset, Type::kTypeBssEntry, target_dex_file); in TypeBssEntryPatch()
160 patch.type_idx_ = target_type_idx; in TypeBssEntryPatch()
161 patch.pc_insn_offset_ = pc_insn_offset; in TypeBssEntryPatch()
162 return patch; in TypeBssEntryPatch()
169 LinkerPatch patch(literal_offset, Type::kPublicTypeBssEntry, target_dex_file); in PublicTypeBssEntryPatch()
170 patch.type_idx_ = target_type_idx; in PublicTypeBssEntryPatch()
171 patch.pc_insn_offset_ = pc_insn_offset; in PublicTypeBssEntryPatch()
172 return patch; in PublicTypeBssEntryPatch()
179 LinkerPatch patch(literal_offset, Type::kPackageTypeBssEntry, target_dex_file); in PackageTypeBssEntryPatch()
180 patch.type_idx_ = target_type_idx; in PackageTypeBssEntryPatch()
181 patch.pc_insn_offset_ = pc_insn_offset; in PackageTypeBssEntryPatch()
182 return patch; in PackageTypeBssEntryPatch()
189 LinkerPatch patch(literal_offset, Type::kStringRelative, target_dex_file); in RelativeStringPatch()
190 patch.string_idx_ = target_string_idx; in RelativeStringPatch()
191 patch.pc_insn_offset_ = pc_insn_offset; in RelativeStringPatch()
192 return patch; in RelativeStringPatch()
199 LinkerPatch patch(literal_offset, Type::kStringBssEntry, target_dex_file); in StringBssEntryPatch()
200 patch.string_idx_ = target_string_idx; in StringBssEntryPatch()
201 patch.pc_insn_offset_ = pc_insn_offset; in StringBssEntryPatch()
202 return patch; in StringBssEntryPatch()
209 LinkerPatch patch(literal_offset, Type::kMethodTypeBssEntry, target_dex_file); in MethodTypeBssEntryPatch()
210 patch.proto_idx_ = target_proto_idx; in MethodTypeBssEntryPatch()
211 patch.pc_insn_offset_ = pc_insn_offset; in MethodTypeBssEntryPatch()
212 return patch; in MethodTypeBssEntryPatch()
217 LinkerPatch patch(literal_offset, in CallEntrypointPatch()
220 patch.entrypoint_offset_ = entrypoint_offset; in CallEntrypointPatch()
221 return patch; in CallEntrypointPatch()
227 LinkerPatch patch(literal_offset,
230 patch.baker_custom_value1_ = custom_value1;
231 patch.baker_custom_value2_ = custom_value2;
232 return patch;