OLD | NEW |
1 // Copyright 2012 the V8 project authors. All rights reserved. | 1 // Copyright 2012 the V8 project authors. All rights reserved. |
2 // Redistribution and use in source and binary forms, with or without | 2 // Redistribution and use in source and binary forms, with or without |
3 // modification, are permitted provided that the following conditions are | 3 // modification, are permitted provided that the following conditions are |
4 // met: | 4 // met: |
5 // | 5 // |
6 // * Redistributions of source code must retain the above copyright | 6 // * Redistributions of source code must retain the above copyright |
7 // notice, this list of conditions and the following disclaimer. | 7 // notice, this list of conditions and the following disclaimer. |
8 // * Redistributions in binary form must reproduce the above | 8 // * Redistributions in binary form must reproduce the above |
9 // copyright notice, this list of conditions and the following | 9 // copyright notice, this list of conditions and the following |
10 // disclaimer in the documentation and/or other materials provided | 10 // disclaimer in the documentation and/or other materials provided |
(...skipping 717 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
728 bool IsConcurrentSweepingInProgress(); | 728 bool IsConcurrentSweepingInProgress(); |
729 | 729 |
730 void set_sequential_sweeping(bool sequential_sweeping) { | 730 void set_sequential_sweeping(bool sequential_sweeping) { |
731 sequential_sweeping_ = sequential_sweeping; | 731 sequential_sweeping_ = sequential_sweeping; |
732 } | 732 } |
733 | 733 |
734 bool sequential_sweeping() const { | 734 bool sequential_sweeping() const { |
735 return sequential_sweeping_; | 735 return sequential_sweeping_; |
736 } | 736 } |
737 | 737 |
738 // Parallel marking support. | |
739 void MarkInParallel(); | |
740 | |
741 void WaitUntilMarkingCompleted(); | |
742 | |
743 private: | 738 private: |
744 MarkCompactCollector(); | 739 MarkCompactCollector(); |
745 ~MarkCompactCollector(); | 740 ~MarkCompactCollector(); |
746 | 741 |
747 bool MarkInvalidatedCode(); | 742 bool MarkInvalidatedCode(); |
748 bool WillBeDeoptimized(Code* code); | 743 bool WillBeDeoptimized(Code* code); |
749 void RemoveDeadInvalidatedCode(); | 744 void RemoveDeadInvalidatedCode(); |
750 void ProcessInvalidatedCode(ObjectVisitor* visitor); | 745 void ProcessInvalidatedCode(ObjectVisitor* visitor); |
751 | 746 |
752 void UnlinkEvacuationCandidates(); | 747 void UnlinkEvacuationCandidates(); |
(...skipping 263 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1016 private: | 1011 private: |
1017 MarkCompactCollector* collector_; | 1012 MarkCompactCollector* collector_; |
1018 }; | 1013 }; |
1019 | 1014 |
1020 | 1015 |
1021 const char* AllocationSpaceName(AllocationSpace space); | 1016 const char* AllocationSpaceName(AllocationSpace space); |
1022 | 1017 |
1023 } } // namespace v8::internal | 1018 } } // namespace v8::internal |
1024 | 1019 |
1025 #endif // V8_MARK_COMPACT_H_ | 1020 #endif // V8_MARK_COMPACT_H_ |
OLD | NEW |