Chromium Code Reviews| Index: src/heap/spaces.h |
| diff --git a/src/heap/spaces.h b/src/heap/spaces.h |
| index de49b5630716c1d035c1e4e901c0230d9c44dab7..058ac89c9609b22bfc632add20635f3ddf5b0346 100644 |
| --- a/src/heap/spaces.h |
| +++ b/src/heap/spaces.h |
| @@ -904,6 +904,23 @@ class Page : public MemoryChunk { |
| } |
| } |
| + intptr_t available_in_free_list(FreeListCategoryType type) { |
| + switch (type) { |
| + case kSmall: |
| + return available_in_small_free_list(); |
| + case kMedium: |
| + return available_in_medium_free_list(); |
| + case kLarge: |
| + return available_in_large_free_list(); |
| + case kHuge: |
| + return available_in_huge_free_list(); |
| + default: |
| + UNREACHABLE(); |
| + } |
| + UNREACHABLE(); |
| + return 0; |
| + } |
| + |
| #ifdef DEBUG |
| void Print(); |
| #endif // DEBUG |