Index: src/arm64/lithium-codegen-arm64.cc |
diff --git a/src/arm64/lithium-codegen-arm64.cc b/src/arm64/lithium-codegen-arm64.cc |
index 98732683989d2906775a25e389566108b8291803..3f7644962907b33b4a1f341b146e9cad3398e932 100644 |
--- a/src/arm64/lithium-codegen-arm64.cc |
+++ b/src/arm64/lithium-codegen-arm64.cc |
@@ -1580,9 +1580,13 @@ void LCodeGen::DoAllocate(LAllocate* instr) { |
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()) { |
@@ -1637,9 +1641,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); |
} |