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

Unified Diff: dart/site/try/src/compiler_isolate.dart

Issue 564373004: Add LibraryLoader.resetAsync. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Restore code. 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
« no previous file with comments | « dart/site/try/poi/poi.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/src/compiler_isolate.dart
diff --git a/dart/site/try/src/compiler_isolate.dart b/dart/site/try/src/compiler_isolate.dart
index f6265aea23a1e0dac48c4409a6e59d4c08de2593..6952c83c9a86c600bbfe27554d550c36890eca38 100644
--- a/dart/site/try/src/compiler_isolate.dart
+++ b/dart/site/try/src/compiler_isolate.dart
@@ -107,16 +107,17 @@ compile(source, SendPort replyTo) {
}
}
Stopwatch compilationTimer = new Stopwatch()..start();
- cachedCompiler = reuseCompiler(
+ reuseCompiler(
diagnosticHandler: handler,
inputProvider: inputProvider,
options: options,
cachedCompiler: cachedCompiler,
libraryRoot: sdkLocation,
packageRoot: Uri.base.resolve('/packages/'),
- packagesAreImmutable: true);
-
- cachedCompiler.run(Uri.parse('$PRIVATE_SCHEME:/main.dart')).then((success) {
+ packagesAreImmutable: true).then((Compiler newCompiler) {
+ cachedCompiler = newCompiler;
+ return cachedCompiler.run(Uri.parse('$PRIVATE_SCHEME:/main.dart'));
+ }).then((success) {
compilationTimer.stop();
print('Compilation took ${compilationTimer.elapsed}');
if (cachedCompiler.libraryLoader
« no previous file with comments | « dart/site/try/poi/poi.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698