Index: src/s390/code-stubs-s390.cc |
diff --git a/src/s390/code-stubs-s390.cc b/src/s390/code-stubs-s390.cc |
index b5a38e056fa55b9f789593df8741fd86aa7ff537..d1df07548d31690f1b16a0bf801d35264dcc5ec4 100644 |
--- a/src/s390/code-stubs-s390.cc |
+++ b/src/s390/code-stubs-s390.cc |
@@ -2750,23 +2750,6 @@ void StringToNumberStub::Generate(MacroAssembler* masm) { |
__ TailCallRuntime(Runtime::kStringToNumber); |
} |
-void ToLengthStub::Generate(MacroAssembler* masm) { |
- // The ToLength stub takes one argument in r2. |
- Label not_smi; |
- __ JumpIfNotSmi(r2, ¬_smi); |
- STATIC_ASSERT(kSmiTag == 0); |
- __ CmpP(r2, Operand::Zero()); |
- Label positive; |
- __ bgt(&positive); |
- __ LoadImmP(r2, Operand::Zero()); |
- __ bind(&positive); |
- __ Ret(); |
- __ bind(¬_smi); |
- |
- __ push(r2); // Push argument. |
- __ TailCallRuntime(Runtime::kToLength); |
-} |
- |
void ToStringStub::Generate(MacroAssembler* masm) { |
// The ToString stub takes one argument in r2. |
Label done; |