| Index: src/ppc/code-stubs-ppc.cc
|
| diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc
|
| index d0f420cc255661e0d818d6d111b2991f6291b2e0..64496f091d26c1fcb1ad91af1f7cc091da5c5674 100644
|
| --- a/src/ppc/code-stubs-ppc.cc
|
| +++ b/src/ppc/code-stubs-ppc.cc
|
| @@ -4695,7 +4695,7 @@ void FastNewRestParameterStub::Generate(MacroAssembler* masm) {
|
| // Fall back to %AllocateInNewSpace (if not too big).
|
| Label too_big_for_new_space;
|
| __ bind(&allocate);
|
| - __ cmpi(r10, Operand(Page::kMaxRegularHeapObjectSize));
|
| + __ Cmpi(r10, Operand(Page::kMaxRegularHeapObjectSize), r0);
|
| __ bgt(&too_big_for_new_space);
|
| {
|
| FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
|
| @@ -5086,7 +5086,7 @@ void FastNewStrictArgumentsStub::Generate(MacroAssembler* masm) {
|
| // Fall back to %AllocateInNewSpace (if not too big).
|
| Label too_big_for_new_space;
|
| __ bind(&allocate);
|
| - __ cmpi(r10, Operand(Page::kMaxRegularHeapObjectSize));
|
| + __ Cmpi(r10, Operand(Page::kMaxRegularHeapObjectSize), r0);
|
| __ bgt(&too_big_for_new_space);
|
| {
|
| FrameAndConstantPoolScope scope(masm, StackFrame::INTERNAL);
|
|
|