Index: src/ia32/lithium-ia32.cc |
diff --git a/src/ia32/lithium-ia32.cc b/src/ia32/lithium-ia32.cc |
index 6b4db67aecd5501bd40069910fefa60cd5e2de94..f815784e1fb366ccd5e497aebf7d3a884a904e7a 100644 |
--- a/src/ia32/lithium-ia32.cc |
+++ b/src/ia32/lithium-ia32.cc |
@@ -1862,12 +1862,14 @@ LInstruction* LChunkBuilder::DoChange(HChange* instr) { |
if (val->HasRange() && val->range()->IsInSmiRange()) { |
return DefineSameAsFirst(new(zone()) LSmiTag(value)); |
} else if (val->CheckFlag(HInstruction::kUint32)) { |
- LOperand* temp = CpuFeatures::IsSupported(SSE2) ? FixedTemp(xmm1) |
- : NULL; |
- LNumberTagU* result = new(zone()) LNumberTagU(value, temp); |
+ LOperand* temp1 = TempRegister(); |
+ LOperand* temp2 = CpuFeatures::IsSupported(SSE2) ? FixedTemp(xmm1) |
+ : NULL; |
+ LNumberTagU* result = new(zone()) LNumberTagU(value, temp1, temp2); |
return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); |
} else { |
- LNumberTagI* result = new(zone()) LNumberTagI(value); |
+ LOperand* temp = TempRegister(); |
+ LNumberTagI* result = new(zone()) LNumberTagI(value, temp); |
return AssignEnvironment(AssignPointerMap(DefineSameAsFirst(result))); |
} |
} else if (to.IsSmi()) { |