[JAEGER] Make sure to flip EQ/NE test when fusing with IFEQ.

This commit is contained in:
David Anderson 2010-06-04 19:29:43 -07:00
parent 46c6541654
commit 7c056b3f2f

View File

@ -419,9 +419,11 @@ mjit::Compiler::jsop_relational(JSOp op, BoolStub stub, jsbytecode *target, JSOp
case Assembler::GreaterThanOrEqual:
cond = Assembler::LessThan;
break;
case Assembler::Equal: /* fall through */
case Assembler::Equal:
cond = Assembler::NotEqual;
break;
case Assembler::NotEqual:
/* Equal and NotEqual are commutative. */
cond = Assembler::Equal;
break;
default:
JS_NOT_REACHED("hello");