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

Unified Diff: pkg/compiler/lib/src/dump_info.dart

Issue 2915523003: Create new interface instead of ClosureClassMap for variable usage information that is not Element-…
Patch Set: merge with master Created 3 years, 6 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
« no previous file with comments | « pkg/compiler/lib/src/closure.dart ('k') | pkg/compiler/lib/src/inferrer/builder.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/dump_info.dart
diff --git a/pkg/compiler/lib/src/dump_info.dart b/pkg/compiler/lib/src/dump_info.dart
index fcecf0c44d08cf56cf4a2e240b71399ec571e45c..e8e31f8448b78870a0ee7890fc7488ddff2a6bb5 100644
--- a/pkg/compiler/lib/src/dump_info.dart
+++ b/pkg/compiler/lib/src/dump_info.dart
@@ -214,11 +214,8 @@ class ElementInfoCollector extends BaseElementVisitor<Info, dynamic> {
size: compiler.dumpInfoTask.sizeOf(element));
_elementToInfo[element] = closureInfo;
- ClosureClassMap closureMap = compiler.closureToClassMapper
- .getClosureToClassMapping(element.methodElement);
- assert(closureMap != null && closureMap.closureClassElement == element);
-
- FunctionInfo functionInfo = this.process(closureMap.callElement);
+ FunctionInfo functionInfo = this.process(
+ compiler.closureToClassMapper.getCallEntity(element.methodElement));
if (functionInfo == null) return null;
closureInfo.function = functionInfo;
functionInfo.parent = closureInfo;
« no previous file with comments | « pkg/compiler/lib/src/closure.dart ('k') | pkg/compiler/lib/src/inferrer/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698