mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 19:02:59 +00:00
fix some compiler warnings
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
86c7510e84
commit
63a0cdab60
1 changed files with 6 additions and 0 deletions
|
@ -110,7 +110,9 @@ public:
|
||||||
|
|
||||||
Call call()
|
Call call()
|
||||||
{
|
{
|
||||||
|
#if !ASSERT_DISABLED
|
||||||
DataLabelPtr label = moveWithPatch(ImmPtr(0), scratchRegister);
|
DataLabelPtr label = moveWithPatch(ImmPtr(0), scratchRegister);
|
||||||
|
#endif
|
||||||
Call result = Call(m_assembler.call(scratchRegister), Call::Linkable);
|
Call result = Call(m_assembler.call(scratchRegister), Call::Linkable);
|
||||||
ASSERT(differenceBetween(label, result) == REPTACH_OFFSET_CALL_R11);
|
ASSERT(differenceBetween(label, result) == REPTACH_OFFSET_CALL_R11);
|
||||||
return result;
|
return result;
|
||||||
|
@ -118,7 +120,9 @@ public:
|
||||||
|
|
||||||
Call tailRecursiveCall()
|
Call tailRecursiveCall()
|
||||||
{
|
{
|
||||||
|
#if !ASSERT_DISABLED
|
||||||
DataLabelPtr label = moveWithPatch(ImmPtr(0), scratchRegister);
|
DataLabelPtr label = moveWithPatch(ImmPtr(0), scratchRegister);
|
||||||
|
#endif
|
||||||
Jump newJump = Jump(m_assembler.jmp_r(scratchRegister));
|
Jump newJump = Jump(m_assembler.jmp_r(scratchRegister));
|
||||||
ASSERT(differenceBetween(label, newJump) == REPTACH_OFFSET_CALL_R11);
|
ASSERT(differenceBetween(label, newJump) == REPTACH_OFFSET_CALL_R11);
|
||||||
return Call::fromTailJump(newJump);
|
return Call::fromTailJump(newJump);
|
||||||
|
@ -127,7 +131,9 @@ public:
|
||||||
Call makeTailRecursiveCall(Jump oldJump)
|
Call makeTailRecursiveCall(Jump oldJump)
|
||||||
{
|
{
|
||||||
oldJump.link(this);
|
oldJump.link(this);
|
||||||
|
#if !ASSERT_DISABLED
|
||||||
DataLabelPtr label = moveWithPatch(ImmPtr(0), scratchRegister);
|
DataLabelPtr label = moveWithPatch(ImmPtr(0), scratchRegister);
|
||||||
|
#endif
|
||||||
Jump newJump = Jump(m_assembler.jmp_r(scratchRegister));
|
Jump newJump = Jump(m_assembler.jmp_r(scratchRegister));
|
||||||
ASSERT(differenceBetween(label, newJump) == REPTACH_OFFSET_CALL_R11);
|
ASSERT(differenceBetween(label, newJump) == REPTACH_OFFSET_CALL_R11);
|
||||||
return Call::fromTailJump(newJump);
|
return Call::fromTailJump(newJump);
|
||||||
|
|
Loading…
Add table
Reference in a new issue