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 2888093003: [heap] Add GN flag for enabling concurrent marking. (Closed)
Patch Set: infer runtime flag from compile time flag Created 3 years, 7 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 | « src/heap/heap.cc ('k') | src/heap/incremental-marking.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_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 #include "src/cancelable-task.h" 8 #include "src/cancelable-task.h"
9 #include "src/execution.h" 9 #include "src/execution.h"
10 #include "src/heap/heap.h" 10 #include "src/heap/heap.h"
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
175 // This is the upper bound for how many times we allow finalization of 175 // This is the upper bound for how many times we allow finalization of
176 // incremental marking to be postponed. 176 // incremental marking to be postponed.
177 static const int kMaxIdleMarkingDelayCounter = 3; 177 static const int kMaxIdleMarkingDelayCounter = 3;
178 178
179 #ifndef DEBUG 179 #ifndef DEBUG
180 static const intptr_t kActivationThreshold = 8 * MB; 180 static const intptr_t kActivationThreshold = 8 * MB;
181 #else 181 #else
182 static const intptr_t kActivationThreshold = 0; 182 static const intptr_t kActivationThreshold = 0;
183 #endif 183 #endif
184 184
185 #if V8_CONCURRENT_MARKING 185 #ifdef V8_CONCURRENT_MARKING
186 static const MarkBit::AccessMode kAtomicity = MarkBit::AccessMode::ATOMIC; 186 static const MarkBit::AccessMode kAtomicity = MarkBit::AccessMode::ATOMIC;
187 #else 187 #else
188 static const MarkBit::AccessMode kAtomicity = MarkBit::AccessMode::NON_ATOMIC; 188 static const MarkBit::AccessMode kAtomicity = MarkBit::AccessMode::NON_ATOMIC;
189 #endif 189 #endif
190 190
191 void FinalizeSweeping(); 191 void FinalizeSweeping();
192 192
193 size_t Step(size_t bytes_to_process, CompletionAction action, 193 size_t Step(size_t bytes_to_process, CompletionAction action,
194 ForceCompletionAction completion, StepOrigin step_origin); 194 ForceCompletionAction completion, StepOrigin step_origin);
195 195
(...skipping 158 matching lines...) Expand 10 before | Expand all | Expand 10 after
354 354
355 Observer new_generation_observer_; 355 Observer new_generation_observer_;
356 Observer old_generation_observer_; 356 Observer old_generation_observer_;
357 357
358 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); 358 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking);
359 }; 359 };
360 } // namespace internal 360 } // namespace internal
361 } // namespace v8 361 } // namespace v8
362 362
363 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ 363 #endif // V8_HEAP_INCREMENTAL_MARKING_H_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | src/heap/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698