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