Index: src/ic/arm64/ic-arm64.cc |
diff --git a/src/ic/arm64/ic-arm64.cc b/src/ic/arm64/ic-arm64.cc |
index 790917fcdf223b54473bfa4d02b4f07a2864b852..fa9d7c16b76a3bc0d9c58abca4bb735159ffd4c8 100644 |
--- a/src/ic/arm64/ic-arm64.cc |
+++ b/src/ic/arm64/ic-arm64.cc |
@@ -181,7 +181,7 @@ static void GenerateFastArrayLoad(MacroAssembler* masm, Register receiver, |
// Out of bounds. Check the prototype chain to see if we can just return |
// 'undefined'. |
- __ Cmp(key, Operand(Smi::kZero)); |
+ __ Cmp(key, Operand(Smi::FromInt(0))); |
__ B(lt, slow); // Negative keys can't take the fast OOB path. |
__ Bind(&check_prototypes); |
__ Ldr(scratch2, FieldMemOperand(receiver, HeapObject::kMapOffset)); |