Home
last modified time | relevance | path

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

/art/dex2oat/linker/arm/
Drelative_patcher_thumb2.cc59 uint32_t target_offset) { in PatchCall() argument
61 DCHECK_EQ(target_offset & 1u, 1u); // Thumb2 mode bit. in PatchCall()
62 uint32_t displacement = CalculateMethodCallDisplacement(patch_offset, target_offset & ~1u); in PatchCall()
69 uint32_t target_offset) { in PatchPcRelativeReference() argument
73 uint32_t diff = target_offset - pc_base; in PatchPcRelativeReference()
91 uint32_t target_offset = GetThunkTargetOffset(key, patch_offset); in PatchEntrypointCall() local
92 DCHECK_ALIGNED(target_offset, 4u); in PatchEntrypointCall()
93 uint32_t displacement = target_offset - patch_offset; in PatchEntrypointCall()
107 uint32_t target_offset = GetThunkTargetOffset(key, patch_offset); in PatchBakerReadBarrierBranch() local
108 DCHECK_ALIGNED(target_offset, 4u); in PatchBakerReadBarrierBranch()
[all …]
Drelative_patcher_thumb2.h36 uint32_t target_offset) override;
40 uint32_t target_offset) override;
Drelative_patcher_arm_base.cc342 uint32_t target_offset) { in CalculateMethodCallDisplacement() argument
345 uint32_t displacement = target_offset - patch_offset; in CalculateMethodCallDisplacement()
504 uint32_t target_offset = in ResolveMethodCalls() local
506 if (target_offset >= patch_offset) { in ResolveMethodCalls()
507 DCHECK_LE(target_offset - patch_offset, max_positive_displacement); in ResolveMethodCalls()
508 } else if (patch_offset - target_offset > max_negative_displacement) { in ResolveMethodCalls()
Drelative_patcher_arm_base.h98 uint32_t target_offset);
Drelative_patcher_thumb2_test.cc121 uint32_t BneWWithOffset(uint32_t bne_offset, uint32_t target_offset) { in BneWWithOffset() argument
126 if (!IsAligned<2u>(target_offset)) { in BneWWithOffset()
127 LOG(ERROR) << "Unaligned target_offset: " << target_offset; in BneWWithOffset()
130 uint32_t diff = target_offset - bne_offset - kPcAdjustment; in BneWWithOffset()
290 void CheckPcRelativePatch(const ArrayRef<const LinkerPatch>& patches, uint32_t target_offset);
398 uint32_t target_offset) { in CheckPcRelativePatch() argument
404 uint32_t diff = target_offset - pc_base_offset; in CheckPcRelativePatch()
/art/dex2oat/linker/
Dmulti_oat_relative_patcher.h101 uint32_t target_offset) { in PatchCall() argument
103 target_offset += adjustment_; in PatchCall()
104 relative_patcher_->PatchCall(code, literal_offset, patch_offset, target_offset); in PatchCall()
111 uint32_t target_offset) { in PatchPcRelativeReference() argument
113 target_offset += adjustment_; in PatchPcRelativeReference()
114 relative_patcher_->PatchPcRelativeReference(code, patch, patch_offset, target_offset); in PatchPcRelativeReference()
Drelative_patcher_test.h176 uint32_t target_offset = in Link() local
182 target_offset); in Link()
184 uint32_t target_offset = in Link() local
190 target_offset); in Link()
192 uint32_t target_offset = in Link() local
197 target_offset); in Link()
199 uint32_t target_offset = in Link() local
204 target_offset); in Link()
Drelative_patcher.h132 uint32_t target_offset) = 0;
138 uint32_t target_offset) = 0;
Drelative_patcher.cc66 [[maybe_unused]] uint32_t target_offset) override { in Create() argument
73 [[maybe_unused]] uint32_t target_offset) override { in Create() argument
Dmulti_oat_relative_patcher_test.cc82 uint32_t target_offset) override { in PatchCall() argument
85 last_target_offset_ = target_offset; in PatchCall()
91 uint32_t target_offset) override { in PatchPcRelativeReference() argument
94 last_target_offset_ = target_offset; in PatchPcRelativeReference()
Doat_writer.cc1642 uint32_t target_offset = GetTargetIntrinsicReferenceOffset(patch); in VisitMethod() local
1646 target_offset); in VisitMethod()
1650 uint32_t target_offset = in VisitMethod() local
1656 target_offset); in VisitMethod()
1660 uint32_t target_offset = in VisitMethod() local
1665 target_offset); in VisitMethod()
1670 uint32_t target_offset = GetTargetOffset(patch); in VisitMethod() local
1674 target_offset); in VisitMethod()
1678 uint32_t target_offset = GetTargetObjectOffset(GetTargetString(patch)); in VisitMethod() local
1682 target_offset); in VisitMethod()
[all …]
/art/dex2oat/linker/riscv64/
Drelative_patcher_riscv64_test.cc78 uint32_t target_offset, in GenNopsAndAuipcAndUse() argument
82 uint32_t offset = target_offset - auipc_offset; in GenNopsAndAuipcAndUse()
84 CHECK_ALIGNED(target_offset, 4u); in GenNopsAndAuipcAndUse()
113 uint32_t target_offset = start_cnops * kCNopSize + kUnpatchedOffset; in GenNopsAndAuipcAndUseUnpatched() local
114 return GenNopsAndAuipcAndUse(start_cnops, mid_cnops, 0u, target_offset, use_insn); in GenNopsAndAuipcAndUseUnpatched()
158 uint32_t target_offset = bss_begin_ + string_entry_offset; in TestNopsAuipcLwu() local
160 GenNopsAndAuipcAndUse(start_cnops, mid_cnops, method1_offset, target_offset, kLwu); in TestNopsAuipcLwu()
183 uint32_t target_offset = bss_begin_ + method_entry_offset; in TestNopsAuipcLd() local
185 GenNopsAndAuipcAndUse(start_cnops, mid_cnops, method1_offset, target_offset, kLd); in TestNopsAuipcLd()
Drelative_patcher_riscv64.cc57 [[maybe_unused]] uint32_t target_offset) { in PatchCall() argument
65 uint32_t target_offset) { in PatchPcRelativeReference() argument
67 DCHECK_ALIGNED(target_offset, 2u); in PatchPcRelativeReference()
71 uint32_t disp = target_offset - (patch_offset - literal_offset + pc_insn_offset); in PatchPcRelativeReference()
Drelative_patcher_riscv64.h41 uint32_t target_offset) override;
45 uint32_t target_offset) override;
/art/dex2oat/linker/arm64/
Drelative_patcher_arm64.cc198 uint32_t target_offset) { in PatchCall() argument
201 DCHECK_ALIGNED(target_offset, 4u); in PatchCall()
202 uint32_t displacement = CalculateMethodCallDisplacement(patch_offset, target_offset & ~1u); in PatchCall()
209 uint32_t target_offset) { in PatchPcRelativeReference() argument
211 DCHECK_ALIGNED(target_offset, 4u); in PatchPcRelativeReference()
215 uint32_t disp = target_offset - ((patch_offset - literal_offset + pc_insn_offset) & ~0xfffu); in PatchPcRelativeReference()
227 uint32_t adrp_disp = target_offset - (thunk_offset & ~0xfffu); in PatchPcRelativeReference()
317 uint32_t target_offset = GetThunkTargetOffset(key, patch_offset); in PatchEntrypointCall() local
318 uint32_t displacement = target_offset - patch_offset; in PatchEntrypointCall()
330 uint32_t target_offset = GetThunkTargetOffset(key, patch_offset); in PatchBakerReadBarrierBranch() local
[all …]
Drelative_patcher_arm64.h41 uint32_t target_offset) override;
45 uint32_t target_offset) override;
Drelative_patcher_arm64_test.cc265 uint32_t target_offset, in GenNopsAndAdrpAndUse() argument
273 CHECK_ALIGNED(target_offset, 4u); in GenNopsAndAdrpAndUse()
275 uint32_t disp = target_offset - (adrp_offset & ~0xfffu); in GenNopsAndAdrpAndUse()
298 uint32_t target_offset) { in GenNopsAndAdrpLdr() argument
299 return GenNopsAndAdrpAndUse(num_nops, method_offset, target_offset, kLdrWInsn); in GenNopsAndAdrpLdr()
317 uint32_t target_offset = bss_begin_ + string_entry_offset; in TestNopsAdrpLdr() local
318 auto expected_code = GenNopsAndAdrpLdr(num_nops, method1_offset, target_offset); in TestNopsAdrpLdr()
324 uint32_t target_offset) { in GenNopsAndAdrpAdd() argument
325 return GenNopsAndAdrpAndUse(num_nops, method_offset, target_offset, kAddXInsn); in GenNopsAndAdrpAdd()
382 uint32_t target_offset, in TestNopsAdrpInsn2AndUse() argument
[all …]
/art/dex2oat/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/dex2oat/linker/x86/
Drelative_patcher_x86_base.cc47 uint32_t target_offset) { in PatchCall() argument
50 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/utils/riscv64/
Dassembler_riscv64_test.cc9185 auto target_offset = [&](size_t i) { in TEST_F() local
9191 ".4byte " + target_offset(0) + "\n" in TEST_F()
9192 ".4byte " + target_offset(1) + "\n" in TEST_F()
9193 ".4byte " + target_offset(2) + "\n" in TEST_F()
9194 ".4byte " + target_offset(3) + "\n"; in TEST_F()