Index: src/crankshaft/ia32/lithium-codegen-ia32.cc |
diff --git a/src/crankshaft/ia32/lithium-codegen-ia32.cc b/src/crankshaft/ia32/lithium-codegen-ia32.cc |
index 703e9cd73a054654dc2cd77d64d37e743574564a..a3bdca5bee1427909a0ba15e4b2da07840411948 100644 |
--- a/src/crankshaft/ia32/lithium-codegen-ia32.cc |
+++ b/src/crankshaft/ia32/lithium-codegen-ia32.cc |
@@ -4815,7 +4815,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. |
- __ Move(result, Immediate(Smi::kZero)); |
+ __ Move(result, Immediate(Smi::FromInt(0))); |
PushSafepointRegistersScope scope(this); |
if (instr->size()->IsRegister()) { |
@@ -5119,7 +5119,7 @@ void LCodeGen::DoForInCacheArray(LForInCacheArray* instr) { |
Register result = ToRegister(instr->result()); |
Label load_cache, done; |
__ EnumLength(result, map); |
- __ cmp(result, Immediate(Smi::kZero)); |
+ __ cmp(result, Immediate(Smi::FromInt(0))); |
__ j(not_equal, &load_cache, Label::kNear); |
__ mov(result, isolate()->factory()->empty_fixed_array()); |
__ jmp(&done, Label::kNear); |