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

Unified Diff: pkg/compiler/lib/src/inferrer/builder.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/inferrer/builder.dart
diff --git a/pkg/compiler/lib/src/inferrer/builder.dart b/pkg/compiler/lib/src/inferrer/builder.dart
index 2659a4f5620dce93e1d862dee1b67dfe6576c95d..1d121b30f7e53aa11d97998dea10b1a6112dc507 100644
--- a/pkg/compiler/lib/src/inferrer/builder.dart
+++ b/pkg/compiler/lib/src/inferrer/builder.dart
@@ -4,7 +4,7 @@
library simple_types_inferrer;
-import '../closure.dart' show ClosureClassMap;
+import '../closure.dart' show ClosureRepresentationInfo;
import '../common.dart';
import '../common/names.dart' show Identifiers, Selectors;
import '../compiler.dart' show Compiler;
@@ -915,8 +915,8 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation>
// be handled specially, in that we are computing their LUB at
// each update, and reading them yields the type that was found in a
// previous analysis of [outermostElement].
- ClosureClassMap closureData =
- compiler.closureToClassMapper.getClosureToClassMapping(analyzedElement);
+ ClosureRepresentationInfo closureData = compiler.closureToClassMapper
+ .getClosureRepresentationInfo(analyzedElement);
closureData.forEachCapturedVariable((variable, field) {
locals.setCaptured(variable, field);
});
@@ -1099,8 +1099,8 @@ class ElementGraphBuilder extends ast.Visitor<TypeInformation>
// Record the types of captured non-boxed variables. Types of
// these variables may already be there, because of an analysis of
// a previous closure.
- ClosureClassMap nestedClosureData =
- compiler.closureToClassMapper.getClosureToClassMapping(element);
+ ClosureRepresentationInfo nestedClosureData =
+ compiler.closureToClassMapper.getClosureRepresentationInfo(element);
nestedClosureData.forEachCapturedVariable((variable, field) {
if (!nestedClosureData.isVariableBoxed(variable)) {
if (variable == nestedClosureData.thisLocal) {

Powered by Google App Engine
This is Rietveld 408576698