Index: src/spaces.h |
diff --git a/src/spaces.h b/src/spaces.h |
index 90f62f3938bbeaf844873a6368892a892c540809..de9f0b596668b6271ac982e1bb72c6e57f5a9f96 100644 |
--- a/src/spaces.h |
+++ b/src/spaces.h |
@@ -1520,6 +1520,10 @@ class PagedSpace : public Space { |
return size_in_bytes - wasted; |
} |
+ void ResetFreeList() { |
+ free_list_.Reset(); |
+ } |
+ |
// Set space allocation info. |
void SetTop(Address top, Address limit) { |
ASSERT(top == limit || |
@@ -2371,11 +2375,6 @@ class FixedSpace : public PagedSpace { |
// Prepares for a mark-compact GC. |
virtual void PrepareForMarkCompact(); |
- protected: |
- void ResetFreeList() { |
- free_list_.Reset(); |
- } |
- |
private: |
// The size of objects in this space. |
int object_size_in_bytes_; |