| 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 689 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 700 void WaitUntilMarkingCompleted(); | 700 void WaitUntilMarkingCompleted(); |
| 701 | 701 |
| 702 private: | 702 private: |
| 703 MarkCompactCollector(); | 703 MarkCompactCollector(); |
| 704 ~MarkCompactCollector(); | 704 ~MarkCompactCollector(); |
| 705 | 705 |
| 706 bool MarkInvalidatedCode(); | 706 bool MarkInvalidatedCode(); |
| 707 void RemoveDeadInvalidatedCode(); | 707 void RemoveDeadInvalidatedCode(); |
| 708 void ProcessInvalidatedCode(ObjectVisitor* visitor); | 708 void ProcessInvalidatedCode(ObjectVisitor* visitor); |
| 709 | 709 |
| 710 void ReleaseEvacuationCandidates(); |
| 711 |
| 710 void StartSweeperThreads(); | 712 void StartSweeperThreads(); |
| 711 | 713 |
| 712 #ifdef DEBUG | 714 #ifdef DEBUG |
| 713 enum CollectorState { | 715 enum CollectorState { |
| 714 IDLE, | 716 IDLE, |
| 715 PREPARE_GC, | 717 PREPARE_GC, |
| 716 MARK_LIVE_OBJECTS, | 718 MARK_LIVE_OBJECTS, |
| 717 SWEEP_SPACES, | 719 SWEEP_SPACES, |
| 718 ENCODE_FORWARDING_ADDRESSES, | 720 ENCODE_FORWARDING_ADDRESSES, |
| 719 UPDATE_POINTERS, | 721 UPDATE_POINTERS, |
| (...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 896 | 898 |
| 897 friend class Heap; | 899 friend class Heap; |
| 898 }; | 900 }; |
| 899 | 901 |
| 900 | 902 |
| 901 const char* AllocationSpaceName(AllocationSpace space); | 903 const char* AllocationSpaceName(AllocationSpace space); |
| 902 | 904 |
| 903 } } // namespace v8::internal | 905 } } // namespace v8::internal |
| 904 | 906 |
| 905 #endif // V8_MARK_COMPACT_H_ | 907 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |