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

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

Issue 766663006: Use incremental marking deque in idle notification. (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/heap.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_H_ 5 #ifndef V8_HEAP_INCREMENTAL_MARKING_H_
6 #define V8_HEAP_INCREMENTAL_MARKING_H_ 6 #define V8_HEAP_INCREMENTAL_MARKING_H_
7 7
8 8
9 #include "src/execution.h" 9 #include "src/execution.h"
10 #include "src/heap/mark-compact.h" 10 #include "src/heap/mark-compact.h"
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after
139 inline void SetOldSpacePageFlags(MemoryChunk* chunk) { 139 inline void SetOldSpacePageFlags(MemoryChunk* chunk) {
140 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting()); 140 SetOldSpacePageFlags(chunk, IsMarking(), IsCompacting());
141 } 141 }
142 142
143 inline void SetNewSpacePageFlags(NewSpacePage* chunk) { 143 inline void SetNewSpacePageFlags(NewSpacePage* chunk) {
144 SetNewSpacePageFlags(chunk, IsMarking()); 144 SetNewSpacePageFlags(chunk, IsMarking());
145 } 145 }
146 146
147 MarkingDeque* marking_deque() { return &marking_deque_; } 147 MarkingDeque* marking_deque() { return &marking_deque_; }
148 148
149 bool IsMarkingDequeEmpty() { return marking_deque_.IsEmpty(); }
150
149 bool IsCompacting() { return IsMarking() && is_compacting_; } 151 bool IsCompacting() { return IsMarking() && is_compacting_; }
150 152
151 void ActivateGeneratedStub(Code* stub); 153 void ActivateGeneratedStub(Code* stub);
152 154
153 void NotifyOfHighPromotionRate() { 155 void NotifyOfHighPromotionRate() {
154 if (IsMarking()) { 156 if (IsMarking()) {
155 if (marking_speed_ < kFastMarking) { 157 if (marking_speed_ < kFastMarking) {
156 if (FLAG_trace_gc) { 158 if (FLAG_trace_gc) {
157 PrintPID( 159 PrintPID(
158 "Increasing marking speed to %d " 160 "Increasing marking speed to %d "
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
233 int no_marking_scope_depth_; 235 int no_marking_scope_depth_;
234 236
235 int unscanned_bytes_of_large_object_; 237 int unscanned_bytes_of_large_object_;
236 238
237 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); 239 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking);
238 }; 240 };
239 } 241 }
240 } // namespace v8::internal 242 } // namespace v8::internal
241 243
242 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ 244 #endif // V8_HEAP_INCREMENTAL_MARKING_H_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/mark-compact.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698