Index: src/arm/ic-arm.cc |
=================================================================== |
--- src/arm/ic-arm.cc (revision 5468) |
+++ src/arm/ic-arm.cc (working copy) |
@@ -1236,7 +1236,6 @@ |
// -- r1 : receiver |
// ----------------------------------- |
Label miss; |
- Label index_out_of_range; |
Register receiver = r1; |
Register index = r0; |
@@ -1251,7 +1250,7 @@ |
result, |
&miss, // When not a string. |
&miss, // When not a number. |
- &index_out_of_range, |
+ &miss, // When index out of range. |
STRING_INDEX_IS_ARRAY_INDEX); |
char_at_generator.GenerateFast(masm); |
__ Ret(); |
@@ -1259,10 +1258,6 @@ |
ICRuntimeCallHelper call_helper; |
char_at_generator.GenerateSlow(masm, call_helper); |
- __ bind(&index_out_of_range); |
- __ LoadRoot(r0, Heap::kUndefinedValueRootIndex); |
- __ Ret(); |
- |
__ bind(&miss); |
GenerateMiss(masm); |
} |