Chromium Code Reviews| 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 672 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 683 FreeList* free_list); | 683 FreeList* free_list); |
| 684 | 684 |
| 685 void WaitUntilSweepingCompleted(); | 685 void WaitUntilSweepingCompleted(); |
| 686 | 686 |
| 687 intptr_t StealMemoryFromSweeperThreads(PagedSpace* space); | 687 intptr_t StealMemoryFromSweeperThreads(PagedSpace* space); |
| 688 | 688 |
| 689 bool AreSweeperThreadsActivated(); | 689 bool AreSweeperThreadsActivated(); |
| 690 | 690 |
| 691 bool IsConcurrentSweepingInProgress(); | 691 bool IsConcurrentSweepingInProgress(); |
| 692 | 692 |
| 693 void FinalizeSweeping(); | 693 void FinalizeSweeping(); |
|
Michael Starzinger
2013/03/08 14:20:52
The implementation of this method is gone, let's a
Hannes Payer (out of office)
2013/03/08 14:34:44
Done.
| |
| 694 | 694 |
| 695 void set_sequential_sweeping(bool sequential_sweeping) { | 695 void set_sequential_sweeping(bool sequential_sweeping) { |
| 696 sequential_sweeping_ = sequential_sweeping; | 696 sequential_sweeping_ = sequential_sweeping; |
| 697 } | 697 } |
| 698 | 698 |
| 699 bool sequential_sweeping() const { | 699 bool sequential_sweeping() const { |
| 700 return sequential_sweeping_; | 700 return sequential_sweeping_; |
| 701 } | 701 } |
| 702 | 702 |
| 703 // Parallel marking support. | 703 // Parallel marking support. |
| 704 void MarkInParallel(); | 704 void MarkInParallel(); |
| 705 | 705 |
| 706 void WaitUntilMarkingCompleted(); | 706 void WaitUntilMarkingCompleted(); |
| 707 | 707 |
| 708 private: | 708 private: |
| 709 MarkCompactCollector(); | 709 MarkCompactCollector(); |
| 710 ~MarkCompactCollector(); | 710 ~MarkCompactCollector(); |
| 711 | 711 |
| 712 bool MarkInvalidatedCode(); | 712 bool MarkInvalidatedCode(); |
| 713 void RemoveDeadInvalidatedCode(); | 713 void RemoveDeadInvalidatedCode(); |
| 714 void ProcessInvalidatedCode(ObjectVisitor* visitor); | 714 void ProcessInvalidatedCode(ObjectVisitor* visitor); |
| 715 | 715 |
| 716 void UnlinkEvacuationCandidates(); | |
| 716 void ReleaseEvacuationCandidates(); | 717 void ReleaseEvacuationCandidates(); |
| 717 | 718 |
| 718 void StartSweeperThreads(); | 719 void StartSweeperThreads(); |
| 719 | 720 |
| 720 #ifdef DEBUG | 721 #ifdef DEBUG |
| 721 enum CollectorState { | 722 enum CollectorState { |
| 722 IDLE, | 723 IDLE, |
| 723 PREPARE_GC, | 724 PREPARE_GC, |
| 724 MARK_LIVE_OBJECTS, | 725 MARK_LIVE_OBJECTS, |
| 725 SWEEP_SPACES, | 726 SWEEP_SPACES, |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 922 private: | 923 private: |
| 923 MarkCompactCollector* collector_; | 924 MarkCompactCollector* collector_; |
| 924 }; | 925 }; |
| 925 | 926 |
| 926 | 927 |
| 927 const char* AllocationSpaceName(AllocationSpace space); | 928 const char* AllocationSpaceName(AllocationSpace space); |
| 928 | 929 |
| 929 } } // namespace v8::internal | 930 } } // namespace v8::internal |
| 930 | 931 |
| 931 #endif // V8_MARK_COMPACT_H_ | 932 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |