Index: src/ia32/macro-assembler-ia32.cc |
diff --git a/src/ia32/macro-assembler-ia32.cc b/src/ia32/macro-assembler-ia32.cc |
index 13d9841bdc139c348a1ec0d0a7749a8051a21a75..52e674f9dc035a991b0356ab72148c2a60447f56 100644 |
--- a/src/ia32/macro-assembler-ia32.cc |
+++ b/src/ia32/macro-assembler-ia32.cc |
@@ -1324,11 +1324,12 @@ void MacroAssembler::Allocate(int object_size, |
// Align the next allocation. Storing the filler map without checking top is |
// safe in new-space because the limit of the heap is aligned there. |
if ((flags & DOUBLE_ALIGNMENT) != 0) { |
+ DCHECK((flags & PRETENURE_OLD_POINTER_SPACE) == 0); |
DCHECK(kPointerAlignment * 2 == kDoubleAlignment); |
Label aligned; |
test(result, Immediate(kDoubleAlignmentMask)); |
j(zero, &aligned, Label::kNear); |
- if ((flags & PRETENURE) != 0) { |
+ if ((flags & PRETENURE_OLD_DATA_SPACE) != 0) { |
cmp(result, Operand::StaticVariable(allocation_limit)); |
j(above_equal, gc_required); |
} |
@@ -1400,11 +1401,12 @@ void MacroAssembler::Allocate(int header_size, |
// Align the next allocation. Storing the filler map without checking top is |
// safe in new-space because the limit of the heap is aligned there. |
if ((flags & DOUBLE_ALIGNMENT) != 0) { |
+ DCHECK((flags & PRETENURE_OLD_POINTER_SPACE) == 0); |
DCHECK(kPointerAlignment * 2 == kDoubleAlignment); |
Label aligned; |
test(result, Immediate(kDoubleAlignmentMask)); |
j(zero, &aligned, Label::kNear); |
- if ((flags & PRETENURE) != 0) { |
+ if ((flags & PRETENURE_OLD_DATA_SPACE) != 0) { |
cmp(result, Operand::StaticVariable(allocation_limit)); |
j(above_equal, gc_required); |
} |
@@ -1474,11 +1476,12 @@ void MacroAssembler::Allocate(Register object_size, |
// Align the next allocation. Storing the filler map without checking top is |
// safe in new-space because the limit of the heap is aligned there. |
if ((flags & DOUBLE_ALIGNMENT) != 0) { |
+ DCHECK((flags & PRETENURE_OLD_POINTER_SPACE) == 0); |
DCHECK(kPointerAlignment * 2 == kDoubleAlignment); |
Label aligned; |
test(result, Immediate(kDoubleAlignmentMask)); |
j(zero, &aligned, Label::kNear); |
- if ((flags & PRETENURE) != 0) { |
+ if ((flags & PRETENURE_OLD_DATA_SPACE) != 0) { |
cmp(result, Operand::StaticVariable(allocation_limit)); |
j(above_equal, gc_required); |
} |