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

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 94fb3f53d68140e28b9819b04f20caee0b7e7bae..fcb81e28ac3dd8b86e72d354af4a0d018c8dee58 100644
--- a/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
+++ b/pkg/compiler/lib/src/ssa/kernel_ast_adapter.dart
@@ -124,10 +124,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