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

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

Issue 810933003: Avoid emitting addStubs and tearOffCode when not needed. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Always emit the functions in incremental compilations. Created 5 years, 11 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
Index: pkg/dart2js_incremental/lib/caching_compiler.dart
diff --git a/pkg/dart2js_incremental/lib/caching_compiler.dart b/pkg/dart2js_incremental/lib/caching_compiler.dart
index 1fec6d5ce7ed90d2ade0407ea58c5abeda2994a0..6b836b11394c4257da28d8f9731a986aad5c2c51 100644
--- a/pkg/dart2js_incremental/lib/caching_compiler.dart
+++ b/pkg/dart2js_incremental/lib/caching_compiler.dart
@@ -71,7 +71,8 @@ Future<Compiler> reuseCompiler(
backend.emitter.oldEmitter
..needsClassSupport = true
..needsMixinSupport = true
- ..needsLazyInitializer = true;
+ ..needsLazyInitializer = true
+ ..needsArrayInitializerSupport = true;
Uri core = Uri.parse("dart:core");
return compiler.libraryLoader.loadLibrary(core).then((_) {

Powered by Google App Engine
This is Rietveld 408576698