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

Unified Diff: vm/dart_api_impl.cc

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/dart.cc ('k') | vm/handles.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vm/dart_api_impl.cc
===================================================================
--- vm/dart_api_impl.cc (revision 3046)
+++ vm/dart_api_impl.cc (working copy)
@@ -741,8 +741,7 @@
ASSERT(snapshot->IsMessageSnapshot());
// Read object back from the snapshot.
- Isolate* isolate = Isolate::Current();
- SnapshotReader reader(snapshot, isolate->heap(), isolate->object_store());
+ SnapshotReader reader(snapshot, Isolate::Current());
Instance& instance = Instance::Handle();
instance ^= reader.ReadObject();
return instance.raw();
@@ -2327,7 +2326,7 @@
return Api::Error("%s: A script has already been loaded from '%s'.",
CURRENT_FUNC, library_url.ToCString());
}
- SnapshotReader reader(snapshot, isolate->heap(), isolate->object_store());
+ SnapshotReader reader(snapshot, isolate);
const Object& tmp = Object::Handle(reader.ReadObject());
if (!tmp.IsLibrary()) {
return Api::Error("%s: Unable to deserialize snapshot correctly.",
« no previous file with comments | « vm/dart.cc ('k') | vm/handles.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698