Index: test/cctest/test-mark-compact.cc |
diff --git a/test/cctest/test-mark-compact.cc b/test/cctest/test-mark-compact.cc |
index 1d8a0708f5cd87d48b2755ae6a04c5ed3f8c7d79..0c95d94f4afad88bfbbdaeeb2aa1e12dd76cae68 100644 |
--- a/test/cctest/test-mark-compact.cc |
+++ b/test/cctest/test-mark-compact.cc |
@@ -82,7 +82,7 @@ TEST(Promotion) { |
// Allocate a fixed array in the new space. |
int array_length = |
- (Page::kMaxNonCodeHeapObjectSize - FixedArray::kHeaderSize) / |
+ (Page::kMaxRegularHeapObjectSize - FixedArray::kHeaderSize) / |
(4 * kPointerSize); |
Object* obj = heap->AllocateFixedArray(array_length)->ToObjectChecked(); |
Handle<FixedArray> array(FixedArray::cast(obj)); |
@@ -107,7 +107,7 @@ TEST(NoPromotion) { |
// Allocate a big fixed array in the new space. |
int array_length = |
- (Page::kMaxNonCodeHeapObjectSize - FixedArray::kHeaderSize) / |
+ (Page::kMaxRegularHeapObjectSize - FixedArray::kHeaderSize) / |
(2 * kPointerSize); |
Object* obj = heap->AllocateFixedArray(array_length)->ToObjectChecked(); |
Handle<FixedArray> array(FixedArray::cast(obj)); |