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

Unified Diff: dart/site/try/src/caching_compiler.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 | « no previous file | dart/site/try/src/compilation.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/site/try/src/caching_compiler.dart
diff --git a/dart/site/try/src/caching_compiler.dart b/dart/site/try/src/caching_compiler.dart
index 9c1f19208bfc0762fb73ff984e067895ae43d6c3..30c1c3d106e1ef41bca52b0474851ca12936ba75 100644
--- a/dart/site/try/src/caching_compiler.dart
+++ b/dart/site/try/src/caching_compiler.dart
@@ -69,11 +69,12 @@ Compiler reuseCompiler(
Compiler compiler = cachedCompiler;
if (compiler == null ||
compiler.libraryRoot != libraryRoot ||
+ !compiler.hasIncrementalSupport ||
compiler.hasCrashed ||
compiler.compilerWasCancelled ||
compiler.enqueuer.resolution.hasEnqueuedEverything ||
compiler.deferredLoadTask.splitProgram) {
- if (compiler != null) {
+ if (compiler != null && compiler.hasIncrementalSupport) {
print('***FLUSH***');
if (compiler.hasCrashed) {
print('Unable to reuse compiler due to crash.');
« no previous file with comments | « no previous file | dart/site/try/src/compilation.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698