Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(369)

Side by Side Diff: src/heap/mark-compact.h

Issue 1037433002: Avoid evacuation of popular pages. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Rebase Created 5 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/heap/mark-compact.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698