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

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

Issue 1773273002: Add flag to trace object groups (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Incorporated more Ulan's wonderful suggestions Created 4 years, 9 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') | no next file » | 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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
98 98
99 void Stop(); 99 void Stop();
100 100
101 void FinalizeMarking(CompletionAction action); 101 void FinalizeMarking(CompletionAction action);
102 102
103 void MarkingComplete(CompletionAction action); 103 void MarkingComplete(CompletionAction action);
104 104
105 void Epilogue(); 105 void Epilogue();
106 106
107 // Performs incremental marking steps of step_size_in_bytes as long as 107 // Performs incremental marking steps of step_size_in_bytes as long as
108 // deadline_ins_ms is not reached. step_size_in_bytes can be 0 to compute 108 // deadline_in_ms is not reached. step_size_in_bytes can be 0 to compute
109 // an estimate increment. Returns the remaining time that cannot be used 109 // an estimate increment. Returns the remaining time that cannot be used
110 // for incremental marking anymore because a single step would exceed the 110 // for incremental marking anymore because a single step would exceed the
111 // deadline. 111 // deadline.
112 double AdvanceIncrementalMarking(intptr_t step_size_in_bytes, 112 double AdvanceIncrementalMarking(intptr_t step_size_in_bytes,
113 double deadline_in_ms, 113 double deadline_in_ms,
114 StepActions step_actions); 114 StepActions step_actions);
115 115
116 // It's hard to know how much work the incremental marker should do to make 116 // It's hard to know how much work the incremental marker should do to make
117 // progress in the face of the mutator creating new work for it. We start 117 // progress in the face of the mutator creating new work for it. We start
118 // of at a moderate rate of work and gradually increase the speed of the 118 // of at a moderate rate of work and gradually increase the speed of the
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
299 GCRequestType request_type_; 299 GCRequestType request_type_;
300 300
301 IncrementalMarkingJob incremental_marking_job_; 301 IncrementalMarkingJob incremental_marking_job_;
302 302
303 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); 303 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking);
304 }; 304 };
305 } // namespace internal 305 } // namespace internal
306 } // namespace v8 306 } // namespace v8
307 307
308 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ 308 #endif // V8_HEAP_INCREMENTAL_MARKING_H_
OLDNEW
« no previous file with comments | « src/heap/heap.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698