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

Unified Diff: runtime/vm/scavenger.h

Issue 773573005: vmservice: basic object graph serialization. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/scavenger.h
===================================================================
--- runtime/vm/scavenger.h (revision 41936)
+++ runtime/vm/scavenger.h (working copy)
@@ -159,6 +159,13 @@
void Scavenge();
void Scavenge(bool invoke_api_callbacks);
+ // Promote all live objects.
+ void Evacuate() {
+ Scavenge();
+ Scavenge();
+ ASSERT(UsedInWords() == 0);
+ }
+
// Accessors to generate code for inlined allocation.
uword* TopAddress() { return &top_; }
uword* EndAddress() { return &end_; }

Powered by Google App Engine
This is Rietveld 408576698