| Index: src/mips/code-stubs-mips.cc
|
| diff --git a/src/mips/code-stubs-mips.cc b/src/mips/code-stubs-mips.cc
|
| index 5503fd3f013e744e274e44570d02a2030ae42f1a..e7d3523763d26357e1f858689362785229bd5138 100644
|
| --- a/src/mips/code-stubs-mips.cc
|
| +++ b/src/mips/code-stubs-mips.cc
|
| @@ -1428,7 +1428,6 @@ void LoadIndexedStringStub::Generate(MacroAssembler* masm) {
|
| &miss, // When not a string.
|
| &miss, // When not a number.
|
| &miss, // When index out of range.
|
| - STRING_INDEX_IS_ARRAY_INDEX,
|
| RECEIVER_IS_STRING);
|
| char_at_generator.GenerateFast(masm);
|
| __ Ret();
|
| @@ -2274,13 +2273,7 @@ void StringCharCodeAtGenerator::GenerateSlow(
|
| } else {
|
| __ Push(object_, index_);
|
| }
|
| - if (index_flags_ == STRING_INDEX_IS_NUMBER) {
|
| - __ CallRuntime(Runtime::kNumberToIntegerMapMinusZero);
|
| - } else {
|
| - DCHECK(index_flags_ == STRING_INDEX_IS_ARRAY_INDEX);
|
| - // NumberToSmi discards numbers that are not exact integers.
|
| - __ CallRuntime(Runtime::kNumberToSmi);
|
| - }
|
| + __ CallRuntime(Runtime::kNumberToSmi);
|
|
|
| // Save the conversion result before the pop instructions below
|
| // have a chance to overwrite it.
|
| @@ -2622,7 +2615,7 @@ void SubStringStub::Generate(MacroAssembler* masm) {
|
| // a3: from index (untagged)
|
| __ SmiTag(a3, a3);
|
| StringCharAtGenerator generator(v0, a3, a2, v0, &runtime, &runtime, &runtime,
|
| - STRING_INDEX_IS_NUMBER, RECEIVER_IS_STRING);
|
| + RECEIVER_IS_STRING);
|
| generator.GenerateFast(masm);
|
| __ DropAndRet(3);
|
| generator.SkipSlow(masm, &runtime);
|
|
|