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 696 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 ReleaseEvacuationCandidates(); | 716 void ReleaseEvacuationCandidates(); |
| 717 void UnlinkEvacuationCandidates(); | |
|
Michael Starzinger
2013/03/08 12:52:06
Can we move that up one line because that's the na
Hannes Payer (out of office)
2013/03/08 14:02:30
Done.
| |
| 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, |
| 726 ENCODE_FORWARDING_ADDRESSES, | 727 ENCODE_FORWARDING_ADDRESSES, |
| (...skipping 195 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 |