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

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

Issue 2875313002: Access BackendUsage through ClosedWorld (Closed)
Patch Set: Created 3 years, 7 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/frontend_strategy.dart ('k') | pkg/compiler/lib/src/inferrer/type_graph_nodes.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/inferrer/node_tracer.dart
diff --git a/pkg/compiler/lib/src/inferrer/node_tracer.dart b/pkg/compiler/lib/src/inferrer/node_tracer.dart
index 64f5c2bfab16d41da6b200b6d1a9cd24670e3159..b30ae28563a0d665c971f998951a522aa04b2492 100644
--- a/pkg/compiler/lib/src/inferrer/node_tracer.dart
+++ b/pkg/compiler/lib/src/inferrer/node_tracer.dart
@@ -450,8 +450,8 @@ abstract class TracerVisitor implements TypeInformationVisitor {
bailout('Returned from a closure');
}
if (info.element.isField &&
- !inferrer.compiler.backend
- .canFieldBeUsedForGlobalOptimizations(info.element)) {
+ !inferrer.compiler.backend.canFieldBeUsedForGlobalOptimizations(
+ info.element, inferrer.closedWorld)) {
bailout('Escape to code that has special backend treatment');
}
addNewEscapeInformation(info);
@@ -464,7 +464,7 @@ abstract class TracerVisitor implements TypeInformationVisitor {
}
if (!inferrer.compiler.backend
.canFunctionParametersBeUsedForGlobalOptimizations(
- element.functionDeclaration)) {
+ element.functionDeclaration, inferrer.closedWorld)) {
bailout('Escape to code that has special backend treatment');
}
if (isParameterOfListAddingMethod(element) ||
« no previous file with comments | « pkg/compiler/lib/src/frontend_strategy.dart ('k') | pkg/compiler/lib/src/inferrer/type_graph_nodes.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698