[JAEGER] Fix MSVC warnings.

This commit is contained in:
David Mandelin 2010-07-27 14:44:25 -07:00
parent 377329cf14
commit 490de59ddd
2 changed files with 3 additions and 3 deletions

View File

@ -71,7 +71,7 @@ JSC::MacroAssemblerX86Common::SSE2CheckState JSC::MacroAssemblerX86Common::s_sse
NotCheckedSSE2;
#endif
#if defined(JS_CPU_X86) or defined(JS_CPU_X64)
#if defined(JS_CPU_X86) || defined(JS_CPU_X64)
static const JSC::MacroAssembler::RegisterID JSReturnReg_Type = JSC::X86Registers::ecx;
static const JSC::MacroAssembler::RegisterID JSReturnReg_Data = JSC::X86Registers::edx;
#elif defined(JS_CPU_ARM)

View File

@ -1251,7 +1251,7 @@ mjit::Compiler::jsop_stricteq(JSOp op)
/* This is only true if the other side is |null|. */
RegisterID result = frame.allocReg(Registers::SingleByteRegs);
#if defined JS_CPU_X86 or defined JS_CPU_ARM
#if defined JS_CPU_X86 || defined JS_CPU_ARM
JSValueTag mask = known->getKnownTag();
if (frame.shouldAvoidTypeRemat(test))
masm.set32(cond, masm.tagOf(frame.addressOf(test)), Imm32(mask), result);
@ -1297,7 +1297,7 @@ mjit::Compiler::jsop_stricteq(JSOp op)
/* Do a dynamic test. */
bool val = lhsTest ? lhs->getValue().toBoolean() : rhs->getValue().toBoolean();
#if defined JS_CPU_X86 or defined JS_CPU_ARM
#if defined JS_CPU_X86 || defined JS_CPU_ARM
if (frame.shouldAvoidDataRemat(test))
masm.set32(cond, masm.payloadOf(frame.addressOf(test)), Imm32(val), result);
else