| Index: src/mips64/code-stubs-mips64.cc
|
| diff --git a/src/mips64/code-stubs-mips64.cc b/src/mips64/code-stubs-mips64.cc
|
| index 494d9474f96a4038e07a51dc6358ac464647cfa3..8b46e4c72f1fc439ba6a937e226a1c270c7c5b28 100644
|
| --- a/src/mips64/code-stubs-mips64.cc
|
| +++ b/src/mips64/code-stubs-mips64.cc
|
| @@ -2714,8 +2714,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(a1, a3);
|
| - __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION);
|
| + __ Push(a1);
|
| + __ mov(a0, a3);
|
| + ToObjectStub stub(masm->isolate());
|
| + __ CallStub(&stub);
|
| __ pop(a1);
|
| }
|
| __ Branch(USE_DELAY_SLOT, cont);
|
|
|