Index: test/cctest/test-spaces.cc |
diff --git a/test/cctest/test-spaces.cc b/test/cctest/test-spaces.cc |
index 73710658a23a3b6e05d49abba3a56a41a8386acd..223912e37b55ffc6b0b5f01a1819fdc160bcd15c 100644 |
--- a/test/cctest/test-spaces.cc |
+++ b/test/cctest/test-spaces.cc |
@@ -327,9 +327,9 @@ TEST(NewSpace) { |
CcTest::heap()->ReservedSemiSpaceSize())); |
CHECK(new_space.HasBeenSetUp()); |
- while (new_space.Available() >= Page::kMaxNonCodeHeapObjectSize) { |
+ while (new_space.Available() >= Page::kMaxRegularHeapObjectSize) { |
Object* obj = |
- new_space.AllocateRaw(Page::kMaxNonCodeHeapObjectSize)-> |
+ new_space.AllocateRaw(Page::kMaxRegularHeapObjectSize)-> |
ToObjectUnchecked(); |
CHECK(new_space.Contains(HeapObject::cast(obj))); |
} |
@@ -359,7 +359,7 @@ TEST(OldSpace) { |
CHECK(s->SetUp()); |
while (s->Available() > 0) { |
- s->AllocateRaw(Page::kMaxNonCodeHeapObjectSize)->ToObjectUnchecked(); |
+ s->AllocateRaw(Page::kMaxRegularHeapObjectSize)->ToObjectUnchecked(); |
} |
s->TearDown(); |