Index: src/ia32/full-codegen-ia32.cc |
diff --git a/src/ia32/full-codegen-ia32.cc b/src/ia32/full-codegen-ia32.cc |
index d2453480dfa8d0fbeb30a5ec558f87415617f18e..c63603b227c175679b15da14357f591f724d8f56 100644 |
--- a/src/ia32/full-codegen-ia32.cc |
+++ b/src/ia32/full-codegen-ia32.cc |
@@ -4147,33 +4147,25 @@ void FullCodeGenerator::VisitCompareOperation(CompareOperation* expr) { |
case Token::EQ_STRICT: |
case Token::EQ: |
cc = equal; |
- __ pop(edx); |
break; |
case Token::LT: |
cc = less; |
- __ pop(edx); |
break; |
case Token::GT: |
- // Reverse left and right sizes to obtain ECMA-262 conversion order. |
- cc = less; |
- __ mov(edx, result_register()); |
- __ pop(eax); |
+ cc = greater; |
break; |
case Token::LTE: |
- // Reverse left and right sizes to obtain ECMA-262 conversion order. |
- cc = greater_equal; |
- __ mov(edx, result_register()); |
- __ pop(eax); |
+ cc = less_equal; |
break; |
case Token::GTE: |
cc = greater_equal; |
- __ pop(edx); |
break; |
case Token::IN: |
case Token::INSTANCEOF: |
default: |
UNREACHABLE(); |
} |
+ __ pop(edx); |
decrement_stack_height(); |
bool inline_smi_code = ShouldInlineSmiCase(op); |