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

Unified Diff: runtime/bin/gen_snapshot.cc

Issue 10386107: Implement spawnUri from dart:isolate. This function allows us to (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 7714)
+++ runtime/bin/gen_snapshot.cc (working copy)
@@ -116,8 +116,7 @@
static Dart_Handle CreateSnapshotLibraryTagHandler(Dart_LibraryTag tag,
Dart_Handle library,
- Dart_Handle url,
- Dart_Handle import_map) {
+ Dart_Handle url) {
if (!Dart_IsLibrary(library)) {
return Dart_Error("not a library");
}
@@ -142,8 +141,7 @@
library,
url,
tag,
- url_string,
- import_map);
+ url_string);
}
@@ -153,18 +151,14 @@
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,
- import_map);
+ return Dart_LoadScript(url, source);
}
static Dart_Handle BuiltinLibraryTagHandler(Dart_LibraryTag tag,
Dart_Handle library,
- Dart_Handle url,
- Dart_Handle import_map) {
+ Dart_Handle url) {
if (!Dart_IsLibrary(library)) {
return Dart_Error("not a library");
}
@@ -264,7 +258,7 @@
Dart_Initialize(NULL, NULL);
char* error;
- Dart_Isolate isolate = Dart_CreateIsolate(NULL, NULL, NULL, &error);
+ Dart_Isolate isolate = Dart_CreateIsolate(NULL, 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