Index: test/cctest/test-alloc.cc |
diff --git a/test/cctest/test-alloc.cc b/test/cctest/test-alloc.cc |
index 0ec99346445d3612f9369675db1ea00744c52985..66f69f8b574d68ab57147c2f739bc8cb64aef851 100644 |
--- a/test/cctest/test-alloc.cc |
+++ b/test/cctest/test-alloc.cc |
@@ -55,18 +55,18 @@ static AllocationResult AllocateAfterFailures() { |
heap->CopyJSObject(JSObject::cast(object)).ToObjectChecked(); |
// Old data space. |
- SimulateFullSpace(heap->old_data_space()); |
+ SimulateFullSpace(heap->old_space()); |
heap->AllocateByteArray(100, TENURED).ToObjectChecked(); |
// Old pointer space. |
- SimulateFullSpace(heap->old_pointer_space()); |
+ SimulateFullSpace(heap->old_space()); |
heap->AllocateFixedArray(10000, TENURED).ToObjectChecked(); |
// Large object space. |
static const int kLargeObjectSpaceFillerLength = 3 * (Page::kPageSize / 10); |
static const int kLargeObjectSpaceFillerSize = FixedArray::SizeFor( |
kLargeObjectSpaceFillerLength); |
- DCHECK(kLargeObjectSpaceFillerSize > heap->old_pointer_space()->AreaSize()); |
+ DCHECK(kLargeObjectSpaceFillerSize > heap->old_space()->AreaSize()); |
while (heap->OldGenerationSpaceAvailable() > kLargeObjectSpaceFillerSize) { |
heap->AllocateFixedArray( |
kLargeObjectSpaceFillerLength, TENURED).ToObjectChecked(); |