| Index: test/cctest/heap/test-spaces.cc
|
| diff --git a/test/cctest/heap/test-spaces.cc b/test/cctest/heap/test-spaces.cc
|
| index ce04a4c6018f4f52181e8f03bd69f434d0e1470a..a7cf161ca6917502374d666339b3e163652206e3 100644
|
| --- a/test/cctest/heap/test-spaces.cc
|
| +++ b/test/cctest/heap/test-spaces.cc
|
| @@ -317,8 +317,9 @@ TEST(MemoryAllocator) {
|
| {
|
| int total_pages = 0;
|
| OldSpace faked_space(heap, OLD_SPACE, NOT_EXECUTABLE);
|
| - Page* first_page = memory_allocator->AllocatePage(
|
| - faked_space.AreaSize(), &faked_space, NOT_EXECUTABLE);
|
| + Page* first_page = memory_allocator->AllocatePage<Page>(
|
| + faked_space.AreaSize(), static_cast<PagedSpace*>(&faked_space),
|
| + NOT_EXECUTABLE);
|
|
|
| first_page->InsertAfter(faked_space.anchor()->prev_page());
|
| CHECK(first_page->is_valid());
|
| @@ -330,8 +331,9 @@ TEST(MemoryAllocator) {
|
| }
|
|
|
| // Again, we should get n or n - 1 pages.
|
| - Page* other = memory_allocator->AllocatePage(faked_space.AreaSize(),
|
| - &faked_space, NOT_EXECUTABLE);
|
| + Page* other = memory_allocator->AllocatePage<Page>(
|
| + faked_space.AreaSize(), static_cast<PagedSpace*>(&faked_space),
|
| + NOT_EXECUTABLE);
|
| CHECK(other->is_valid());
|
| total_pages++;
|
| other->InsertAfter(first_page);
|
| @@ -362,8 +364,8 @@ TEST(NewSpace) {
|
|
|
| NewSpace new_space(heap);
|
|
|
| - CHECK(new_space.SetUp(CcTest::heap()->ReservedSemiSpaceSize(),
|
| - CcTest::heap()->ReservedSemiSpaceSize()));
|
| + CHECK(new_space.SetUp(CcTest::heap()->InitialSemiSpaceSize(),
|
| + CcTest::heap()->InitialSemiSpaceSize()));
|
| CHECK(new_space.HasBeenSetUp());
|
|
|
| while (new_space.Available() >= Page::kMaxRegularHeapObjectSize) {
|
|
|