Index: src/arm64/code-stubs-arm64.cc |
diff --git a/src/arm64/code-stubs-arm64.cc b/src/arm64/code-stubs-arm64.cc |
index 1ae69bd4349a54d310addafd99a8088c5d1efc0f..b72684a36930279c5727dfe6cb25794738b9d99b 100644 |
--- a/src/arm64/code-stubs-arm64.cc |
+++ b/src/arm64/code-stubs-arm64.cc |
@@ -3299,21 +3299,6 @@ void StringToNumberStub::Generate(MacroAssembler* masm) { |
__ TailCallRuntime(Runtime::kStringToNumber); |
} |
-void ToLengthStub::Generate(MacroAssembler* masm) { |
- // The ToLength stub takes one argument in x0. |
- Label not_smi; |
- __ JumpIfNotSmi(x0, ¬_smi); |
- STATIC_ASSERT(kSmiTag == 0); |
- __ Tst(x0, x0); |
- __ Csel(x0, x0, Operand(0), ge); |
- __ Ret(); |
- __ Bind(¬_smi); |
- |
- __ Push(x0); // Push argument. |
- __ TailCallRuntime(Runtime::kToLength); |
-} |
- |
- |
void ToStringStub::Generate(MacroAssembler* masm) { |
// The ToString stub takes one argument in x0. |
Label is_number; |