Home
last modified time | relevance | path

Searched refs:displacement (Results 1 – 13 of 13) sorted by relevance

/art/compiler/linker/x86_64/
Drelative_patcher_x86_64.cc30 uint32_t displacement = target_offset - patch_offset; in PatchPcRelativeReference() local
31 displacement -= kPcDisplacement; // The base PC is at the end of the 4-byte patch. in PatchPcRelativeReference()
34 reinterpret_cast<unaligned_int32_t*>(&(*code)[patch.LiteralOffset()])[0] = displacement; in PatchPcRelativeReference()
/art/compiler/linker/x86/
Drelative_patcher_x86_base.cc43 uint32_t displacement = target_offset - patch_offset; in PatchCall() local
44 displacement -= kPcDisplacement; // The base PC is at the end of the 4-byte patch. in PatchCall()
47 reinterpret_cast<unaligned_int32_t*>(&(*code)[literal_offset])[0] = displacement; in PatchCall()
/art/compiler/linker/arm/
Drelative_patcher_thumb2.cc60 uint32_t displacement = CalculateMethodCallDisplacement(patch_offset, target_offset & ~1u); in PatchCall() local
61 displacement -= kPcDisplacement; // The base PC is at the end of the 4-byte patch. in PatchCall()
62 DCHECK_EQ(displacement & 1u, 0u); in PatchCall()
63 DCHECK((displacement >> 24) == 0u || (displacement >> 24) == 255u); // 25-bit signed. in PatchCall()
64 uint32_t signbit = (displacement >> 31) & 0x1; in PatchCall()
65 uint32_t i1 = (displacement >> 23) & 0x1; in PatchCall()
66 uint32_t i2 = (displacement >> 22) & 0x1; in PatchCall()
67 uint32_t imm10 = (displacement >> 12) & 0x03ff; in PatchCall()
68 uint32_t imm11 = (displacement >> 1) & 0x07ff; in PatchCall()
Drelative_patcher_arm_base.cc274 uint32_t displacement = target_offset - patch_offset; in CalculateMethodCallDisplacement() local
278 if (displacement > max_positive_displacement && displacement < -max_negative_displacement) { in CalculateMethodCallDisplacement()
284 displacement = method_call_thunk_->GetPendingOffset() - patch_offset; in CalculateMethodCallDisplacement()
289 displacement = method_call_thunk_->LastWrittenOffset() - patch_offset; in CalculateMethodCallDisplacement()
290 DCHECK_GE(displacement, -max_negative_displacement); in CalculateMethodCallDisplacement()
293 return displacement; in CalculateMethodCallDisplacement()
/art/runtime/interpreter/mterp/x86/
Dzcmp.S11 movswl 2(rPC), rINST # fetch signed displacement
/art/runtime/interpreter/mterp/x86_64/
Dzcmp.S11 movswq 2(rPC), rINSTq # fetch signed displacement
/art/compiler/jni/quick/
Dcalling_convention.h62 void ResetIterator(FrameOffset displacement) { in ResetIterator() argument
63 displacement_ = displacement; in ResetIterator()
/art/compiler/linker/arm64/
Drelative_patcher_arm64.cc190 uint32_t displacement = CalculateMethodCallDisplacement(patch_offset, target_offset & ~1u); in PatchCall() local
191 DCHECK_EQ(displacement & 3u, 0u); in PatchCall()
192 DCHECK((displacement >> 27) == 0u || (displacement >> 27) == 31u); // 28-bit signed. in PatchCall()
193 uint32_t insn = (displacement & 0x0fffffffu) >> 2; in PatchCall()
/art/disassembler/
Ddisassembler_x86.cc1544 int32_t displacement; in DumpInstruction() local
1546 displacement = *reinterpret_cast<const int8_t*>(instr); in DumpInstruction()
1550 displacement = *reinterpret_cast<const int32_t*>(instr); in DumpInstruction()
1553 args << StringPrintf("%+d (", displacement) in DumpInstruction()
1554 << FormatInstructionPointer(instr + displacement) in DumpInstruction()
/art/compiler/utils/x86_64/
Dassembler_x86_64_test.cc1983 ssize_t displacement = static_cast<ssize_t>(frame_size) - (spill_regs.size() * 8 + 8); in buildframe_test_fn() local
1984 str << "subq $" << displacement << ", %rsp\n"; in buildframe_test_fn()
2016 ssize_t displacement = static_cast<ssize_t>(frame_size) - spill_regs.size() * 8 - 8; in removeframe_test_fn() local
2017 str << "addq $" << displacement << ", %rsp\n"; in removeframe_test_fn()
/art/runtime/interpreter/mterp/out/
Dmterp_x86_64.S1455 movswq 2(rPC), rINSTq # fetch signed displacement
1479 movswq 2(rPC), rINSTq # fetch signed displacement
1503 movswq 2(rPC), rINSTq # fetch signed displacement
1527 movswq 2(rPC), rINSTq # fetch signed displacement
1551 movswq 2(rPC), rINSTq # fetch signed displacement
1575 movswq 2(rPC), rINSTq # fetch signed displacement
Dmterp_x86.S1561 movswl 2(rPC), rINST # fetch signed displacement
1585 movswl 2(rPC), rINST # fetch signed displacement
1609 movswl 2(rPC), rINST # fetch signed displacement
1633 movswl 2(rPC), rINST # fetch signed displacement
1657 movswl 2(rPC), rINST # fetch signed displacement
1681 movswl 2(rPC), rINST # fetch signed displacement
/art/runtime/interpreter/
Dinterpreter_switch_impl.cc45 int32_t displacement = static_cast<int32_t>(found_dex_pc) - static_cast<int32_t>(dex_pc); \
46 inst = inst->RelativeAt(displacement); \