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

Unified Diff: vm/snapshot.h

Issue 9124012: - Pass in the isolate parameter when creating handles. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 8 years, 11 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
« no previous file with comments | « vm/raw_object_snapshot.cc ('k') | vm/snapshot.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/snapshot.h
===================================================================
--- vm/snapshot.h (revision 3046)
+++ vm/snapshot.h (working copy)
@@ -279,13 +279,10 @@
// Reads a snapshot into objects.
class SnapshotReader {
public:
- SnapshotReader(const Snapshot* snapshot,
- Heap* heap,
- ObjectStore* object_store)
+ SnapshotReader(const Snapshot* snapshot, Isolate* isolate)
: stream_(snapshot->content(), snapshot->length()),
kind_(snapshot->kind()),
- heap_(heap),
- object_store_(object_store),
+ isolate_(isolate),
backward_references_() { }
~SnapshotReader() { }
@@ -303,8 +300,9 @@
return value;
}
- Heap* heap() const { return heap_; }
- ObjectStore* object_store() const { return object_store_; }
+ Isolate* isolate() const { return isolate_; }
+ Heap* heap() const { return isolate_->heap(); }
+ ObjectStore* object_store() const { return isolate_->object_store(); }
// Reads an object.
RawObject* ReadObject();
@@ -333,8 +331,7 @@
ReadStream stream_; // input stream.
Snapshot::Kind kind_; // Indicates type of snapshot(full, script, message).
- Heap* heap_; // Heap into which the objects are deserialized into.
- ObjectStore* object_store_; // Object store for common classes.
+ Isolate* isolate_; // Current isolate.
GrowableArray<Object*> backward_references_;
DISALLOW_COPY_AND_ASSIGN(SnapshotReader);
« no previous file with comments | « vm/raw_object_snapshot.cc ('k') | vm/snapshot.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698