Index: src/arm/lithium-arm.cc |
diff --git a/src/arm/lithium-arm.cc b/src/arm/lithium-arm.cc |
index 2d2b31c5f40d99269bbb4371f16f9e9b2aabc625..0392997f313bb8cda70f187bd8bfa9e96dc55589 100644 |
--- a/src/arm/lithium-arm.cc |
+++ b/src/arm/lithium-arm.cc |
@@ -2369,9 +2369,7 @@ LInstruction* LChunkBuilder::DoStringCharFromCode(HStringCharFromCode* instr) { |
LInstruction* LChunkBuilder::DoAllocate(HAllocate* instr) { |
info()->MarkAsDeferredCalling(); |
LOperand* context = UseAny(instr->context()); |
- LOperand* size = instr->size()->IsConstant() |
- ? UseConstant(instr->size()) |
- : UseTempRegister(instr->size()); |
+ LOperand* size = UseRegisterOrConstant(instr->size()); |
LOperand* temp1 = TempRegister(); |
LOperand* temp2 = TempRegister(); |
LAllocate* result = new(zone()) LAllocate(context, size, temp1, temp2); |