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

Unified Diff: vm/dart_api_impl.cc

Issue 8343071: When generating snapshots for a specified script don't include the builtin library by default. Th... (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/runtime/
Patch Set: '' Created 9 years, 2 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
« bin/process_script.cc ('K') | « bin/process_script.cc ('k') | no next file » | 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 900)
+++ vm/dart_api_impl.cc (working copy)
@@ -1620,6 +1620,9 @@
if (msg != NULL) {
return Api::Error(msg);
}
+ // Since this is only a snapshot the root library should not be set.
+ Isolate* isolate = Isolate::Current();
+ isolate->object_store()->set_root_library(Library::Handle());
SnapshotWriter writer(true, snapshot_buffer, ApiAllocator);
writer.WriteFullSnapshot();
*snapshot_size = writer.Size();
« bin/process_script.cc ('K') | « bin/process_script.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698