size of the entire old generation, the heap must be (more) properly
set up to test the large object space.
Review URL: http://codereview.chromium.org/8872
git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@634
ce2b1a6d-e550-0410-aec6-
3dcde31c8c00
TEST(LargeObjectSpace) {
- CHECK(Heap::ConfigureHeapDefault());
- MemoryAllocator::Setup(Heap::MaxCapacity());
+ CHECK(Heap::Setup(false));
- LargeObjectSpace* lo = new LargeObjectSpace(LO_SPACE);
+ LargeObjectSpace* lo = Heap::lo_space();
CHECK(lo != NULL);
- CHECK(lo->Setup());
-
Map* faked_map = reinterpret_cast<Map*>(HeapObject::FromAddress(0));
int lo_size = Page::kPageSize;