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_MARK_COMPACT_H_ | 5 #ifndef V8_HEAP_MARK_COMPACT_H_ |
6 #define V8_HEAP_MARK_COMPACT_H_ | 6 #define V8_HEAP_MARK_COMPACT_H_ |
7 | 7 |
8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
9 #include "src/heap/spaces.h" | 9 #include "src/heap/spaces.h" |
10 #include "src/heap/store-buffer.h" | 10 #include "src/heap/store-buffer.h" |
(...skipping 749 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
760 SweepingList sweeping_list_code_space_; | 760 SweepingList sweeping_list_code_space_; |
761 SweepingList sweeping_list_map_space_; | 761 SweepingList sweeping_list_map_space_; |
762 | 762 |
763 // True if we are collecting slots to perform evacuation from evacuation | 763 // True if we are collecting slots to perform evacuation from evacuation |
764 // candidates. | 764 // candidates. |
765 bool compacting_; | 765 bool compacting_; |
766 | 766 |
767 // True if concurrent or parallel sweeping is currently in progress. | 767 // True if concurrent or parallel sweeping is currently in progress. |
768 bool sweeping_in_progress_; | 768 bool sweeping_in_progress_; |
769 | 769 |
770 // True if parallel compaction is currently in progress. | |
771 bool compaction_in_progress_; | |
772 | |
773 // Semaphore used to synchronize sweeper tasks. | 770 // Semaphore used to synchronize sweeper tasks. |
774 base::Semaphore pending_sweeper_tasks_semaphore_; | 771 base::Semaphore pending_sweeper_tasks_semaphore_; |
775 | 772 |
776 // Semaphore used to synchronize compaction tasks. | 773 // Semaphore used to synchronize compaction tasks. |
777 base::Semaphore pending_compaction_tasks_semaphore_; | 774 base::Semaphore pending_compaction_tasks_semaphore_; |
778 | 775 |
779 friend class Heap; | 776 friend class Heap; |
780 friend class StoreBuffer; | 777 friend class StoreBuffer; |
781 }; | 778 }; |
782 | 779 |
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
862 private: | 859 private: |
863 MarkCompactCollector* collector_; | 860 MarkCompactCollector* collector_; |
864 }; | 861 }; |
865 | 862 |
866 | 863 |
867 const char* AllocationSpaceName(AllocationSpace space); | 864 const char* AllocationSpaceName(AllocationSpace space); |
868 } // namespace internal | 865 } // namespace internal |
869 } // namespace v8 | 866 } // namespace v8 |
870 | 867 |
871 #endif // V8_HEAP_MARK_COMPACT_H_ | 868 #endif // V8_HEAP_MARK_COMPACT_H_ |
OLD | NEW |