Index: src/ia32/ic-ia32.cc |
=================================================================== |
--- src/ia32/ic-ia32.cc (revision 5468) |
+++ src/ia32/ic-ia32.cc (working copy) |
@@ -692,7 +692,6 @@ |
// -- esp[0] : return address |
// ----------------------------------- |
Label miss; |
- Label index_out_of_range; |
Register receiver = edx; |
Register index = eax; |
@@ -707,7 +706,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(0); |
@@ -715,10 +714,6 @@ |
ICRuntimeCallHelper call_helper; |
char_at_generator.GenerateSlow(masm, call_helper); |
- __ bind(&index_out_of_range); |
- __ Set(eax, Immediate(Factory::undefined_value())); |
- __ ret(0); |
- |
__ bind(&miss); |
GenerateMiss(masm); |
} |