Index: src/mips/code-stubs-mips.cc |
diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc |
index 5ebb70ed8bc6b41a73196ceb006bf8174733e854..daff32fe945822265cadd7ad8404754f26d4a257 100644 |
--- a/src/mips/code-stubs-mips.cc |
+++ b/src/mips/code-stubs-mips.cc |
@@ -2675,8 +2675,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); |