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

Unified Diff: bin/gen_snapshot.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
« no previous file with comments | « no previous file | bin/process_script.h » ('j') | bin/process_script.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: bin/gen_snapshot.cc
===================================================================
--- bin/gen_snapshot.cc (revision 900)
+++ bin/gen_snapshot.cc (working copy)
@@ -101,7 +101,7 @@
// is created.
if (script_name != NULL) {
// Load the specified script.
- Dart_Handle library = LoadScript(script_name);
+ Dart_Handle library = LoadSnapshotCreationScript(script_name);
if (!Dart_IsValid(library)) {
const char* err_msg = Dart_GetError(library);
fprintf(stderr, "Errors encountered while loading script: %s\n", err_msg);
@@ -116,12 +116,12 @@
Dart_ExitScope();
exit(255);
}
- Builtin_ImportLibrary(library);
} else {
+ // Implicitly load builtin library.
Builtin_LoadLibrary();
+ // Setup the native resolver for built in library functions.
+ Builtin_SetNativeResolver();
}
- // Setup the native resolver for built in library functions.
- Builtin_SetNativeResolver();
uint8_t* buffer = NULL;
intptr_t size = 0;
« no previous file with comments | « no previous file | bin/process_script.h » ('j') | bin/process_script.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698