| Index: src/x64/code-stubs-x64.cc
|
| diff --git a/src/x64/code-stubs-x64.cc b/src/x64/code-stubs-x64.cc
|
| index 7d717015ab15eafca2e406bcd00bbe0aeded2864..3ab60c8d8cc64b61e5c1c05114690f536f90addd 100644
|
| --- a/src/x64/code-stubs-x64.cc
|
| +++ b/src/x64/code-stubs-x64.cc
|
| @@ -1964,8 +1964,8 @@ static void EmitWrapCase(MacroAssembler* masm,
|
| // Wrap the receiver and patch it back onto the stack.
|
| { FrameScope frame_scope(masm, StackFrame::INTERNAL);
|
| __ Push(rdi);
|
| - __ Push(rax);
|
| - __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION);
|
| + ToObjectStub stub(masm->isolate());
|
| + __ CallStub(&stub);
|
| __ Pop(rdi);
|
| }
|
| __ movp(args->GetReceiverOperand(), rax);
|
|
|