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

Unified Diff: runtime/vm/dart_api_impl.cc

Issue 506753003: Add a version number for full and script snapshots. (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/dart_api_impl.cc
===================================================================
--- runtime/vm/dart_api_impl.cc (revision 39523)
+++ runtime/vm/dart_api_impl.cc (working copy)
@@ -4882,10 +4882,10 @@
snapshot->length(),
snapshot->kind(),
isolate);
- const Object& tmp = Object::Handle(isolate, reader.ReadObject());
+ const Object& tmp = Object::Handle(isolate, reader.ReadScriptSnapshot());
if (!tmp.IsLibrary()) {
- return Api::NewError("%s: Unable to deserialize snapshot correctly.",
- CURRENT_FUNC);
+ ASSERT(tmp.IsError());
Ivan Posva 2014/08/26 23:52:42 If this is an error we should just return the erro
siva 2014/08/27 18:25:07 Removed this error and change ReadScriptSnapshot t
+ return Api::NewHandle(isolate, tmp.raw());
}
library ^= tmp.raw();
library.set_debuggable(true);
« no previous file with comments | « runtime/vm/dart.cc ('k') | runtime/vm/snapshot.h » ('j') | runtime/vm/snapshot.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698