Bug 693847 - Squelch unused name warnings in Nitro in release builds. r=luke

This commit is contained in:
Terrence Cole 2011-10-11 16:01:12 -07:00
Родитель e5d7b34244
Коммит 5453b2c8a3
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -38,6 +38,8 @@
#define REPTACH_OFFSET_CALL_R11 3 #define REPTACH_OFFSET_CALL_R11 3
#include "mozilla/Util.h"
namespace JSC { namespace JSC {
class MacroAssemblerX86_64 : public MacroAssemblerX86Common { class MacroAssemblerX86_64 : public MacroAssemblerX86Common {
@ -124,7 +126,7 @@ public:
Call call() Call call()
{ {
DataLabelPtr label = moveWithPatch(ImmPtr(0), scratchRegister); js::DebugOnly<DataLabelPtr> label = moveWithPatch(ImmPtr(0), scratchRegister);
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;
@ -132,7 +134,7 @@ public:
Call tailRecursiveCall() Call tailRecursiveCall()
{ {
DataLabelPtr label = moveWithPatch(ImmPtr(0), scratchRegister); js::DebugOnly<DataLabelPtr> label = moveWithPatch(ImmPtr(0), scratchRegister);
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);
@ -141,7 +143,7 @@ public:
Call makeTailRecursiveCall(Jump oldJump) Call makeTailRecursiveCall(Jump oldJump)
{ {
oldJump.link(this); oldJump.link(this);
DataLabelPtr label = moveWithPatch(ImmPtr(0), scratchRegister); js::DebugOnly<DataLabelPtr> label = moveWithPatch(ImmPtr(0), scratchRegister);
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);