| Index: src/x64/ic-x64.cc
|
| diff --git a/src/x64/ic-x64.cc b/src/x64/ic-x64.cc
|
| index 62e769123ebf9e658f7f37fc9067408ca4b78747..47d4c938739705bebe1f5229deb0efa046f57086 100644
|
| --- a/src/x64/ic-x64.cc
|
| +++ b/src/x64/ic-x64.cc
|
| @@ -893,8 +893,8 @@ void KeyedLoadIC::GenerateIndexedInterceptor(MacroAssembler* masm) {
|
| // Check that the receiver isn't a smi.
|
| __ JumpIfSmi(rdx, &slow);
|
|
|
| - // Check that the key is a smi.
|
| - __ JumpIfNotSmi(rax, &slow);
|
| + // Check that the key is an array index, that is Uint32.
|
| + __ JumpIfNotPositiveSmi(rax, &slow);
|
|
|
| // Get the map of the receiver.
|
| __ movq(rcx, FieldOperand(rdx, HeapObject::kMapOffset));
|
|
|