Index: src/ia32/ic-ia32.cc |
diff --git a/src/ia32/ic-ia32.cc b/src/ia32/ic-ia32.cc |
index 413c36e922764e396fbf50688368e29dd35faa48..a2990a20e3f2583bdea9641e3f9d04291865295d 100644 |
--- a/src/ia32/ic-ia32.cc |
+++ b/src/ia32/ic-ia32.cc |
@@ -885,8 +885,8 @@ void KeyedLoadIC::GenerateIndexedInterceptor(MacroAssembler* masm) { |
__ test(edx, Immediate(kSmiTagMask)); |
__ j(zero, &slow, not_taken); |
- // Check that the key is a smi. |
- __ test(eax, Immediate(kSmiTagMask)); |
+ // Check that the key is an array index, that is Uint32. |
+ __ test(eax, Immediate(kSmiTagMask | kSmiSignMask)); |
__ j(not_zero, &slow, not_taken); |
// Get the map of the receiver. |