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

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

Issue 764023002: Incremental compilation of new lazy statics. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: 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 9c869fa90738bb88241de3f02f20f3ffc147d97b..03d591e09472b407d35b7d4fa2dadcc83d087a39 100644
--- a/dart/pkg/dart2js_incremental/lib/caching_compiler.dart
+++ b/dart/pkg/dart2js_incremental/lib/caching_compiler.dart
@@ -67,8 +67,11 @@ Future<Compiler> reuseCompiler(
JavaScriptBackend backend = compiler.backend;
// Much like a scout, an incremental compiler is always prepared. For
- // mixins, at least.
- backend.emitter.oldEmitter.needsMixinSupport = true;
+ // mixins, classes, and lazy statics, at least.
+ backend.emitter.oldEmitter
+ ..needsDefineClass = true
+ ..needsMixinSupport = true
+ ..needsLazyInitializer = true;
Uri core = Uri.parse("dart:core");
return compiler.libraryLoader.loadLibrary(core).then((_) {

Powered by Google App Engine
This is Rietveld 408576698