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

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

Issue 720813002: Incremental compilation of new classes with fields. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Merged with r41823. Created 6 years, 1 month 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
Index: dart/pkg/dart2js_incremental/lib/caching_compiler.dart
diff --git a/dart/pkg/dart2js_incremental/lib/caching_compiler.dart b/dart/pkg/dart2js_incremental/lib/caching_compiler.dart
index e239cb08e1d216940064d1546ab061cee0698639..c6b3a4a1dabeba1e9c668871fabe3fc3548c2867 100644
--- a/dart/pkg/dart2js_incremental/lib/caching_compiler.dart
+++ b/dart/pkg/dart2js_incremental/lib/caching_compiler.dart
@@ -56,15 +56,19 @@ Future<Compiler> reuseCompiler(
}
}
oldTag.makeCurrent();
- return new Future.value(
- new Compiler(
- inputProvider,
- outputProvider,
- diagnosticHandler,
- libraryRoot,
- packageRoot,
- options,
- environment));
+ compiler = new Compiler(
+ inputProvider,
+ outputProvider,
+ diagnosticHandler,
+ libraryRoot,
+ packageRoot,
+ options,
+ environment);
+ JavaScriptBackend backend = compiler.backend;
+ // Much like a scout, an incremental compiler is always prepared. For
+ // mixins, at least.
+ backend.emitter.oldEmitter.needsMixinSupport = true;
+ return new Future.value(compiler);
} else {
for (final task in compiler.tasks) {
if (task.watch != null) {
« no previous file with comments | « dart/pkg/compiler/lib/src/js_emitter/old_emitter/emitter.dart ('k') | dart/pkg/dart2js_incremental/lib/library_updater.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698