Index: src/s390/macro-assembler-s390.cc |
diff --git a/src/s390/macro-assembler-s390.cc b/src/s390/macro-assembler-s390.cc |
index 876f52ecfc48375b77e8908ece8e21bd15338689..769d3dc1b03386fb89b4fbb1a457bea148ac887f 100644 |
--- a/src/s390/macro-assembler-s390.cc |
+++ b/src/s390/macro-assembler-s390.cc |
@@ -3171,7 +3171,7 @@ void MacroAssembler::EmitSeqStringSetCharCheck(Register string, Register index, |
CmpP(index, ip); |
Check(lt, kIndexIsTooLarge); |
- DCHECK(Smi::kZero == 0); |
+ DCHECK(Smi::FromInt(0) == 0); |
CmpP(index, Operand::Zero()); |
Check(ge, kIndexIsNegative); |
@@ -3496,7 +3496,7 @@ void MacroAssembler::CheckEnumCache(Label* call_runtime) { |
// For all objects but the receiver, check that the cache is empty. |
EnumLength(r5, r3); |
- CmpSmiLiteral(r5, Smi::kZero, r0); |
+ CmpSmiLiteral(r5, Smi::FromInt(0), r0); |
bne(call_runtime); |
bind(&start); |