Index: src/x87/macro-assembler-x87.cc |
diff --git a/src/x87/macro-assembler-x87.cc b/src/x87/macro-assembler-x87.cc |
index 6b82f3d2f54bcfc5a1bb477c235c78e51bfaa08c..9e449f9139cd454e8102aae7c4c1f22834c7108f 100644 |
--- a/src/x87/macro-assembler-x87.cc |
+++ b/src/x87/macro-assembler-x87.cc |
@@ -1298,11 +1298,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); |
} |
@@ -1374,11 +1375,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); |
} |
@@ -1448,11 +1450,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); |
} |