| Index: src/heap/spaces-inl.h
|
| diff --git a/src/heap/spaces-inl.h b/src/heap/spaces-inl.h
|
| index 52c572cc4a65078687ced45fb55359b59ea2ad2b..5b44d1dc10915381c0a316c86ac483606ffe5e26 100644
|
| --- a/src/heap/spaces-inl.h
|
| +++ b/src/heap/spaces-inl.h
|
| @@ -337,8 +337,13 @@ MemoryChunk* MemoryChunkIterator::next() {
|
| return nullptr;
|
| }
|
|
|
| -Page* FreeListCategory::page() {
|
| - return Page::FromAddress(reinterpret_cast<Address>(this));
|
| +Page* FreeListCategory::page() const {
|
| + return Page::FromAddress(
|
| + reinterpret_cast<Address>(const_cast<FreeListCategory*>(this)));
|
| +}
|
| +
|
| +Page* FreeList::GetPageForCategoryType(FreeListCategoryType type) {
|
| + return top(type) ? top(type)->page() : nullptr;
|
| }
|
|
|
| FreeList* FreeListCategory::owner() {
|
|
|