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

Unified Diff: pkg/compiler/lib/src/inferrer/builder.dart

Issue 2938203003: Compute KernelClosureRepresentationInfo.variableIsUsedInTryOrSync (Closed)
Patch Set: Merge KernelClosureConversionTask and KernelClosureDataLookup 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 b265464d05b69e75aa825dd191013f804479ca96..b9ef546ba42575ae38019d349943837480f84e96 100644
--- a/pkg/compiler/lib/src/inferrer/builder.dart
+++ b/pkg/compiler/lib/src/inferrer/builder.dart
@@ -915,7 +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].
- ClosureRepresentationInfo closureData = compiler.closureDataLookup
+ ClosureRepresentationInfo closureData = compiler
+ .backendStrategy.closureDataLookup
.getClosureRepresentationInfo(analyzedElement);
closureData.forEachCapturedVariable((variable, field) {
locals.setCaptured(variable, field);
@@ -1102,8 +1103,9 @@ 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.
- ClosureRepresentationInfo nestedClosureData =
- compiler.closureDataLookup.getClosureRepresentationInfo(element);
+ ClosureRepresentationInfo nestedClosureData = compiler
+ .backendStrategy.closureDataLookup
+ .getClosureRepresentationInfo(element);
nestedClosureData.forEachCapturedVariable((variable, field) {
if (!nestedClosureData.isVariableBoxed(variable)) {
if (variable == nestedClosureData.thisLocal) {

Powered by Google App Engine
This is Rietveld 408576698