| Index: src/builtins/x87/builtins-x87.cc
|
| diff --git a/src/builtins/x87/builtins-x87.cc b/src/builtins/x87/builtins-x87.cc
|
| index c2544715bf9c858fc65af204bc9d183ccf824c3e..6ee2ab618b02a8f50f5996cc351be953b56cb222 100644
|
| --- a/src/builtins/x87/builtins-x87.cc
|
| +++ b/src/builtins/x87/builtins-x87.cc
|
| @@ -2738,32 +2738,6 @@ void Builtins::Generate_Abort(MacroAssembler* masm) {
|
| }
|
|
|
| // static
|
| -void Builtins::Generate_StringToNumber(MacroAssembler* masm) {
|
| - // The StringToNumber stub takes one argument in eax.
|
| - __ AssertString(eax);
|
| -
|
| - // Check if string has a cached array index.
|
| - Label runtime;
|
| - __ test(FieldOperand(eax, String::kHashFieldOffset),
|
| - Immediate(String::kContainsCachedArrayIndexMask));
|
| - __ j(not_zero, &runtime, Label::kNear);
|
| - __ mov(eax, FieldOperand(eax, String::kHashFieldOffset));
|
| - __ IndexFromHash(eax, eax);
|
| - __ Ret();
|
| -
|
| - __ bind(&runtime);
|
| - {
|
| - FrameScope frame(masm, StackFrame::INTERNAL);
|
| - // Push argument.
|
| - __ push(eax);
|
| - // 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 eax.
|
| Label not_smi;
|
|
|