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 "src/compiler-intrinsics.h" | 8 #include "src/compiler-intrinsics.h" |
9 #include "src/spaces.h" | 9 #include "src/spaces.h" |
10 | 10 |
(...skipping 652 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
663 void SweepInParallel(PagedSpace* space); | 663 void SweepInParallel(PagedSpace* space); |
664 | 664 |
665 void WaitUntilSweepingCompleted(); | 665 void WaitUntilSweepingCompleted(); |
666 | 666 |
667 bool IsSweepingCompleted(); | 667 bool IsSweepingCompleted(); |
668 | 668 |
669 void RefillFreeList(PagedSpace* space); | 669 void RefillFreeList(PagedSpace* space); |
670 | 670 |
671 bool AreSweeperThreadsActivated(); | 671 bool AreSweeperThreadsActivated(); |
672 | 672 |
673 bool IsConcurrentSweepingInProgress(); | 673 // If a paged space is passed in, this method checks if the given space is |
| 674 // swept concurrently. Otherwise, this method checks if concurrent sweeping |
| 675 // is in progress right now on any space. |
| 676 bool IsConcurrentSweepingInProgress(PagedSpace* space = NULL); |
674 | 677 |
675 void set_sequential_sweeping(bool sequential_sweeping) { | 678 void set_sequential_sweeping(bool sequential_sweeping) { |
676 sequential_sweeping_ = sequential_sweeping; | 679 sequential_sweeping_ = sequential_sweeping; |
677 } | 680 } |
678 | 681 |
679 bool sequential_sweeping() const { | 682 bool sequential_sweeping() const { |
680 return sequential_sweeping_; | 683 return sequential_sweeping_; |
681 } | 684 } |
682 | 685 |
683 // Mark the global table which maps weak objects to dependent code without | 686 // Mark the global table which maps weak objects to dependent code without |
(...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
979 private: | 982 private: |
980 MarkCompactCollector* collector_; | 983 MarkCompactCollector* collector_; |
981 }; | 984 }; |
982 | 985 |
983 | 986 |
984 const char* AllocationSpaceName(AllocationSpace space); | 987 const char* AllocationSpaceName(AllocationSpace space); |
985 | 988 |
986 } } // namespace v8::internal | 989 } } // namespace v8::internal |
987 | 990 |
988 #endif // V8_MARK_COMPACT_H_ | 991 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |