| Index: src/ic/x64/ic-x64.cc
|
| diff --git a/src/ic/x64/ic-x64.cc b/src/ic/x64/ic-x64.cc
|
| index ef38abd9bb6a8514f0528a253988b0988c6e16bb..d0445a229a8ae2b89f9374ef5bf2975bfe5f137f 100644
|
| --- a/src/ic/x64/ic-x64.cc
|
| +++ b/src/ic/x64/ic-x64.cc
|
| @@ -198,7 +198,7 @@ static void GenerateFastArrayLoad(MacroAssembler* masm, Register receiver,
|
|
|
| // Out-of-bounds. Check the prototype chain to see if we can just return
|
| // 'undefined'.
|
| - __ SmiCompare(key, Smi::kZero);
|
| + __ SmiCompare(key, Smi::FromInt(0));
|
| __ j(less, slow); // Negative keys can't take the fast OOB path.
|
| __ bind(&check_prototypes);
|
| __ movp(scratch, FieldOperand(receiver, HeapObject::kMapOffset));
|
|
|