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

Unified Diff: runtime/vm/snapshot.h

Issue 474913004: - Account for number of pending tasks in old-space collections. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 4 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 side-by-side diff with in-line comments
Download patch
Index: runtime/vm/snapshot.h
===================================================================
--- runtime/vm/snapshot.h (revision 39381)
+++ runtime/vm/snapshot.h (working copy)
@@ -29,6 +29,7 @@
class Library;
class Object;
class ObjectStore;
+class PageSpace;
class RawApiError;
class RawArray;
class RawBigint;
@@ -248,7 +249,7 @@
~SnapshotReader() { }
Isolate* isolate() const { return isolate_; }
- Heap* heap() const { return isolate_->heap(); }
+ Heap* heap() const { return heap_; }
ObjectStore* object_store() const { return isolate_->object_store(); }
ClassTable* class_table() const { return isolate_->class_table(); }
Object* ObjectHandle() { return &obj_; }
@@ -334,6 +335,8 @@
DeserializeState state_;
};
+ PageSpace* old_space() { return old_space_; }
siva 2014/08/20 17:21:23 const function ?
Ivan Posva 2014/08/20 18:35:20 Done.
+
// Allocate uninitialized objects, this is used when reading a full snapshot.
RawObject* AllocateUninitialized(intptr_t class_id, intptr_t size);
@@ -361,6 +364,8 @@
Snapshot::Kind kind_; // Indicates type of snapshot(full, script, message).
Isolate* isolate_; // Current isolate.
+ Heap* heap_; // Heap of the current isolate.
+ PageSpace* old_space_; // Old space of the current isolate.
Class& cls_; // Temporary Class handle.
Object& obj_; // Temporary Object handle.
Array& array_; // Temporary Array handle.

Powered by Google App Engine
This is Rietveld 408576698