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

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: Address comments and also test for needsDefineClass to see if defineClass is needed. Created 6 years 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 f364acd1c99ad29a86212a04638121aae1a236dc..2b970c323c6b59c7737a0eb75b83f4145c7eb66f 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((_) {
« 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