Index: src/builtins/mips/builtins-mips.cc |
diff --git a/src/builtins/mips/builtins-mips.cc b/src/builtins/mips/builtins-mips.cc |
index 4d39febdc37ca067d28f835df9c8b52f6d6a4314..747db7503c38c2d667a4bff42450c9e5506e100b 100644 |
--- a/src/builtins/mips/builtins-mips.cc |
+++ b/src/builtins/mips/builtins-mips.cc |
@@ -2828,31 +2828,6 @@ void Builtins::Generate_Abort(MacroAssembler* masm) { |
} |
// static |
-void Builtins::Generate_StringToNumber(MacroAssembler* masm) { |
- // The StringToNumber stub takes on argument in a0. |
- __ AssertString(a0); |
- |
- // Check if string has a cached array index. |
- Label runtime; |
- __ lw(a2, FieldMemOperand(a0, String::kHashFieldOffset)); |
- __ And(at, a2, Operand(String::kContainsCachedArrayIndexMask)); |
- __ Branch(&runtime, ne, at, Operand(zero_reg)); |
- __ IndexFromHash(a2, v0); |
- __ Ret(); |
- |
- __ bind(&runtime); |
- { |
- FrameScope frame(masm, StackFrame::INTERNAL); |
- // Push argument. |
- __ Push(a0); |
- // 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 a0. |
Label not_smi; |