Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 823be7f4d7e178301652ad97c8d84471a9869967..2bd8760c3aba856d46d658bb8e4b4a2590e94b8a 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -3090,7 +3090,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 |
@@ -3343,7 +3343,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); |