| OLD | NEW |
| 1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 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_HEAP_H_ | 5 #ifndef V8_HEAP_HEAP_H_ |
| 6 #define V8_HEAP_HEAP_H_ | 6 #define V8_HEAP_HEAP_H_ |
| 7 | 7 |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 2408 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2419 Space* next(); | 2419 Space* next(); |
| 2420 | 2420 |
| 2421 private: | 2421 private: |
| 2422 Heap* heap_; | 2422 Heap* heap_; |
| 2423 int counter_; | 2423 int counter_; |
| 2424 }; | 2424 }; |
| 2425 | 2425 |
| 2426 | 2426 |
| 2427 // Space iterator for iterating over all old spaces of the heap: Old space | 2427 // Space iterator for iterating over all old spaces of the heap: Old space |
| 2428 // and code space. Returns each space in turn, and null when it is done. | 2428 // and code space. Returns each space in turn, and null when it is done. |
| 2429 class OldSpaces BASE_EMBEDDED { | 2429 class V8_EXPORT_PRIVATE OldSpaces BASE_EMBEDDED { |
| 2430 public: | 2430 public: |
| 2431 explicit OldSpaces(Heap* heap) : heap_(heap), counter_(OLD_SPACE) {} | 2431 explicit OldSpaces(Heap* heap) : heap_(heap), counter_(OLD_SPACE) {} |
| 2432 OldSpace* next(); | 2432 OldSpace* next(); |
| 2433 | 2433 |
| 2434 private: | 2434 private: |
| 2435 Heap* heap_; | 2435 Heap* heap_; |
| 2436 int counter_; | 2436 int counter_; |
| 2437 }; | 2437 }; |
| 2438 | 2438 |
| 2439 | 2439 |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2637 friend class LargeObjectSpace; | 2637 friend class LargeObjectSpace; |
| 2638 friend class NewSpace; | 2638 friend class NewSpace; |
| 2639 friend class PagedSpace; | 2639 friend class PagedSpace; |
| 2640 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); | 2640 DISALLOW_COPY_AND_ASSIGN(AllocationObserver); |
| 2641 }; | 2641 }; |
| 2642 | 2642 |
| 2643 } // namespace internal | 2643 } // namespace internal |
| 2644 } // namespace v8 | 2644 } // namespace v8 |
| 2645 | 2645 |
| 2646 #endif // V8_HEAP_HEAP_H_ | 2646 #endif // V8_HEAP_HEAP_H_ |
| OLD | NEW |