| Index: src/crankshaft/mips64/lithium-codegen-mips64.cc
|
| diff --git a/src/crankshaft/mips64/lithium-codegen-mips64.cc b/src/crankshaft/mips64/lithium-codegen-mips64.cc
|
| index 55c260a007dec458dc8af2091fbe26f978325f55..8155bf3498bac88f88c58dd4ee056a60913fd1ac 100644
|
| --- a/src/crankshaft/mips64/lithium-codegen-mips64.cc
|
| +++ b/src/crankshaft/mips64/lithium-codegen-mips64.cc
|
| @@ -5284,10 +5284,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()));
|
| @@ -5381,11 +5378,12 @@ void LCodeGen::DoDeferredAllocate(LAllocate* instr) {
|
|
|
| void LCodeGen::DoFastAllocate(LFastAllocate* instr) {
|
| DCHECK(instr->hydrogen()->IsAllocationFolded());
|
| + DCHECK(!instr->hydrogen()->IsAllocationFoldingDominator());
|
| Register result = ToRegister(instr->result());
|
| Register scratch1 = ToRegister(instr->temp1());
|
| Register scratch2 = ToRegister(instr->temp2());
|
|
|
| - AllocationFlags flags = NO_ALLOCATION_FLAGS;
|
| + AllocationFlags flags = ALLOCATION_FOLDED;
|
| if (instr->hydrogen()->MustAllocateDoubleAligned()) {
|
| flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT);
|
| }
|
| @@ -5393,15 +5391,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, scratch1, scratch2, flags);
|
| - } else {
|
| - Register size = ToRegister(instr->size());
|
| - __ FastAllocate(size, result, scratch1, scratch2, flags);
|
| - }
|
| + if (instr->size()->IsConstantOperand()) {
|
| + int32_t size = ToInteger32(LConstantOperand::cast(instr->size()));
|
| + CHECK(size <= Page::kMaxRegularHeapObjectSize);
|
| + __ FastAllocate(size, result, scratch1, scratch2, flags);
|
| + } else {
|
| + Register size = ToRegister(instr->size());
|
| + __ FastAllocate(size, result, scratch1, scratch2, flags);
|
| }
|
| }
|
|
|
|
|