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

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

Issue 344243002: Make incremental compilation opt-in. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r37603. Created 6 years, 6 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/src/caching_compiler.dart ('k') | dart/site/try/src/messages.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/src/compilation.dart
diff --git a/dart/site/try/src/compilation.dart b/dart/site/try/src/compilation.dart
index b7da59a3d380c245e58ecf6f8a6f0f9ecfdf692e..d9b28afb0b3c7af711727c306b0a540da1475ac7 100644
--- a/dart/site/try/src/compilation.dart
+++ b/dart/site/try/src/compilation.dart
@@ -33,6 +33,7 @@ import 'ui.dart' show
import 'settings.dart' show
alwaysRunInWorker,
+ incrementalCompilation,
minified,
onlyAnalyze,
verboseCompiler;
@@ -98,13 +99,14 @@ class CompilationProcess {
current = this;
var options = [
'--analyze-main',
- '--disable-type-inference',
- '--incremental-support',
'--no-source-maps',
];
if (verboseCompiler) options.add('--verbose');
if (minified) options.add('--minify');
if (onlyAnalyze) options.add('--analyze-only');
+ if (incrementalCompilation.value) {
+ options.addAll(['--incremental-support', '--disable-type-inference']);
+ }
interaction.compilationStarting();
compilerPort.send([['options', options], receivePort.sendPort]);
receivePort.listen(onMessage);
« no previous file with comments | « dart/site/try/src/caching_compiler.dart ('k') | dart/site/try/src/messages.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698