| 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 725 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 736 // Parallel marking support. | 736 // Parallel marking support. |
| 737 void MarkInParallel(); | 737 void MarkInParallel(); |
| 738 | 738 |
| 739 void WaitUntilMarkingCompleted(); | 739 void WaitUntilMarkingCompleted(); |
| 740 | 740 |
| 741 private: | 741 private: |
| 742 MarkCompactCollector(); | 742 MarkCompactCollector(); |
| 743 ~MarkCompactCollector(); | 743 ~MarkCompactCollector(); |
| 744 | 744 |
| 745 bool MarkInvalidatedCode(); | 745 bool MarkInvalidatedCode(); |
| 746 bool WillBeDeoptimized(Code* code); |
| 746 void RemoveDeadInvalidatedCode(); | 747 void RemoveDeadInvalidatedCode(); |
| 747 void ProcessInvalidatedCode(ObjectVisitor* visitor); | 748 void ProcessInvalidatedCode(ObjectVisitor* visitor); |
| 748 | 749 |
| 749 void UnlinkEvacuationCandidates(); | 750 void UnlinkEvacuationCandidates(); |
| 750 void ReleaseEvacuationCandidates(); | 751 void ReleaseEvacuationCandidates(); |
| 751 | 752 |
| 752 void StartSweeperThreads(); | 753 void StartSweeperThreads(); |
| 753 | 754 |
| 754 #ifdef DEBUG | 755 #ifdef DEBUG |
| 755 enum CollectorState { | 756 enum CollectorState { |
| (...skipping 183 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 939 static void VisitObject(HeapObject* obj); | 940 static void VisitObject(HeapObject* obj); |
| 940 | 941 |
| 941 friend class UnmarkObjectVisitor; | 942 friend class UnmarkObjectVisitor; |
| 942 static void UnmarkObject(HeapObject* obj); | 943 static void UnmarkObject(HeapObject* obj); |
| 943 #endif | 944 #endif |
| 944 | 945 |
| 945 Heap* heap_; | 946 Heap* heap_; |
| 946 MarkingDeque marking_deque_; | 947 MarkingDeque marking_deque_; |
| 947 CodeFlusher* code_flusher_; | 948 CodeFlusher* code_flusher_; |
| 948 Object* encountered_weak_collections_; | 949 Object* encountered_weak_collections_; |
| 950 Object* code_to_deoptimize_; |
| 949 | 951 |
| 950 List<Page*> evacuation_candidates_; | 952 List<Page*> evacuation_candidates_; |
| 951 List<Code*> invalidated_code_; | 953 List<Code*> invalidated_code_; |
| 952 | 954 |
| 953 friend class Heap; | 955 friend class Heap; |
| 954 }; | 956 }; |
| 955 | 957 |
| 956 | 958 |
| 957 class MarkBitCellIterator BASE_EMBEDDED { | 959 class MarkBitCellIterator BASE_EMBEDDED { |
| 958 public: | 960 public: |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1012 private: | 1014 private: |
| 1013 MarkCompactCollector* collector_; | 1015 MarkCompactCollector* collector_; |
| 1014 }; | 1016 }; |
| 1015 | 1017 |
| 1016 | 1018 |
| 1017 const char* AllocationSpaceName(AllocationSpace space); | 1019 const char* AllocationSpaceName(AllocationSpace space); |
| 1018 | 1020 |
| 1019 } } // namespace v8::internal | 1021 } } // namespace v8::internal |
| 1020 | 1022 |
| 1021 #endif // V8_MARK_COMPACT_H_ | 1023 #endif // V8_MARK_COMPACT_H_ |
| OLD | NEW |