Home
last modified time | relevance | path

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

/art/compiler/linker/arm/
Drelative_patcher_arm_base.cc269 uint32_t ArmBaseRelativePatcher::CalculateMethodCallDisplacement(uint32_t patch_offset, in CalculateMethodCallDisplacement() argument
273 uint32_t displacement = target_offset - patch_offset; in CalculateMethodCallDisplacement()
280 method_call_thunk_->GetPendingOffset() > patch_offset); in CalculateMethodCallDisplacement()
282 method_call_thunk_->GetPendingOffset() - patch_offset <= max_positive_displacement) { in CalculateMethodCallDisplacement()
283 displacement = method_call_thunk_->GetPendingOffset() - patch_offset; in CalculateMethodCallDisplacement()
287 DCHECK_LT(method_call_thunk_->LastWrittenOffset(), patch_offset); in CalculateMethodCallDisplacement()
288 displacement = method_call_thunk_->LastWrittenOffset() - patch_offset; in CalculateMethodCallDisplacement()
295 uint32_t ArmBaseRelativePatcher::GetThunkTargetOffset(const ThunkKey& key, uint32_t patch_offset) { in GetThunkTargetOffset() argument
301 DCHECK_LT(offset, patch_offset); in GetThunkTargetOffset()
302 if (patch_offset - offset <= MaxNegativeDisplacement(key.GetType())) { in GetThunkTargetOffset()
[all …]
Drelative_patcher_thumb2.cc41 uint32_t patch_offset, in PatchCall() argument
45 DCHECK_EQ(patch_offset & 1u, 0u); in PatchCall()
47 uint32_t displacement = CalculateMethodCallDisplacement(patch_offset, target_offset & ~1u); in PatchCall()
69 uint32_t patch_offset, in PatchPcRelativeReference() argument
73 uint32_t pc_base = patch_offset + (pc_literal_offset - literal_offset) + 4u /* PC adjustment */; in PatchPcRelativeReference()
89 uint32_t patch_offset ATTRIBUTE_UNUSED) { in PatchBakerReadBarrierBranch()
Drelative_patcher_thumb2.h31 uint32_t patch_offset,
35 uint32_t patch_offset,
39 uint32_t patch_offset) OVERRIDE;
Drelative_patcher_arm_base.h117 uint32_t GetThunkTargetOffset(const ThunkKey& key, uint32_t patch_offset);
119 uint32_t CalculateMethodCallDisplacement(uint32_t patch_offset,
135 uint32_t CalculateMaxNextOffset(uint32_t patch_offset, ThunkType type);
148 UnprocessedMethodCallPatch(uint32_t patch_offset, MethodReference target_method) in UnprocessedMethodCallPatch() argument
149 : patch_offset_(patch_offset), target_method_(target_method) { } in UnprocessedMethodCallPatch()
/art/compiler/linker/
Dmulti_oat_relative_patcher.h98 uint32_t patch_offset, in PatchCall() argument
100 patch_offset += adjustment_; in PatchCall()
102 relative_patcher_->PatchCall(code, literal_offset, patch_offset, target_offset); in PatchCall()
108 uint32_t patch_offset, in PatchPcRelativeReference() argument
110 patch_offset += adjustment_; in PatchPcRelativeReference()
112 relative_patcher_->PatchPcRelativeReference(code, patch, patch_offset, target_offset); in PatchPcRelativeReference()
117 uint32_t patch_offset) { in PatchBakerReadBarrierBranch() argument
118 patch_offset += adjustment_; in PatchBakerReadBarrierBranch()
119 relative_patcher_->PatchBakerReadBarrierBranch(code, patch, patch_offset); in PatchBakerReadBarrierBranch()
Drelative_patcher.h103 uint32_t patch_offset,
109 uint32_t patch_offset,
115 uint32_t patch_offset) = 0;
Drelative_patcher.cc66 uint32_t patch_offset ATTRIBUTE_UNUSED, in Create()
73 uint32_t patch_offset ATTRIBUTE_UNUSED, in Create()
80 uint32_t patch_offset ATTRIBUTE_UNUSED) { in Create()
Dmulti_oat_relative_patcher_test.cc82 uint32_t patch_offset, in PatchCall() argument
85 last_patch_offset_ = patch_offset; in PatchCall()
91 uint32_t patch_offset, in PatchPcRelativeReference() argument
94 last_patch_offset_ = patch_offset; in PatchPcRelativeReference()
100 uint32_t patch_offset ATTRIBUTE_UNUSED) { in PatchBakerReadBarrierBranch()
/art/compiler/linker/x86_64/
Drelative_patcher_x86_64.cc26 uint32_t patch_offset, in PatchPcRelativeReference() argument
30 uint32_t displacement = target_offset - patch_offset; in PatchPcRelativeReference()
39 uint32_t patch_offset ATTRIBUTE_UNUSED) { in PatchBakerReadBarrierBranch()
Drelative_patcher_x86_64.h31 uint32_t patch_offset,
35 uint32_t patch_offset) OVERRIDE;
/art/compiler/linker/mips64/
Drelative_patcher_mips64.cc41 uint32_t patch_offset, in PatchCall() argument
58 uint32_t diff = target_offset - patch_offset; in PatchCall()
75 uint32_t patch_offset, in PatchPcRelativeReference() argument
94 uint32_t anchor_offset = patch_offset - literal_offset + anchor_literal_offset; in PatchPcRelativeReference()
112 uint32_t patch_offset ATTRIBUTE_UNUSED) { in PatchBakerReadBarrierBranch()
Drelative_patcher_mips64.h36 uint32_t patch_offset,
40 uint32_t patch_offset,
44 uint32_t patch_offset) OVERRIDE;
/art/compiler/linker/arm64/
Drelative_patcher_arm64.cc132 uint32_t patch_offset = quick_code_offset + patch.LiteralOffset(); in ReserveSpace() local
133 if (NeedsErratum843419Thunk(code, patch.LiteralOffset(), patch_offset)) { in ReserveSpace()
134 adrp_thunk_locations_.emplace_back(patch_offset, thunk_offset); in ReserveSpace()
185 uint32_t patch_offset, uint32_t in PatchCall() argument
189 DCHECK_EQ(patch_offset & 3u, 0u); in PatchCall()
191 uint32_t displacement = CalculateMethodCallDisplacement(patch_offset, target_offset & ~1u); in PatchCall()
205 uint32_t patch_offset, in PatchPcRelativeReference() argument
207 DCHECK_EQ(patch_offset & 3u, 0u); in PatchPcRelativeReference()
212 uint32_t disp = target_offset - ((patch_offset - literal_offset + pc_insn_offset) & ~0xfffu); in PatchPcRelativeReference()
220 adrp_thunk_locations_[processed_adrp_thunks_].first == patch_offset) { in PatchPcRelativeReference()
[all …]
Drelative_patcher_arm64.h60 uint32_t patch_offset,
64 uint32_t patch_offset,
68 uint32_t patch_offset) OVERRIDE;
96 uint32_t patch_offset);
/art/compiler/linker/mips/
Drelative_patcher_mips.h38 uint32_t patch_offset,
42 uint32_t patch_offset,
46 uint32_t patch_offset) OVERRIDE;
Drelative_patcher_mips.cc41 uint32_t patch_offset ATTRIBUTE_UNUSED, in PatchCall()
48 uint32_t patch_offset, in PatchPcRelativeReference() argument
105 uint32_t anchor_offset = patch_offset - literal_offset + anchor_literal_offset; in PatchPcRelativeReference()
122 uint32_t patch_offset ATTRIBUTE_UNUSED) { in PatchBakerReadBarrierBranch()
/art/compiler/linker/x86/
Drelative_patcher_x86.h31 uint32_t patch_offset,
35 uint32_t patch_offset) OVERRIDE;
Drelative_patcher_x86.cc26 uint32_t patch_offset, in PatchPcRelativeReference() argument
51 uint32_t anchor_offset = patch_offset - literal_offset + anchor_literal_offset; in PatchPcRelativeReference()
61 uint32_t patch_offset ATTRIBUTE_UNUSED) { in PatchBakerReadBarrierBranch()
Drelative_patcher_x86_base.cc39 uint32_t patch_offset, in PatchCall() argument
43 uint32_t displacement = target_offset - patch_offset; in PatchCall()
Drelative_patcher_x86_base.h34 uint32_t patch_offset,