Index: src/ia32/lithium-codegen-ia32.cc |
diff --git a/src/ia32/lithium-codegen-ia32.cc b/src/ia32/lithium-codegen-ia32.cc |
index 0f11f9e717757dc9444c5e17fae426947dd74254..bc0859aef3d6afef9bc4e769596070040f55b3ca 100644 |
--- a/src/ia32/lithium-codegen-ia32.cc |
+++ b/src/ia32/lithium-codegen-ia32.cc |
@@ -5220,9 +5220,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()) { |
@@ -5285,9 +5289,13 @@ void LCodeGen::DoDeferredAllocate(LAllocate* instr) { |
int flags = AllocateDoubleAlignFlag::encode( |
instr->hydrogen()->MustAllocateDoubleAligned()); |
- 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); |
} |