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

Unified Diff: dart/pkg/compiler/lib/src/js_backend/backend.dart

Issue 740273003: Incremental compiler: support optional arguments. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Add TODO for a follow-up CL. 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/compiler/lib/src/js_backend/backend.dart
diff --git a/dart/pkg/compiler/lib/src/js_backend/backend.dart b/dart/pkg/compiler/lib/src/js_backend/backend.dart
index c2166d4ce291799971b5a626faa37f1748727cd5..5e8f30f9cd0e01d432bea8b8819f7e08dec736bc 100644
--- a/dart/pkg/compiler/lib/src/js_backend/backend.dart
+++ b/dart/pkg/compiler/lib/src/js_backend/backend.dart
@@ -2155,6 +2155,15 @@ class JavaScriptBackend extends Backend {
customElementsAnalysis.onQueueEmpty(enqueuer);
if (!enqueuer.queueIsEmpty) return false;
+ if (compiler.hasIncrementalSupport) {
+ // Always enable tear-off closures during incremental compilation.
+ Element e = findHelper('closureFromTearOff');
+ if (e != null && !enqueuer.isProcessed(e)) {
+ registerBackendUse(e);
+ enqueuer.addToWorkList(e);
+ }
+ }
+
if (!enqueuer.isResolutionQueue && preMirrorsMethodCount == 0) {
preMirrorsMethodCount = generatedCode.length;
}

Powered by Google App Engine
This is Rietveld 408576698