Index: src/arm/code-stubs-arm.cc |
diff --git a/src/arm/code-stubs-arm.cc b/src/arm/code-stubs-arm.cc |
index bc223eebb222099111c53e395d4a9e8c76b027be..665ad8106557f2beebc880cf7ac3f2750480fb5c 100644 |
--- a/src/arm/code-stubs-arm.cc |
+++ b/src/arm/code-stubs-arm.cc |
@@ -2694,21 +2694,6 @@ void StringToNumberStub::Generate(MacroAssembler* masm) { |
__ TailCallRuntime(Runtime::kStringToNumber); |
} |
-void ToLengthStub::Generate(MacroAssembler* masm) { |
- // The ToLength stub takes one argument in r0. |
- Label not_smi; |
- __ JumpIfNotSmi(r0, ¬_smi); |
- STATIC_ASSERT(kSmiTag == 0); |
- __ tst(r0, r0); |
- __ mov(r0, Operand(0), LeaveCC, lt); |
- __ Ret(); |
- __ bind(¬_smi); |
- |
- __ push(r0); // Push argument. |
- __ TailCallRuntime(Runtime::kToLength); |
-} |
- |
- |
void ToStringStub::Generate(MacroAssembler* masm) { |
// The ToString stub takes one argument in r0. |
Label is_number; |