| 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_HEAP_MARK_COMPACT_H_ | 5 #ifndef V8_HEAP_MARK_COMPACT_H_ |
| 6 #define V8_HEAP_MARK_COMPACT_H_ | 6 #define V8_HEAP_MARK_COMPACT_H_ |
| 7 | 7 |
| 8 #include "src/base/bits.h" | 8 #include "src/base/bits.h" |
| 9 #include "src/heap/spaces.h" | 9 #include "src/heap/spaces.h" |
| 10 | 10 |
| (...skipping 706 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 717 private: | 717 private: |
| 718 class SweeperTask; | 718 class SweeperTask; |
| 719 | 719 |
| 720 explicit MarkCompactCollector(Heap* heap); | 720 explicit MarkCompactCollector(Heap* heap); |
| 721 ~MarkCompactCollector(); | 721 ~MarkCompactCollector(); |
| 722 | 722 |
| 723 bool MarkInvalidatedCode(); | 723 bool MarkInvalidatedCode(); |
| 724 bool WillBeDeoptimized(Code* code); | 724 bool WillBeDeoptimized(Code* code); |
| 725 void RemoveDeadInvalidatedCode(); | 725 void RemoveDeadInvalidatedCode(); |
| 726 void ProcessInvalidatedCode(ObjectVisitor* visitor); | 726 void ProcessInvalidatedCode(ObjectVisitor* visitor); |
| 727 void EvictEvacuationCandidate(Page* page); | 727 void EvictPopularEvacuationCandidate(Page* page); |
| 728 void ClearInvalidSlotsBufferEntries(PagedSpace* space); | 728 void ClearInvalidSlotsBufferEntries(PagedSpace* space); |
| 729 void ClearInvalidStoreAndSlotsBufferEntries(); | 729 void ClearInvalidStoreAndSlotsBufferEntries(); |
| 730 | 730 |
| 731 void StartSweeperThreads(); | 731 void StartSweeperThreads(); |
| 732 | 732 |
| 733 #ifdef DEBUG | 733 #ifdef DEBUG |
| 734 enum CollectorState { | 734 enum CollectorState { |
| 735 IDLE, | 735 IDLE, |
| 736 PREPARE_GC, | 736 PREPARE_GC, |
| 737 MARK_LIVE_OBJECTS, | 737 MARK_LIVE_OBJECTS, |
| (...skipping 261 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 999 private: | 999 private: |
| 1000 MarkCompactCollector* collector_; | 1000 MarkCompactCollector* collector_; |
| 1001 }; | 1001 }; |
| 1002 | 1002 |
| 1003 | 1003 |
| 1004 const char* AllocationSpaceName(AllocationSpace space); | 1004 const char* AllocationSpaceName(AllocationSpace space); |
| 1005 } | 1005 } |
| 1006 } // namespace v8::internal | 1006 } // namespace v8::internal |
| 1007 | 1007 |
| 1008 #endif // V8_HEAP_MARK_COMPACT_H_ | 1008 #endif // V8_HEAP_MARK_COMPACT_H_ |
| OLD | NEW |