| Index: src/ppc/code-stubs-ppc.cc
|
| diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc
|
| index 015a6ef1afbdbfe7763b01e79a03de41a6d98d3e..59aa8b182a8b6355188759f5f6c5eb649aa3b34e 100644
|
| --- a/src/ppc/code-stubs-ppc.cc
|
| +++ b/src/ppc/code-stubs-ppc.cc
|
| @@ -2726,8 +2726,10 @@ static void EmitWrapCase(MacroAssembler* masm, int argc, Label* cont) {
|
| // Wrap the receiver and patch it back onto the stack.
|
| {
|
| FrameAndConstantPoolScope frame_scope(masm, StackFrame::INTERNAL);
|
| - __ Push(r4, r6);
|
| - __ InvokeBuiltin(Builtins::TO_OBJECT, CALL_FUNCTION);
|
| + __ push(r4);
|
| + __ mr(r3, r6);
|
| + ToObjectStub stub(masm->isolate());
|
| + __ CallStub(&stub);
|
| __ pop(r4);
|
| }
|
| __ StoreP(r3, MemOperand(sp, argc * kPointerSize), r0);
|
|
|