Index: src/ia32/code-stubs-ia32.cc |
diff --git a/src/ia32/code-stubs-ia32.cc b/src/ia32/code-stubs-ia32.cc |
index 2f20b50b3cbbdbb764bc961f83e4659a08c6ab5d..c1701be519c93a1b62c97edfe506ab2095153dba 100644 |
--- a/src/ia32/code-stubs-ia32.cc |
+++ b/src/ia32/code-stubs-ia32.cc |
@@ -1214,9 +1214,11 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) { |
if (cc == equal) { |
{ |
FrameScope scope(masm, StackFrame::INTERNAL); |
- __ Push(edx); |
- __ Push(eax); |
- __ CallRuntime(strict() ? Runtime::kStrictEqual : Runtime::kEqual); |
+ __ Push(esi); |
+ __ Call(strict() ? isolate()->builtins()->StrictEqual() |
+ : isolate()->builtins()->Equal(), |
+ RelocInfo::CODE_TARGET); |
+ __ Pop(esi); |
} |
// Turn true into 0 and false into some non-zero value. |
STATIC_ASSERT(EQUAL == 0); |