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

Unified Diff: pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart

Issue 2933363003: Add ClosureRepresentationInfo, the new public face of ClosureClassMap (Closed)
Patch Set: . 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
Index: pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
diff --git a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
index bb78b62ff45ec5f67ddd92ba8f1f3675aa0e47d2..f589becefa192723b66c6836cd0b6a35d89af3bf 100644
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
@@ -125,10 +125,10 @@ class KernelAstAdapter extends KernelToElementMapMixin
// Closures require a lookup one level deeper in the closure class mapper.
if (target == null) {
MethodElement originTargetFunction = originTarget;
- ClosureClassMap classMap = _compiler.closureToClassMapper
- .getClosureToClassMapping(originTargetFunction);
- if (classMap.closureElement != null) {
- target = kernel.localFunctions[classMap.closureElement];
+ ClosureRepresentationInfo classMap = _compiler.closureToClassMapper
+ .getClosureRepresentationInfo(originTargetFunction);
+ if (classMap.closureEntity != null) {
+ target = kernel.localFunctions[classMap.closureEntity];
}
}
} else if (originTarget is FieldElement) {

Powered by Google App Engine
This is Rietveld 408576698