Index: src/crankshaft/s390/lithium-codegen-s390.cc |
diff --git a/src/crankshaft/s390/lithium-codegen-s390.cc b/src/crankshaft/s390/lithium-codegen-s390.cc |
index b852153e64a8feb346708a994dd119b51cec5432..d83ea63971e308786046d6972d1517c4bbe813a9 100644 |
--- a/src/crankshaft/s390/lithium-codegen-s390.cc |
+++ b/src/crankshaft/s390/lithium-codegen-s390.cc |
@@ -5194,7 +5194,7 @@ void LCodeGen::DoDeferredAllocate(LAllocate* instr) { |
// TODO(3095996): Get rid of this. For now, we need to make the |
// result register contain a valid pointer because it is already |
// contained in the register pointer map. |
- __ LoadSmiLiteral(result, Smi::kZero); |
+ __ LoadSmiLiteral(result, Smi::FromInt(0)); |
PushSafepointRegistersScope scope(this); |
if (instr->size()->IsRegister()) { |
@@ -5512,7 +5512,7 @@ void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { |
Register result = ToRegister(instr->result()); |
Label load_cache, done; |
__ EnumLength(result, map); |
- __ CmpSmiLiteral(result, Smi::kZero, r0); |
+ __ CmpSmiLiteral(result, Smi::FromInt(0), r0); |
__ bne(&load_cache, Label::kNear); |
__ mov(result, Operand(isolate()->factory()->empty_fixed_array())); |
__ b(&done, Label::kNear); |