Index: src/crankshaft/x87/lithium-codegen-x87.cc |
diff --git a/src/crankshaft/x87/lithium-codegen-x87.cc b/src/crankshaft/x87/lithium-codegen-x87.cc |
index 7444ff0e0e29e547135332dd0c610d1d9f483710..67c85d692b25ed21ecfdc34f035981b22b4ac189 100644 |
--- a/src/crankshaft/x87/lithium-codegen-x87.cc |
+++ b/src/crankshaft/x87/lithium-codegen-x87.cc |
@@ -5422,10 +5422,7 @@ void LCodeGen::DoAllocate(LAllocate* instr) { |
if (instr->hydrogen()->IsAllocationFoldingDominator()) { |
flags = static_cast<AllocationFlags>(flags | ALLOCATION_FOLDING_DOMINATOR); |
} |
- |
- if (instr->hydrogen()->IsAllocationFolded()) { |
- flags = static_cast<AllocationFlags>(flags | ALLOCATION_FOLDED); |
- } |
+ DCHECK(!instr->hydrogen()->IsAllocationFolded()); |
if (instr->size()->IsConstantOperand()) { |
int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); |
@@ -5458,10 +5455,11 @@ void LCodeGen::DoAllocate(LAllocate* instr) { |
void LCodeGen::DoFastAllocate(LFastAllocate* instr) { |
DCHECK(instr->hydrogen()->IsAllocationFolded()); |
+ DCHECK(!instr->hydrogen()->IsAllocationFoldingDominator()); |
Register result = ToRegister(instr->result()); |
Register temp = ToRegister(instr->temp()); |
- AllocationFlags flags = NO_ALLOCATION_FLAGS; |
+ AllocationFlags flags = ALLOCATION_FOLDED; |
if (instr->hydrogen()->MustAllocateDoubleAligned()) { |
flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); |
} |
@@ -5469,15 +5467,13 @@ void LCodeGen::DoFastAllocate(LFastAllocate* instr) { |
DCHECK(!instr->hydrogen()->IsNewSpaceAllocation()); |
flags = static_cast<AllocationFlags>(flags | PRETENURE); |
} |
- if (!instr->hydrogen()->IsAllocationFoldingDominator()) { |
- if (instr->size()->IsConstantOperand()) { |
- int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); |
- CHECK(size <= Page::kMaxRegularHeapObjectSize); |
- __ FastAllocate(size, result, temp, flags); |
- } else { |
- Register size = ToRegister(instr->size()); |
- __ FastAllocate(size, result, temp, flags); |
- } |
+ if (instr->size()->IsConstantOperand()) { |
+ int32_t size = ToInteger32(LConstantOperand::cast(instr->size())); |
+ CHECK(size <= Page::kMaxRegularHeapObjectSize); |
+ __ FastAllocate(size, result, temp, flags); |
+ } else { |
+ Register size = ToRegister(instr->size()); |
+ __ FastAllocate(size, result, temp, flags); |
} |
} |