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

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

Issue 997423002: Use the incremental root marking visitor for overapproximating the weak closure (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: updates Created 5 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') | 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 bool ShouldActivate(); 60 bool ShouldActivate();
61 61
62 bool WasActivated(); 62 bool WasActivated();
63 63
64 enum CompactionFlag { ALLOW_COMPACTION, PREVENT_COMPACTION }; 64 enum CompactionFlag { ALLOW_COMPACTION, PREVENT_COMPACTION };
65 65
66 void Start(CompactionFlag flag = ALLOW_COMPACTION); 66 void Start(CompactionFlag flag = ALLOW_COMPACTION);
67 67
68 void Stop(); 68 void Stop();
69 69
70 void MarkObjectGroups();
71
70 void PrepareForScavenge(); 72 void PrepareForScavenge();
71 73
72 void UpdateMarkingDequeAfterScavenge(); 74 void UpdateMarkingDequeAfterScavenge();
73 75
74 void Hurry(); 76 void Hurry();
75 77
76 void Finalize(); 78 void Finalize();
77 79
78 void Abort(); 80 void Abort();
79 81
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
182 void LeaveNoMarkingScope() { no_marking_scope_depth_--; } 184 void LeaveNoMarkingScope() { no_marking_scope_depth_--; }
183 185
184 void NotifyIncompleteScanOfObject(int unscanned_bytes) { 186 void NotifyIncompleteScanOfObject(int unscanned_bytes) {
185 unscanned_bytes_of_large_object_ = unscanned_bytes; 187 unscanned_bytes_of_large_object_ = unscanned_bytes;
186 } 188 }
187 189
188 void ClearIdleMarkingDelayCounter(); 190 void ClearIdleMarkingDelayCounter();
189 191
190 bool IsIdleMarkingDelayCounterLimitReached(); 192 bool IsIdleMarkingDelayCounterLimitReached();
191 193
192 INLINE(static void MarkObject(Heap* heap, Object* object)); 194 INLINE(static void MarkObject(Heap* heap, HeapObject* object));
193 195
194 Heap* heap() const { return heap_; } 196 Heap* heap() const { return heap_; }
195 197
196 private: 198 private:
197 int64_t SpaceLeftInOldSpace(); 199 int64_t SpaceLeftInOldSpace();
198 200
199 void SpeedUp(); 201 void SpeedUp();
200 202
201 void ResetStepCounters(); 203 void ResetStepCounters();
202 204
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
248 bool weak_closure_was_overapproximated_; 250 bool weak_closure_was_overapproximated_;
249 251
250 GCRequestType request_type_; 252 GCRequestType request_type_;
251 253
252 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking); 254 DISALLOW_IMPLICIT_CONSTRUCTORS(IncrementalMarking);
253 }; 255 };
254 } 256 }
255 } // namespace v8::internal 257 } // namespace v8::internal
256 258
257 #endif // V8_HEAP_INCREMENTAL_MARKING_H_ 259 #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