Index: src/x87/macro-assembler-x87.cc |
diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc |
index fd4a583bd8356c8f40bfa12532e4c6969d07662d..dafe985ff8fb3a27f2ee2a0638a2c94362eec7d3 100644 |
--- a/src/x87/macro-assembler-x87.cc |
+++ b/src/x87/macro-assembler-x87.cc |
@@ -2937,7 +2937,7 @@ void MacroAssembler::EmitSeqStringSetCharCheck(Register string, |
cmp(index, FieldOperand(string, String::kLengthOffset)); |
Check(less, kIndexIsTooLarge); |
- cmp(index, Immediate(Smi::kZero)); |
+ cmp(index, Immediate(Smi::FromInt(0))); |
Check(greater_equal, kIndexIsNegative); |
// Restore the index |
@@ -3190,7 +3190,7 @@ void MacroAssembler::CheckEnumCache(Label* call_runtime) { |
// For all objects but the receiver, check that the cache is empty. |
EnumLength(edx, ebx); |
- cmp(edx, Immediate(Smi::kZero)); |
+ cmp(edx, Immediate(Smi::FromInt(0))); |
j(not_equal, call_runtime); |
bind(&start); |