| 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);
|
|
|