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

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

Issue 832363002: Remove Compiler.assembledCode. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix unittest Created 5 years, 11 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 | « pkg/dart2js_incremental/lib/dart2js_incremental.dart ('k') | tests/compiler/dart2js/analyze_only_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: site/try/src/compiler_isolate.dart
diff --git a/site/try/src/compiler_isolate.dart b/site/try/src/compiler_isolate.dart
index a969ca1cfef9af4be4c85797ef218df82f13ebb2..b4e0cfcc82984b0cb454ce2468ba51f4b507d233 100644
--- a/site/try/src/compiler_isolate.dart
+++ b/site/try/src/compiler_isolate.dart
@@ -14,7 +14,7 @@ import 'compilation.dart' show PRIVATE_SCHEME;
import 'package:compiler/compiler.dart' as compiler;
import 'package:dart2js_incremental/dart2js_incremental.dart' show
- reuseCompiler;
+ reuseCompiler, OutputProvider;
import 'package:compiler/src/dart2jslib.dart' show
Compiler;
@@ -110,9 +110,11 @@ compile(source, SendPort replyTo) {
}
}
Stopwatch compilationTimer = new Stopwatch()..start();
+ OutputProvider outputProvider = new OutputProvider();
reuseCompiler(
diagnosticHandler: handler,
inputProvider: inputProvider,
+ outputProvider: outputProvider,
options: options,
cachedCompiler: cachedCompiler,
libraryRoot: sdkLocation,
@@ -127,7 +129,7 @@ compile(source, SendPort replyTo) {
.lookupLibrary(Uri.parse('dart:html')) != null) {
notifyDartHtml(replyTo);
}
- String js = cachedCompiler.assembledCode;
+ String js = outputProvider['.js'];
if (js == null) {
if (!options.contains('--analyze-only')) replyTo.send('failed');
} else {
« no previous file with comments | « pkg/dart2js_incremental/lib/dart2js_incremental.dart ('k') | tests/compiler/dart2js/analyze_only_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698