| Index: src/mips64/builtins-mips64.cc
|
| diff --git a/src/mips64/builtins-mips64.cc b/src/mips64/builtins-mips64.cc
|
| index 1426f15858b896dcac70c392f612b97ffeb431ca..f7cf1470e456bb35b2b71deb1dd1a827331fe3b1 100644
|
| --- a/src/mips64/builtins-mips64.cc
|
| +++ b/src/mips64/builtins-mips64.cc
|
| @@ -1309,8 +1309,10 @@ void Builtins::Generate_FunctionCall(MacroAssembler* masm) {
|
| {
|
| FrameScope scope(masm, StackFrame::INTERNAL);
|
| __ SmiTag(a0);
|
| - __ Push(a0, a2);
|
| - __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION);
|
| + __ Push(a0);
|
| + __ mov(a0, a2);
|
| + ToObjectStub stub(masm->isolate());
|
| + __ CallStub(&stub);
|
| __ mov(a2, v0);
|
|
|
| __ pop(a0);
|
| @@ -1545,8 +1547,8 @@ static void Generate_ApplyHelper(MacroAssembler* masm, bool targetIsArgument) {
|
| // Convert the receiver to a regular object.
|
| // a0: receiver
|
| __ bind(&call_to_object);
|
| - __ push(a0);
|
| - __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION);
|
| + ToObjectStub stub(masm->isolate());
|
| + __ CallStub(&stub);
|
| __ mov(a0, v0); // Put object in a0 to match other paths to push_receiver.
|
| __ Branch(&push_receiver);
|
|
|
|
|