fix some compiler warnings

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
Ivailo Monev 2016-02-07 15:19:54 +00:00
parent 86c7510e84
commit 63a0cdab60

View file

@ -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);