Home
last modified time | relevance | path

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

/aosp12/art/dex2oat/linker/arm/
H A Drelative_patcher_arm_base.cc345 uint32_t displacement = target_offset - patch_offset; in CalculateMethodCallDisplacement()
352 method_call_thunk_->GetPendingOffset() > patch_offset); in CalculateMethodCallDisplacement()
373 DCHECK_LT(offset, patch_offset); in GetThunkTargetOffset()
374 if (patch_offset - offset <= MaxNegativeDisplacement(key)) { in GetThunkTargetOffset()
380 DCHECK_GT(offset, patch_offset); in GetThunkTargetOffset()
381 DCHECK_LE(offset - patch_offset, MaxPositiveDisplacement(key)); in GetThunkTargetOffset()
406 uint32_t patch_offset = code_offset + patch.LiteralOffset(); in ProcessPatches() local
490 method_call_thunk_->LastReservedOffset() <= patch_offset); in ResolveMethodCalls()
495 DCHECK_GT(quick_code_offset, patch_offset); in ResolveMethodCalls()
505 if (target_offset >= patch_offset) { in ResolveMethodCalls()
[all …]
H A Drelative_patcher_thumb2.cc58 uint32_t patch_offset, in PatchCall() argument
60 DCHECK_ALIGNED(patch_offset, 2u); in PatchCall()
68 uint32_t patch_offset, in PatchPcRelativeReference() argument
88 uint32_t patch_offset) { in PatchEntrypointCall() argument
89 DCHECK_ALIGNED(patch_offset, 2u); in PatchEntrypointCall()
91 uint32_t target_offset = GetThunkTargetOffset(key, patch_offset); in PatchEntrypointCall()
93 uint32_t displacement = target_offset - patch_offset; in PatchEntrypointCall()
99 uint32_t patch_offset) { in PatchBakerReadBarrierBranch() argument
100 DCHECK_ALIGNED(patch_offset, 2u); in PatchBakerReadBarrierBranch()
107 uint32_t target_offset = GetThunkTargetOffset(key, patch_offset); in PatchBakerReadBarrierBranch()
[all …]
H A Drelative_patcher_thumb2.h39 uint32_t patch_offset,
43 uint32_t patch_offset,
47 uint32_t patch_offset) override;
50 uint32_t patch_offset) override;
H A Drelative_patcher_arm_base.h95 uint32_t GetThunkTargetOffset(const ThunkKey& key, uint32_t patch_offset);
97 uint32_t CalculateMethodCallDisplacement(uint32_t patch_offset,
111 uint32_t CalculateMaxNextOffset(uint32_t patch_offset, const ThunkKey& key);
126 UnprocessedMethodCallPatch(uint32_t patch_offset, MethodReference target_method) in UnprocessedMethodCallPatch() argument
127 : patch_offset_(patch_offset), target_method_(target_method) { } in UnprocessedMethodCallPatch()
/aosp12/art/dex2oat/linker/
H A Dmulti_oat_relative_patcher.h100 uint32_t patch_offset, in PatchCall() argument
102 patch_offset += adjustment_; in PatchCall()
104 relative_patcher_->PatchCall(code, literal_offset, patch_offset, target_offset); in PatchCall()
110 uint32_t patch_offset, in PatchPcRelativeReference() argument
112 patch_offset += adjustment_; in PatchPcRelativeReference()
119 uint32_t patch_offset) { in PatchEntrypointCall() argument
120 patch_offset += adjustment_; in PatchEntrypointCall()
121 relative_patcher_->PatchEntrypointCall(code, patch, patch_offset); in PatchEntrypointCall()
126 uint32_t patch_offset) { in PatchBakerReadBarrierBranch() argument
127 patch_offset += adjustment_; in PatchBakerReadBarrierBranch()
[all …]
H A Drelative_patcher.h131 uint32_t patch_offset,
137 uint32_t patch_offset,
143 uint32_t patch_offset) = 0;
148 uint32_t patch_offset) = 0;
H A Drelative_patcher.cc62 uint32_t patch_offset ATTRIBUTE_UNUSED, in Create()
69 uint32_t patch_offset ATTRIBUTE_UNUSED, in Create()
76 uint32_t patch_offset ATTRIBUTE_UNUSED) override { in Create()
82 uint32_t patch_offset ATTRIBUTE_UNUSED) override { in Create()
H A Dmulti_oat_relative_patcher_test.cc81 uint32_t patch_offset, in PatchCall() argument
84 last_patch_offset_ = patch_offset; in PatchCall()
90 uint32_t patch_offset, in PatchPcRelativeReference() argument
93 last_patch_offset_ = patch_offset; in PatchPcRelativeReference()
99 uint32_t patch_offset ATTRIBUTE_UNUSED) override { in PatchEntrypointCall()
105 uint32_t patch_offset ATTRIBUTE_UNUSED) override { in PatchBakerReadBarrierBranch()
/aosp12/art/dex2oat/linker/arm64/
H A Drelative_patcher_arm64.cc195 uint32_t patch_offset, in PatchCall() argument
198 DCHECK_ALIGNED(patch_offset, 4u); in PatchCall()
208 DCHECK_ALIGNED(patch_offset, 4u); in PatchPcRelativeReference()
228 uint32_t out_disp = thunk_offset - patch_offset; in PatchPcRelativeReference()
312 DCHECK_ALIGNED(patch_offset, 4u); in PatchEntrypointCall()
315 uint32_t displacement = target_offset - patch_offset; in PatchEntrypointCall()
322 DCHECK_ALIGNED(patch_offset, 4u); in PatchBakerReadBarrierBranch()
329 uint32_t disp = target_offset - patch_offset; in PatchBakerReadBarrierBranch()
386 DCHECK_EQ(patch_offset & 0x3u, 0u); in NeedsErratum843419Thunk()
387 if ((patch_offset & 0xff8) == 0xff8) { // ...ff8 or ...ffc in NeedsErratum843419Thunk()
[all …]
H A Drelative_patcher_arm64.h44 uint32_t patch_offset,
48 uint32_t patch_offset,
52 uint32_t patch_offset) override;
55 uint32_t patch_offset) override;
66 uint32_t patch_offset);
/aosp12/bootable/recovery/applypatch/
H A Dbspatch.cpp69 size_t patch_offset, SinkFn sink) { in ApplyBSDiffPatch() argument
70 CHECK_LE(patch_offset, patch.data.size()); in ApplyBSDiffPatch()
73 reinterpret_cast<const uint8_t*>(&patch.data[patch_offset]), in ApplyBSDiffPatch()
74 patch.data.size() - patch_offset, sink); in ApplyBSDiffPatch()
80 SHA1(reinterpret_cast<const uint8_t*>(patch.data.data() + patch_offset), in ApplyBSDiffPatch()
81 patch.data.size() - patch_offset, digest); in ApplyBSDiffPatch()
83 LOG(ERROR) << "Patch may be corrupted, offset: " << patch_offset << ", SHA1: " << patch_sha1; in ApplyBSDiffPatch()
H A Dimgpatch.cpp54 const Value& patch, size_t patch_offset, in ApplyBSDiffPatchAndStreamOutput() argument
113 int bspatch_result = ApplyBSDiffPatch(src_data, src_len, patch, patch_offset, compression_sink); in ApplyBSDiffPatchAndStreamOutput()
178 size_t patch_offset = static_cast<size_t>(Read8(normal_header + 16)); in ApplyImagePatch() local
184 if (ApplyBSDiffPatch(old_data + src_start, src_len, patch, patch_offset, sink) != 0) { in ApplyImagePatch()
222 size_t patch_offset = static_cast<size_t>(Read8(deflate_header + 16)); in ApplyImagePatch() local
280 patch_offset, deflate_header, sink)) { in ApplyImagePatch()
/aosp12/art/dex2oat/linker/x86_64/
H A Drelative_patcher_x86_64.cc27 uint32_t patch_offset, in PatchPcRelativeReference() argument
31 uint32_t displacement = target_offset - patch_offset; in PatchPcRelativeReference()
40 uint32_t patch_offset ATTRIBUTE_UNUSED) { in PatchEntrypointCall()
46 uint32_t patch_offset ATTRIBUTE_UNUSED) { in PatchBakerReadBarrierBranch()
H A Drelative_patcher_x86_64.h31 uint32_t patch_offset,
35 uint32_t patch_offset) override;
38 uint32_t patch_offset) override;
/aosp12/art/dex2oat/linker/x86/
H A Drelative_patcher_x86.cc27 uint32_t patch_offset, in PatchPcRelativeReference() argument
52 uint32_t anchor_offset = patch_offset - literal_offset + anchor_literal_offset; in PatchPcRelativeReference()
62 uint32_t patch_offset ATTRIBUTE_UNUSED) { in PatchEntrypointCall()
68 uint32_t patch_offset ATTRIBUTE_UNUSED) { in PatchBakerReadBarrierBranch()
H A Drelative_patcher_x86.h31 uint32_t patch_offset,
35 uint32_t patch_offset) override;
38 uint32_t patch_offset) override;
H A Drelative_patcher_x86_base.cc46 uint32_t patch_offset, in PatchCall() argument
50 uint32_t displacement = target_offset - patch_offset; in PatchCall()
H A Drelative_patcher_x86_base.h34 uint32_t patch_offset,
/aosp12/bootable/recovery/applypatch/include/applypatch/
H A Dapplypatch.h110 size_t patch_offset, SinkFn sink);