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

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

Issue 2729613004: Cleanup registration of closures (Closed)
Patch Set: Created 3 years, 10 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/compiler/lib/src/js_backend/impact_transformer.dart
diff --git a/pkg/compiler/lib/src/js_backend/impact_transformer.dart b/pkg/compiler/lib/src/js_backend/impact_transformer.dart
index 128a78cdb17fceebeac6eb315b152066ce01e36e..b5d0fa7ef2f725a72094f172785b0fb4120a65c7 100644
--- a/pkg/compiler/lib/src/js_backend/impact_transformer.dart
+++ b/pkg/compiler/lib/src/js_backend/impact_transformer.dart
@@ -382,7 +382,7 @@ class JavaScriptImpactTransformer extends ImpactTransformer {
switch (staticUse.kind) {
case StaticUseKind.CLOSURE:
LocalFunctionElement closure = staticUse.element;
- if (backend.rtiNeed.methodNeedsRti(closure)) {
+ if (backend.rtiNeed.localFunctionNeedsRti(closure)) {
impacts.computeSignature
.registerImpact(transformed, elementEnvironment);
}

Powered by Google App Engine
This is Rietveld 408576698