Index: src/builtins/arm64/builtins-arm64.cc |
diff --git a/src/builtins/arm64/builtins-arm64.cc b/src/builtins/arm64/builtins-arm64.cc |
index 7d7aed66ad27b963816b2e5be30b39987cfe991b..3c5f6dbd603994d4b31ba2895c839f768ea2b810 100644 |
--- a/src/builtins/arm64/builtins-arm64.cc |
+++ b/src/builtins/arm64/builtins-arm64.cc |
@@ -2847,31 +2847,6 @@ void Builtins::Generate_Abort(MacroAssembler* masm) { |
} |
// static |
-void Builtins::Generate_StringToNumber(MacroAssembler* masm) { |
- // The StringToNumber stub takes one argument in x0. |
- __ AssertString(x0); |
- |
- // Check if string has a cached array index. |
- Label runtime; |
- __ Ldr(x2, FieldMemOperand(x0, String::kHashFieldOffset)); |
- __ Tst(x2, Operand(String::kContainsCachedArrayIndexMask)); |
- __ B(ne, &runtime); |
- __ IndexFromHash(x2, x0); |
- __ Ret(); |
- |
- __ Bind(&runtime); |
- { |
- FrameScope frame(masm, StackFrame::INTERNAL); |
- // Push argument. |
- __ Push(x0); |
- // We cannot use a tail call here because this builtin can also be called |
- // from wasm. |
- __ CallRuntime(Runtime::kStringToNumber); |
- } |
- __ Ret(); |
-} |
- |
-// static |
void Builtins::Generate_ToNumber(MacroAssembler* masm) { |
// The ToNumber stub takes one argument in x0. |
Label not_smi; |