Index: src/ppc/code-stubs-ppc.cc |
diff --git a/src/ppc/code-stubs-ppc.cc b/src/ppc/code-stubs-ppc.cc |
index edee7942bbe45705bf207bfb7318d70237fdd1c0..630fddbbbd6c172a2f99b27ec61733d5e01ac224 100644 |
--- a/src/ppc/code-stubs-ppc.cc |
+++ b/src/ppc/code-stubs-ppc.cc |
@@ -1396,7 +1396,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(); |
@@ -2228,13 +2227,7 @@ void StringCharCodeAtGenerator::GenerateSlow( |
// index_ is consumed by runtime conversion function. |
__ 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. |
__ Move(index_, r3); |
@@ -2563,7 +2556,7 @@ void SubStringStub::Generate(MacroAssembler* masm) { |
// r6: from index (untagged) |
__ SmiTag(r6, r6); |
StringCharAtGenerator generator(r3, r6, r5, r3, &runtime, &runtime, &runtime, |
- STRING_INDEX_IS_NUMBER, RECEIVER_IS_STRING); |
+ RECEIVER_IS_STRING); |
generator.GenerateFast(masm); |
__ Drop(3); |
__ Ret(); |