Index: src/arm/codegen-arm.cc |
diff --git a/src/arm/codegen-arm.cc b/src/arm/codegen-arm.cc |
index c2da1f525d78655e4adf9b51438d633f80207e65..e53563e6273dc3cdca9d416d1030c2768b914605 100644 |
--- a/src/arm/codegen-arm.cc |
+++ b/src/arm/codegen-arm.cc |
@@ -9284,11 +9284,7 @@ void StringCharCodeAtGenerator::GenerateSlow( |
__ Push(object_, index_, result_); |
__ push(index_); // Consumed by runtime conversion function. |
if (index_flags_ == STRING_INDEX_IS_NUMBER) { |
- // Strictly speaking, NumberToInteger should be called here, but |
- // our string lengths don't exceed 32 bits and using ToUint32 maps |
- // -0 to 0, which is what is required by the spec when accessing |
- // strings. |
- __ CallRuntime(Runtime::kNumberToJSUint32, 1); |
+ __ CallRuntime(Runtime::kNumberToIntegerMapMinusZero, 1); |
} else { |
ASSERT(index_flags_ == STRING_INDEX_IS_ARRAY_INDEX); |
// NumberToSmi discards numbers that are not exact integers. |