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

Side by Side Diff: src/heap/incremental-marking-inl.h

Issue 770453003: Use just one marking deque. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 6 years 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 | « src/heap/incremental-marking.cc ('k') | src/heap/mark-compact.h » ('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_INCREMENTAL_MARKING_INL_H_ 5 #ifndef V8_HEAP_INCREMENTAL_MARKING_INL_H_
6 #define V8_HEAP_INCREMENTAL_MARKING_INL_H_ 6 #define V8_HEAP_INCREMENTAL_MARKING_INL_H_
7 7
8 #include "src/heap/incremental-marking.h" 8 #include "src/heap/incremental-marking.h"
9 9
10 namespace v8 { 10 namespace v8 {
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // as the program mutates the heap faster than we can incrementally 96 // as the program mutates the heap faster than we can incrementally
97 // trace it. In this case we switch to non-incremental marking in 97 // trace it. In this case we switch to non-incremental marking in
98 // order to finish off this marking phase. 98 // order to finish off this marking phase.
99 if (FLAG_trace_gc) { 99 if (FLAG_trace_gc) {
100 PrintPID("Hurrying incremental marking because of lack of progress\n"); 100 PrintPID("Hurrying incremental marking because of lack of progress\n");
101 } 101 }
102 marking_speed_ = kMaxMarkingSpeed; 102 marking_speed_ = kMaxMarkingSpeed;
103 } 103 }
104 } 104 }
105 105
106 marking_deque_.UnshiftGrey(obj); 106 heap_->mark_compact_collector()->marking_deque()->UnshiftGrey(obj);
107 } 107 }
108 108
109 109
110 void IncrementalMarking::WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit) { 110 void IncrementalMarking::WhiteToGreyAndPush(HeapObject* obj, MarkBit mark_bit) {
111 Marking::WhiteToGrey(mark_bit); 111 Marking::WhiteToGrey(mark_bit);
112 marking_deque_.PushGrey(obj); 112 heap_->mark_compact_collector()->marking_deque()->PushGrey(obj);
113 } 113 }
114 } 114 }
115 } // namespace v8::internal 115 } // namespace v8::internal
116 116
117 #endif // V8_HEAP_INCREMENTAL_MARKING_INL_H_ 117 #endif // V8_HEAP_INCREMENTAL_MARKING_INL_H_
OLDNEW
« no previous file with comments | « src/heap/incremental-marking.cc ('k') | src/heap/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698