Index: src/spaces.h |
=================================================================== |
--- src/spaces.h (revision 10084) |
+++ src/spaces.h (working copy) |
@@ -1620,6 +1620,11 @@ |
bool CanExpand(); |
+ // Expands the space by allocating a fixed number of pages. Returns false if |
+ // it cannot allocate requested number of pages from OS, or if the hard heap |
+ // size limit has been hit. |
+ bool Expand(); |
+ |
// Returns the number of total pages in this space. |
int CountTotalPages(); |
@@ -1649,10 +1654,6 @@ |
Page* first_unswept_page_; |
- // Expands the space by allocating a fixed number of pages. Returns false if |
- // it cannot allocate requested number of pages from OS. |
- bool Expand(); |
- |
// Generic fast case allocation function that tries linear allocation at the |
// address denoted by top in allocation_info_. |
inline HeapObject* AllocateLinearly(int size_in_bytes); |