Index: test/cctest/test-spaces.cc |
diff --git a/test/cctest/test-spaces.cc b/test/cctest/test-spaces.cc |
index 6e495bc169df00e5e93d6068ee8f75f8860540db..92de2a60fa4291a014439952f906c3244d1a865d 100644 |
--- a/test/cctest/test-spaces.cc |
+++ b/test/cctest/test-spaces.cc |
@@ -191,9 +191,10 @@ TEST(NewSpace) { |
HEAP->ReservedSemiSpaceSize())); |
CHECK(new_space.HasBeenSetUp()); |
- while (new_space.Available() >= Page::kMaxHeapObjectSize) { |
+ while (new_space.Available() >= Page::kMaxNonCodeHeapObjectSize) { |
Object* obj = |
- new_space.AllocateRaw(Page::kMaxHeapObjectSize)->ToObjectUnchecked(); |
+ new_space.AllocateRaw(Page::kMaxNonCodeHeapObjectSize)-> |
+ ToObjectUnchecked(); |
CHECK(new_space.Contains(HeapObject::cast(obj))); |
} |
@@ -223,7 +224,7 @@ TEST(OldSpace) { |
CHECK(s->SetUp()); |
while (s->Available() > 0) { |
- s->AllocateRaw(Page::kMaxHeapObjectSize)->ToObjectUnchecked(); |
+ s->AllocateRaw(Page::kMaxNonCodeHeapObjectSize)->ToObjectUnchecked(); |
} |
s->TearDown(); |