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

Unified Diff: dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart

Issue 645513002: Scaffolding for testing incremental compilation. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Fix bad refactoring. Created 6 years, 2 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/tests/try/web/end_to_end_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart
diff --git a/dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart b/dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart
index d66bffe629fcc0ade9aca9bdcbf4ec3c3d5e655b..ddaa79d70c6de53357fa7ef46f60a00402a7e75c 100644
--- a/dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart
+++ b/dart/pkg/dart2js_incremental/lib/dart2js_incremental.dart
@@ -47,6 +47,8 @@ class IncrementalCompiler {
Compiler _compiler;
+ bool get compilerWasCancelled => _compiler.compilerWasCancelled;
+
IncrementalCompiler({
this.libraryRoot,
this.packageRoot,
@@ -67,7 +69,8 @@ class IncrementalCompiler {
}
Future<bool> compile(Uri script) {
- List<String> options = new List<String>.from(this.options);
+ List<String> options = this.options == null
+ ? <String> [] : new List<String>.from(this.options);
options.addAll(INCREMENTAL_OPTIONS);
Future<Compiler> future = reuseCompiler(
cachedCompiler: _compiler,
« no previous file with comments | « no previous file | dart/tests/try/web/end_to_end_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698