| Index: src/ppc/code-stubs-ppc.cc
|
| diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc
|
| index 97fe3cb4f196a7df52676dda60276e356681d4c1..d085de84b7b5f29b2d841028810afa6fbc929062 100644
|
| --- a/src/ppc/code-stubs-ppc.cc
|
| +++ b/src/ppc/code-stubs-ppc.cc
|
| @@ -2754,28 +2754,6 @@ void StringToNumberStub::Generate(MacroAssembler* masm) {
|
| __ TailCallRuntime(Runtime::kStringToNumber);
|
| }
|
|
|
| -void ToLengthStub::Generate(MacroAssembler* masm) {
|
| - // The ToLength stub takes one argument in r3.
|
| - Label not_smi;
|
| - __ JumpIfNotSmi(r3, ¬_smi);
|
| - STATIC_ASSERT(kSmiTag == 0);
|
| - __ cmpi(r3, Operand::Zero());
|
| - if (CpuFeatures::IsSupported(ISELECT)) {
|
| - __ isel(lt, r3, r0, r3);
|
| - } else {
|
| - Label positive;
|
| - __ bgt(&positive);
|
| - __ li(r3, Operand::Zero());
|
| - __ bind(&positive);
|
| - }
|
| - __ Ret();
|
| - __ bind(¬_smi);
|
| -
|
| - __ push(r3); // Push argument.
|
| - __ TailCallRuntime(Runtime::kToLength);
|
| -}
|
| -
|
| -
|
| void ToStringStub::Generate(MacroAssembler* masm) {
|
| // The ToString stub takes one argument in r3.
|
| Label is_number;
|
|
|