| 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_MARK_COMPACT_H_ | 5 #ifndef V8_MARK_COMPACT_H_ |
| 6 #define V8_MARK_COMPACT_H_ | 6 #define V8_MARK_COMPACT_H_ |
| 7 | 7 |
| 8 #include "compiler-intrinsics.h" | 8 #include "compiler-intrinsics.h" |
| 9 #include "spaces.h" | 9 #include "spaces.h" |
| 10 | 10 |
| (...skipping 653 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 664 | 664 |
| 665 bool is_compacting() const { return compacting_; } | 665 bool is_compacting() const { return compacting_; } |
| 666 | 666 |
| 667 MarkingParity marking_parity() { return marking_parity_; } | 667 MarkingParity marking_parity() { return marking_parity_; } |
| 668 | 668 |
| 669 // Concurrent and parallel sweeping support. | 669 // Concurrent and parallel sweeping support. |
| 670 void SweepInParallel(PagedSpace* space); | 670 void SweepInParallel(PagedSpace* space); |
| 671 | 671 |
| 672 void WaitUntilSweepingCompleted(); | 672 void WaitUntilSweepingCompleted(); |
| 673 | 673 |
| 674 bool IsSweepingCompleted(); |
| 675 |
| 674 void RefillFreeList(PagedSpace* space); | 676 void RefillFreeList(PagedSpace* space); |
| 675 | 677 |
| 676 bool AreSweeperThreadsActivated(); | 678 bool AreSweeperThreadsActivated(); |
| 677 | 679 |
| 678 bool IsConcurrentSweepingInProgress(); | 680 bool IsConcurrentSweepingInProgress(); |
| 679 | 681 |
| 680 void set_sequential_sweeping(bool sequential_sweeping) { | 682 void set_sequential_sweeping(bool sequential_sweeping) { |
| 681 sequential_sweeping_ = sequential_sweeping; | 683 sequential_sweeping_ = sequential_sweeping; |
| 682 } | 684 } |
| 683 | 685 |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 988 private: | 990 private: |
| 989 MarkCompactCollector* collector_; | 991 MarkCompactCollector* collector_; |
| 990 }; | 992 }; |
| 991 | 993 |
| 992 | 994 |
| 993 const char* AllocationSpaceName(AllocationSpace space); | 995 const char* AllocationSpaceName(AllocationSpace space); |
| 994 | 996 |
| 995 } } // namespace v8::internal | 997 } } // namespace v8::internal |
| 996 | 998 |
| 997 #endif // V8_MARK_COMPACT_H_ | 999 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |