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

Side by Side Diff: runtime/vm/scavenger.h

Issue 1459173004: Remove support for object grouping during Garbage Collection (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: code-review Created 5 years, 1 month 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 | « runtime/vm/object_graph.cc ('k') | runtime/vm/scavenger.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 (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #ifndef VM_SCAVENGER_H_ 5 #ifndef VM_SCAVENGER_H_
6 #define VM_SCAVENGER_H_ 6 #define VM_SCAVENGER_H_
7 7
8 #include "platform/assert.h" 8 #include "platform/assert.h"
9 #include "platform/utils.h" 9 #include "platform/utils.h"
10 #include "vm/dart.h" 10 #include "vm/dart.h"
(...skipping 213 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 kStoreBufferEntries = 0, 224 kStoreBufferEntries = 0,
225 kDataUnused1 = 1, 225 kDataUnused1 = 1,
226 kDataUnused2 = 2, 226 kDataUnused2 = 2,
227 kToKBAfterStoreBuffer = 3 227 kToKBAfterStoreBuffer = 3
228 }; 228 };
229 229
230 uword FirstObjectStart() const { return to_->start() | object_alignment_; } 230 uword FirstObjectStart() const { return to_->start() | object_alignment_; }
231 SemiSpace* Prologue(Isolate* isolate, bool invoke_api_callbacks); 231 SemiSpace* Prologue(Isolate* isolate, bool invoke_api_callbacks);
232 void IterateStoreBuffers(Isolate* isolate, ScavengerVisitor* visitor); 232 void IterateStoreBuffers(Isolate* isolate, ScavengerVisitor* visitor);
233 void IterateObjectIdTable(Isolate* isolate, ScavengerVisitor* visitor); 233 void IterateObjectIdTable(Isolate* isolate, ScavengerVisitor* visitor);
234 void IterateRoots(Isolate* isolate, 234 void IterateRoots(Isolate* isolate, ScavengerVisitor* visitor);
235 ScavengerVisitor* visitor,
236 bool visit_prologue_weak_persistent_handles);
237 void IterateWeakProperties(Isolate* isolate, ScavengerVisitor* visitor); 235 void IterateWeakProperties(Isolate* isolate, ScavengerVisitor* visitor);
238 void IterateWeakReferences(Isolate* isolate, ScavengerVisitor* visitor); 236 void IterateWeakReferences(Isolate* isolate, ScavengerVisitor* visitor);
239 void IterateWeakRoots(Isolate* isolate, 237 void IterateWeakRoots(Isolate* isolate, HandleVisitor* visitor);
240 HandleVisitor* visitor,
241 bool visit_prologue_weak_persistent_handles);
242 void ProcessToSpace(ScavengerVisitor* visitor); 238 void ProcessToSpace(ScavengerVisitor* visitor);
243 uword ProcessWeakProperty(RawWeakProperty* raw_weak, 239 uword ProcessWeakProperty(RawWeakProperty* raw_weak,
244 ScavengerVisitor* visitor); 240 ScavengerVisitor* visitor);
245 void Epilogue(Isolate* isolate, SemiSpace* from, bool invoke_api_callbacks); 241 void Epilogue(Isolate* isolate, SemiSpace* from, bool invoke_api_callbacks);
246 242
247 bool IsUnreachable(RawObject** p); 243 bool IsUnreachable(RawObject** p);
248 244
249 // During a scavenge we need to remember the promoted objects. 245 // During a scavenge we need to remember the promoted objects.
250 // This is implemented as a stack of objects at the end of the to space. As 246 // This is implemented as a stack of objects at the end of the to space. As
251 // object sizes are always greater than sizeof(uword) and promoted objects do 247 // object sizes are always greater than sizeof(uword) and promoted objects do
(...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after
309 305
310 friend class ScavengerVisitor; 306 friend class ScavengerVisitor;
311 friend class ScavengerWeakVisitor; 307 friend class ScavengerWeakVisitor;
312 308
313 DISALLOW_COPY_AND_ASSIGN(Scavenger); 309 DISALLOW_COPY_AND_ASSIGN(Scavenger);
314 }; 310 };
315 311
316 } // namespace dart 312 } // namespace dart
317 313
318 #endif // VM_SCAVENGER_H_ 314 #endif // VM_SCAVENGER_H_
OLDNEW
« no previous file with comments | « runtime/vm/object_graph.cc ('k') | runtime/vm/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698