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

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

Issue 1048013003: Reland "Allow compaction when incremental marking is on." (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: 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/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 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 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 } 60 }
61 61
62 GCRequestType request_type() const { return request_type_; } 62 GCRequestType request_type() const { return request_type_; }
63 63
64 bool WorthActivating(); 64 bool WorthActivating();
65 65
66 bool ShouldActivate(); 66 bool ShouldActivate();
67 67
68 bool WasActivated(); 68 bool WasActivated();
69 69
70 enum CompactionFlag { ALLOW_COMPACTION, PREVENT_COMPACTION }; 70 void Start();
71
72 void Start(CompactionFlag flag = ALLOW_COMPACTION);
73 71
74 void Stop(); 72 void Stop();
75 73
76 void MarkObjectGroups(); 74 void MarkObjectGroups();
77 75
78 void PrepareForScavenge(); 76 void PrepareForScavenge();
79 77
80 void UpdateMarkingDequeAfterScavenge(); 78 void UpdateMarkingDequeAfterScavenge();
81 79
82 void Hurry(); 80 void Hurry();
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 199
202 Heap* heap() const { return heap_; } 200 Heap* heap() const { return heap_; }
203 201
204 private: 202 private:
205 int64_t SpaceLeftInOldSpace(); 203 int64_t SpaceLeftInOldSpace();
206 204
207 void SpeedUp(); 205 void SpeedUp();
208 206
209 void ResetStepCounters(); 207 void ResetStepCounters();
210 208
211 void StartMarking(CompactionFlag flag); 209 void StartMarking();
212 210
213 void ActivateIncrementalWriteBarrier(PagedSpace* space); 211 void ActivateIncrementalWriteBarrier(PagedSpace* space);
214 static void ActivateIncrementalWriteBarrier(NewSpace* space); 212 static void ActivateIncrementalWriteBarrier(NewSpace* space);
215 void ActivateIncrementalWriteBarrier(); 213 void ActivateIncrementalWriteBarrier();
216 214
217 static void DeactivateIncrementalWriteBarrierForSpace(PagedSpace* space); 215 static void DeactivateIncrementalWriteBarrierForSpace(PagedSpace* space);
218 static void DeactivateIncrementalWriteBarrierForSpace(NewSpace* space); 216 static void DeactivateIncrementalWriteBarrierForSpace(NewSpace* space);
219 void DeactivateIncrementalWriteBarrier(); 217 void DeactivateIncrementalWriteBarrier();
220 218
221 static void SetOldSpacePageFlags(MemoryChunk* chunk, bool is_marking, 219 static void SetOldSpacePageFlags(MemoryChunk* chunk, bool is_marking,
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
258 int weak_closure_approximation_rounds_; 256 int weak_closure_approximation_rounds_;
259 257
260 GCRequestType request_type_; 258 GCRequestType request_type_;
261 259
262 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); 260 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking);
263 }; 261 };
264 } 262 }
265 } // namespace v8::internal 263 } // namespace v8::internal
266 264
267 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ 265 #endif // V8_HEAP_INCREMENTAL_MARKING_H_
OLDNEW
« no previous file with comments | « no previous file | src/heap/incremental-marking.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698