Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index 54c28337ba6012168aedc27bf59b6847c61a846f..c9718cab732a148d7efbf8db85e9b7fdec100bb0 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -579,8 +579,11 @@ void CompareICStub::GenerateGeneric(MacroAssembler* masm) { |
if (cond == eq) { |
{ |
FrameScope scope(masm, StackFrame::INTERNAL); |
- __ Push(lhs, rhs); |
- __ CallRuntime(strict() ? Runtime::kStrictEqual : Runtime::kEqual); |
+ __ Push(cp); |
+ __ Call(strict() ? isolate()->builtins()->StrictEqual() |
+ : isolate()->builtins()->Equal(), |
+ RelocInfo::CODE_TARGET); |
+ __ Pop(cp); |
} |
// Turn true into 0 and false into some non-zero value. |
STATIC_ASSERT(EQUAL == 0); |