| Index: test/cctest/heap/test-spaces.cc
|
| diff --git a/test/cctest/heap/test-spaces.cc b/test/cctest/heap/test-spaces.cc
|
| index 711b2a54268b20d5558486a834a201a120cbd700..1ed07c54a58b0421d0803c19a4ccafc0aa2d4e23 100644
|
| --- a/test/cctest/heap/test-spaces.cc
|
| +++ b/test/cctest/heap/test-spaces.cc
|
| @@ -315,12 +315,12 @@ TEST(MemoryAllocator) {
|
| {
|
| int total_pages = 0;
|
| OldSpace faked_space(heap, OLD_SPACE, NOT_EXECUTABLE);
|
| - Page* first_page = memory_allocator->AllocatePage<Page>(
|
| + Page* first_page = memory_allocator->AllocatePage(
|
| faked_space.AreaSize(), static_cast<PagedSpace*>(&faked_space),
|
| NOT_EXECUTABLE);
|
|
|
| first_page->InsertAfter(faked_space.anchor()->prev_page());
|
| - CHECK(first_page->is_valid());
|
| + CHECK(Page::IsValid(first_page));
|
| CHECK(first_page->next_page() == faked_space.anchor());
|
| total_pages++;
|
|
|
| @@ -329,10 +329,10 @@ TEST(MemoryAllocator) {
|
| }
|
|
|
| // Again, we should get n or n - 1 pages.
|
| - Page* other = memory_allocator->AllocatePage<Page>(
|
| + Page* other = memory_allocator->AllocatePage(
|
| faked_space.AreaSize(), static_cast<PagedSpace*>(&faked_space),
|
| NOT_EXECUTABLE);
|
| - CHECK(other->is_valid());
|
| + CHECK(Page::IsValid(other));
|
| total_pages++;
|
| other->InsertAfter(first_page);
|
| int page_count = 0;
|
| @@ -343,7 +343,7 @@ TEST(MemoryAllocator) {
|
| CHECK(total_pages == page_count);
|
|
|
| Page* second_page = first_page->next_page();
|
| - CHECK(second_page->is_valid());
|
| + CHECK(Page::IsValid(second_page));
|
|
|
| // OldSpace's destructor will tear down the space and free up all pages.
|
| }
|
|
|