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

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

Issue 2729613004: Cleanup registration of closures (Closed)
Patch Set: Updated cf. comments. Created 3 years, 9 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/mirrors_data.dart
diff --git a/pkg/compiler/lib/src/js_backend/mirrors_data.dart b/pkg/compiler/lib/src/js_backend/mirrors_data.dart
index 5505c3df49c29bc59f32cb0dbeca90da87726ecc..54236f802dbae68a9ea462bf709d1b24cc92afd2 100644
--- a/pkg/compiler/lib/src/js_backend/mirrors_data.dart
+++ b/pkg/compiler/lib/src/js_backend/mirrors_data.dart
@@ -273,7 +273,7 @@ class MirrorsData {
// can include the correct ones when including the class.
Map<ClassElement, List<LocalFunctionElement>> closureMap =
new Map<ClassElement, List<LocalFunctionElement>>();
- for (LocalFunctionElement closure in worldBuilder.allClosures) {
+ for (LocalFunctionElement closure in worldBuilder.localFunctions) {
closureMap.putIfAbsent(closure.enclosingClass, () => []).add(closure);
}
bool foundClosure = false;
@@ -384,7 +384,7 @@ class MirrorsData {
ClassElement cls = _helpers.closureClass;
reflectableMembers.add(cls);
}
- Set<Element> closurizedMembers = worldBuilder.closurizedMembers;
+ Set<MethodElement> closurizedMembers = worldBuilder.closurizedMembers;
if (closurizedMembers.any(reflectableMembers.contains)) {
ClassElement cls = _helpers.boundClosureClass;
reflectableMembers.add(cls);
« no previous file with comments | « pkg/compiler/lib/src/js_backend/impact_transformer.dart ('k') | pkg/compiler/lib/src/js_backend/resolution_listener.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698