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

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

Issue 896133003: Fix Dartium DEBUG failures by ensuring proper scoping within GC prologue/epilogue. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 5 years, 10 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 | Annotate | Revision Log
« no previous file with comments | « runtime/vm/gc_marker.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 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
240 bool visit_prologue_weak_persistent_handles); 240 bool visit_prologue_weak_persistent_handles);
241 void IterateWeakProperties(Isolate* isolate, ScavengerVisitor* visitor); 241 void IterateWeakProperties(Isolate* isolate, ScavengerVisitor* visitor);
242 void IterateWeakReferences(Isolate* isolate, ScavengerVisitor* visitor); 242 void IterateWeakReferences(Isolate* isolate, ScavengerVisitor* visitor);
243 void IterateWeakRoots(Isolate* isolate, 243 void IterateWeakRoots(Isolate* isolate,
244 HandleVisitor* visitor, 244 HandleVisitor* visitor,
245 bool visit_prologue_weak_persistent_handles); 245 bool visit_prologue_weak_persistent_handles);
246 void ProcessToSpace(ScavengerVisitor* visitor); 246 void ProcessToSpace(ScavengerVisitor* visitor);
247 uword ProcessWeakProperty(RawWeakProperty* raw_weak, 247 uword ProcessWeakProperty(RawWeakProperty* raw_weak,
248 ScavengerVisitor* visitor); 248 ScavengerVisitor* visitor);
249 void Epilogue(Isolate* isolate, 249 void Epilogue(Isolate* isolate,
250 ScavengerVisitor* visitor,
251 bool invoke_api_callbacks); 250 bool invoke_api_callbacks);
252 251
253 bool IsUnreachable(RawObject** p); 252 bool IsUnreachable(RawObject** p);
254 253
255 // During a scavenge we need to remember the promoted objects. 254 // During a scavenge we need to remember the promoted objects.
256 // This is implemented as a stack of objects at the end of the to space. As 255 // This is implemented as a stack of objects at the end of the to space. As
257 // object sizes are always greater than sizeof(uword) and promoted objects do 256 // object sizes are always greater than sizeof(uword) and promoted objects do
258 // not consume space in the to space they leave enough room for this stack. 257 // not consume space in the to space they leave enough room for this stack.
259 void PushToPromotedStack(uword addr) { 258 void PushToPromotedStack(uword addr) {
260 ASSERT(scavenging_); 259 ASSERT(scavenging_);
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
313 312
314 friend class ScavengerVisitor; 313 friend class ScavengerVisitor;
315 friend class ScavengerWeakVisitor; 314 friend class ScavengerWeakVisitor;
316 315
317 DISALLOW_COPY_AND_ASSIGN(Scavenger); 316 DISALLOW_COPY_AND_ASSIGN(Scavenger);
318 }; 317 };
319 318
320 } // namespace dart 319 } // namespace dart
321 320
322 #endif // VM_SCAVENGER_H_ 321 #endif // VM_SCAVENGER_H_
OLDNEW
« no previous file with comments | « runtime/vm/gc_marker.cc ('k') | runtime/vm/scavenger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698