OLD | NEW |
1 // Copyright 2011 the V8 project authors. All rights reserved. | 1 // Copyright 2011 the V8 project authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef V8_HEAP_SPACES_H_ | 5 #ifndef V8_HEAP_SPACES_H_ |
6 #define V8_HEAP_SPACES_H_ | 6 #define V8_HEAP_SPACES_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <memory> | 9 #include <memory> |
10 #include <unordered_set> | 10 #include <unordered_set> |
(...skipping 2048 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2059 void ReportStatistics(); | 2059 void ReportStatistics(); |
2060 | 2060 |
2061 // Report code object related statistics | 2061 // Report code object related statistics |
2062 static void ReportCodeStatistics(Isolate* isolate); | 2062 static void ReportCodeStatistics(Isolate* isolate); |
2063 static void ResetCodeStatistics(Isolate* isolate); | 2063 static void ResetCodeStatistics(Isolate* isolate); |
2064 #endif | 2064 #endif |
2065 | 2065 |
2066 Page* FirstPage() { return anchor_.next_page(); } | 2066 Page* FirstPage() { return anchor_.next_page(); } |
2067 Page* LastPage() { return anchor_.prev_page(); } | 2067 Page* LastPage() { return anchor_.prev_page(); } |
2068 | 2068 |
2069 void EvictEvacuationCandidatesFromLinearAllocationArea(); | |
2070 | |
2071 bool CanExpand(size_t size); | 2069 bool CanExpand(size_t size); |
2072 | 2070 |
2073 // Returns the number of total pages in this space. | 2071 // Returns the number of total pages in this space. |
2074 int CountTotalPages(); | 2072 int CountTotalPages(); |
2075 | 2073 |
2076 // Return size of allocatable area on a page in this space. | 2074 // Return size of allocatable area on a page in this space. |
2077 inline int AreaSize() { return static_cast<int>(area_size_); } | 2075 inline int AreaSize() { return static_cast<int>(area_size_); } |
2078 | 2076 |
2079 virtual bool is_local() { return false; } | 2077 virtual bool is_local() { return false; } |
2080 | 2078 |
(...skipping 820 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2901 PageIterator old_iterator_; | 2899 PageIterator old_iterator_; |
2902 PageIterator code_iterator_; | 2900 PageIterator code_iterator_; |
2903 PageIterator map_iterator_; | 2901 PageIterator map_iterator_; |
2904 LargePageIterator lo_iterator_; | 2902 LargePageIterator lo_iterator_; |
2905 }; | 2903 }; |
2906 | 2904 |
2907 } // namespace internal | 2905 } // namespace internal |
2908 } // namespace v8 | 2906 } // namespace v8 |
2909 | 2907 |
2910 #endif // V8_HEAP_SPACES_H_ | 2908 #endif // V8_HEAP_SPACES_H_ |
OLD | NEW |