Index: src/x64/lithium-codegen-x64.cc |
diff --git a/src/x64/lithium-codegen-x64.cc b/src/x64/lithium-codegen-x64.cc |
index d451861edcbd31c2dad96de95d2cbface57be550..98a76ad58e6f2c4440684e0679b3292e910f4437 100644 |
--- a/src/x64/lithium-codegen-x64.cc |
+++ b/src/x64/lithium-codegen-x64.cc |
@@ -5380,9 +5380,13 @@ void LCodeGen::DoAllocate(LAllocate* instr) { |
if (instr->hydrogen()->MustAllocateDoubleAligned()) { |
flags = static_cast<AllocationFlags>(flags | DOUBLE_ALIGNMENT); |
} |
- if (instr->hydrogen()->IsOldSpaceAllocation()) { |
+ if (instr->hydrogen()->IsOldPointerSpaceAllocation()) { |
+ DCHECK(!instr->hydrogen()->IsOldDataSpaceAllocation()); |
DCHECK(!instr->hydrogen()->IsNewSpaceAllocation()); |
- flags = static_cast<AllocationFlags>(flags | PRETENURE); |
+ flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_POINTER_SPACE); |
+ } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { |
+ DCHECK(!instr->hydrogen()->IsNewSpaceAllocation()); |
+ flags = static_cast<AllocationFlags>(flags | PRETENURE_OLD_DATA_SPACE); |
} |
if (instr->size()->IsConstantOperand()) { |
@@ -5438,9 +5442,13 @@ void LCodeGen::DoDeferredAllocate(LAllocate* instr) { |
} |
int flags = 0; |
- if (instr->hydrogen()->IsOldSpaceAllocation()) { |
+ if (instr->hydrogen()->IsOldPointerSpaceAllocation()) { |
+ DCHECK(!instr->hydrogen()->IsOldDataSpaceAllocation()); |
+ DCHECK(!instr->hydrogen()->IsNewSpaceAllocation()); |
+ flags = AllocateTargetSpace::update(flags, OLD_POINTER_SPACE); |
+ } else if (instr->hydrogen()->IsOldDataSpaceAllocation()) { |
DCHECK(!instr->hydrogen()->IsNewSpaceAllocation()); |
- flags = AllocateTargetSpace::update(flags, OLD_SPACE); |
+ flags = AllocateTargetSpace::update(flags, OLD_DATA_SPACE); |
} else { |
flags = AllocateTargetSpace::update(flags, NEW_SPACE); |
} |