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

Unified Diff: runtime/bin/gen_snapshot.cc

Issue 10332257: Revert my last change. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 7 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 | « runtime/bin/dartutils.cc ('k') | runtime/bin/main.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/gen_snapshot.cc
===================================================================
--- runtime/bin/gen_snapshot.cc (revision 7756)
+++ runtime/bin/gen_snapshot.cc (working copy)
@@ -116,7 +116,8 @@
static Dart_Handle CreateSnapshotLibraryTagHandler(Dart_LibraryTag tag,
Dart_Handle library,
- Dart_Handle url) {
+ Dart_Handle url,
+ Dart_Handle import_map) {
if (!Dart_IsLibrary(library)) {
return Dart_Error("not a library");
}
@@ -141,7 +142,8 @@
library,
url,
tag,
- url_string);
+ url_string,
+ import_map);
}
@@ -151,14 +153,18 @@
return source; // source contains the error string.
}
Dart_Handle url = Dart_NewString(script_name);
+ Dart_Handle import_map = Dart_NewList(0);
- return Dart_LoadScript(url, source);
+ return Dart_LoadScript(url,
+ source,
+ import_map);
}
static Dart_Handle BuiltinLibraryTagHandler(Dart_LibraryTag tag,
Dart_Handle library,
- Dart_Handle url) {
+ Dart_Handle url,
+ Dart_Handle import_map) {
if (!Dart_IsLibrary(library)) {
return Dart_Error("not a library");
}
@@ -258,7 +264,7 @@
Dart_Initialize(NULL, NULL);
char* error;
- Dart_Isolate isolate = Dart_CreateIsolate(NULL, NULL, NULL, NULL, &error);
+ Dart_Isolate isolate = Dart_CreateIsolate(NULL, NULL, NULL, &error);
if (isolate == NULL) {
fprintf(stderr, "%s", error);
free(error);
« no previous file with comments | « runtime/bin/dartutils.cc ('k') | runtime/bin/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698