Home
last modified time | relevance | path

Searched refs:target_offset (Results 1 – 20 of 20) sorted by relevance

/art/compiler/linker/
Dmulti_oat_relative_patcher.h99 uint32_t target_offset) { in PatchCall() argument
101 target_offset += adjustment_; in PatchCall()
102 relative_patcher_->PatchCall(code, literal_offset, patch_offset, target_offset); in PatchCall()
109 uint32_t target_offset) { in PatchPcRelativeReference() argument
111 target_offset += adjustment_; in PatchPcRelativeReference()
112 relative_patcher_->PatchPcRelativeReference(code, patch, patch_offset, target_offset); in PatchPcRelativeReference()
Drelative_patcher_test.h154 uint32_t target_offset = in Link() local
157 offset + patch.LiteralOffset(), target_offset); in Link()
159 uint32_t target_offset = dex_cache_arrays_begin_ + patch.TargetDexCacheElementOffset(); in Link() local
163 target_offset); in Link()
165 uint32_t target_offset = string_index_to_offset_map_.Get(patch.TargetStringIndex()); in Link() local
169 target_offset); in Link()
Drelative_patcher.h104 uint32_t target_offset) = 0;
110 uint32_t target_offset) = 0;
Drelative_patcher.cc61 uint32_t target_offset ATTRIBUTE_UNUSED) OVERRIDE { in Create()
68 uint32_t target_offset ATTRIBUTE_UNUSED) OVERRIDE { in Create()
Dmulti_oat_relative_patcher_test.cc83 uint32_t target_offset) OVERRIDE { in PatchCall() argument
86 last_target_offset_ = target_offset; in PatchCall()
92 uint32_t target_offset) OVERRIDE { in PatchPcRelativeReference() argument
95 last_target_offset_ = target_offset; in PatchPcRelativeReference()
/art/compiler/linker/arm/
Drelative_patcher_arm_base.cc124 uint32_t target_offset) { in CalculateDisplacement() argument
126 uint32_t displacement = target_offset - patch_offset; in CalculateDisplacement()
172 uint32_t target_offset = result.second - CompiledCode::CodeDelta(instruction_set_); in ReserveSpaceProcessPatches() local
173 if (target_offset >= patch_offset) { in ReserveSpaceProcessPatches()
174 DCHECK_LE(target_offset - patch_offset, max_positive_displacement_); in ReserveSpaceProcessPatches()
178 target_offset = std::max(target_offset, thunk_locations_.back()); in ReserveSpaceProcessPatches()
180 if (patch_offset - target_offset > max_negative_displacement_) { in ReserveSpaceProcessPatches()
Drelative_patcher_thumb2.cc34 uint32_t target_offset) { in PatchCall() argument
38 DCHECK_EQ(target_offset & 1u, 1u); // Thumb2 mode bit. in PatchCall()
39 uint32_t displacement = CalculateDisplacement(patch_offset, target_offset & ~1u); in PatchCall()
62 uint32_t target_offset) { in PatchPcRelativeReference() argument
66 uint32_t diff = target_offset - pc_base; in PatchPcRelativeReference()
Drelative_patcher_thumb2.h32 uint32_t target_offset) OVERRIDE;
36 uint32_t target_offset) OVERRIDE;
Drelative_patcher_arm_base.h47 uint32_t CalculateDisplacement(uint32_t patch_offset, uint32_t target_offset);
Drelative_patcher_thumb2_test.cc131 void CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, uint32_t target_offset);
177 uint32_t target_offset) { in CheckPcRelativePatch() argument
183 uint32_t diff = target_offset - pc_base_offset; in CheckPcRelativePatch()
/art/compiler/linker/x86_64/
Drelative_patcher_x86_64.cc27 uint32_t target_offset) { in PatchPcRelativeReference() argument
30 uint32_t displacement = target_offset - patch_offset; in PatchPcRelativeReference()
Drelative_patcher_x86_64.h32 uint32_t target_offset) OVERRIDE;
/art/compiler/linker/x86/
Drelative_patcher_x86_base.cc40 uint32_t target_offset) { in PatchCall() argument
43 uint32_t displacement = target_offset - patch_offset; in PatchCall()
Drelative_patcher_x86.cc27 uint32_t target_offset) { in PatchPcRelativeReference() argument
52 uint32_t diff = target_offset - anchor_offset; in PatchPcRelativeReference()
Drelative_patcher_x86.h32 uint32_t target_offset) OVERRIDE;
Drelative_patcher_x86_base.h35 uint32_t target_offset) OVERRIDE;
/art/compiler/linker/arm64/
Drelative_patcher_arm64.cc146 target_offset) { in PatchCall() argument
150 DCHECK_EQ(target_offset & 3u, 0u); in PatchCall()
151 uint32_t displacement = CalculateDisplacement(patch_offset, target_offset & ~1u); in PatchCall()
166 uint32_t target_offset) { in PatchPcRelativeReference() argument
168 DCHECK_EQ(target_offset & 3u, 0u); in PatchPcRelativeReference()
172 uint32_t disp = target_offset - ((patch_offset - literal_offset + pc_insn_offset) & ~0xfffu); in PatchPcRelativeReference()
184 uint32_t adrp_disp = target_offset - (thunk_offset & ~0xfffu); in PatchPcRelativeReference()
Drelative_patcher_arm64_test.cc161 uint32_t target_offset, in GenNopsAndAdrpAndUse() argument
169 CHECK_ALIGNED(target_offset, 4u); in GenNopsAndAdrpAndUse()
171 uint32_t disp = target_offset - (adrp_offset & ~0xfffu); in GenNopsAndAdrpAndUse()
200 uint32_t target_offset) { in GenNopsAndAdrpLdr() argument
201 return GenNopsAndAdrpAndUse(num_nops, method_offset, target_offset, kLdrWInsn); in GenNopsAndAdrpLdr()
217 uint32_t target_offset = dex_cache_arrays_begin_ + element_offset; in TestNopsAdrpLdr() local
218 auto expected_code = GenNopsAndAdrpLdr(num_nops, method1_offset, target_offset); in TestNopsAdrpLdr()
224 uint32_t target_offset) { in GenNopsAndAdrpAdd() argument
225 return GenNopsAndAdrpAndUse(num_nops, method_offset, target_offset, kAddXInsn); in GenNopsAndAdrpAdd()
290 uint32_t target_offset, in TestNopsAdrpInsn2AndUse() argument
[all …]
Drelative_patcher_arm64.h39 uint32_t target_offset) OVERRIDE;
43 uint32_t target_offset) OVERRIDE;
/art/compiler/
Doat_writer.cc1046 uint32_t target_offset = GetTargetOffset(patch); in VisitMethod() local
1050 target_offset); in VisitMethod()
1054 uint32_t target_offset = GetDexCacheOffset(patch); in VisitMethod() local
1058 target_offset); in VisitMethod()
1062 uint32_t target_offset = GetTargetObjectOffset(GetTargetString(patch)); in VisitMethod() local
1066 target_offset); in VisitMethod()
1070 uint32_t target_offset = GetTargetOffset(patch); in VisitMethod() local
1071 PatchCodeAddress(&patched_code_, literal_offset, target_offset); in VisitMethod()
1138 uint32_t target_offset = writer_->relative_patcher_->GetOffset(patch.TargetMethod()); in GetTargetOffset() local
1141 if (UNLIKELY(target_offset == 0)) { in GetTargetOffset()
[all …]