Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index c685d223ccc8791903928e76f7f6d989b2c47786..ebf6b0fb141d551e65ccb1f74163b989f0ecf1f3 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -1867,19 +1867,15 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) { |
__ push(eax); |
// Figure out which native to call and setup the arguments. |
- if (cc == equal && strict()) { |
+ if (cc == equal) { |
__ push(ecx); |
- __ TailCallRuntime(Runtime::kStrictEquals, 2, 1); |
+ __ TailCallRuntime(strict() ? Runtime::kStrictEquals : Runtime::kEquals, 2, |
+ 1); |
} else { |
- int native_context_index; |
- if (cc == equal) { |
- native_context_index = Context::EQUALS_BUILTIN_INDEX; |
- } else { |
- native_context_index = is_strong(strength()) |
- ? Context::COMPARE_STRONG_BUILTIN_INDEX |
- : Context::COMPARE_BUILTIN_INDEX; |
- __ push(Immediate(Smi::FromInt(NegativeComparisonResult(cc)))); |
- } |
+ int native_context_index = is_strong(strength()) |
+ ? Context::COMPARE_STRONG_BUILTIN_INDEX |
+ : Context::COMPARE_BUILTIN_INDEX; |
+ __ push(Immediate(Smi::FromInt(NegativeComparisonResult(cc)))); |
// Restore return address on the stack. |
__ push(ecx); |