Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index d3493833ef4d6eca6c3b3b5e1f8d05b19ff07b2f..b10364163680b158c76cddefe32aff8a4a275a5d 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -2921,8 +2921,10 @@ static void EmitSlowCase(MacroAssembler* masm, |
static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) { |
// Wrap the receiver and patch it back onto the stack. |
{ FrameScope frame_scope(masm, StackFrame::INTERNAL); |
- __ Push(x1, x3); |
- __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION); |
+ __ Push(x1); |
+ __ Mov(x0, x3); |
+ ToObjectStub stub(masm->isolate()); |
+ __ CallStub(&stub); |
__ Pop(x1); |
} |
__ Poke(x0, argc * kPointerSize); |