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

Unified Diff: runtime/bin/gen_snapshot.cc

Issue 529203004: Cleanup resource loading of the VM. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 years, 3 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
Index: runtime/bin/gen_snapshot.cc
diff --git a/runtime/bin/gen_snapshot.cc b/runtime/bin/gen_snapshot.cc
index 637e1c0d213c9d85d75c154b3ddd0018dec7b365..ad68a0d5f55e3134ac8c51df226ece69fc264896 100644
--- a/runtime/bin/gen_snapshot.cc
+++ b/runtime/bin/gen_snapshot.cc
@@ -352,10 +352,13 @@ static Dart_Handle CreateSnapshotLibraryTagHandler(Dart_LibraryTag tag,
return file_path;
}
- return DartUtils::LoadSource(library,
- url,
- tag,
- DartUtils::GetStringValue(file_path));
+ Dart_Handle builtin_lib =
+ Builtin::LoadAndCheckLibrary(Builtin::kBuiltinLibrary);
+ Dart_Handle result = DartUtils::LoadSource(library, url, tag, builtin_lib);
+ if (Dart_IsError(result)) {
+ return result;
+ }
+ return Dart_RunLoop();
}
« runtime/bin/dartutils.cc ('K') | « runtime/bin/dartutils.cc ('k') | runtime/bin/main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698