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

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

Issue 2860733002: Remove ClosedWorld.allFunctions (Closed)
Patch Set: Created 3 years, 8 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/type_graph_nodes.dart
diff --git a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
index 403716fc20b19a040bc038a3868bf1f4efa2b3c6..e7460c9e52be36dd888d816b738d796ee2b577bf 100644
--- a/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
+++ b/pkg/compiler/lib/src/inferrer/type_graph_nodes.dart
@@ -823,7 +823,7 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation {
void addToGraph(InferrerEngine inferrer) {
assert(receiver != null);
TypeMask typeMask = computeTypedSelector(inferrer);
- targets = inferrer.closedWorld.allFunctions.filter(selector, typeMask);
+ targets = inferrer.closedWorld.locateMembers(selector, typeMask);
receiver.addUser(this);
if (arguments != null) {
arguments.forEach((info) => info.addUser(this));
@@ -987,9 +987,9 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation {
// the untyped selector (through noSuchMethod's `Invocation`
// and a call to `delegate`), we iterate over all these methods to
// update their parameter types.
- targets = inferrer.closedWorld.allFunctions.filter(selector, maskToUse);
+ targets = inferrer.closedWorld.locateMembers(selector, maskToUse);
Iterable<MemberEntity> typedTargets = canReachAll
- ? inferrer.closedWorld.allFunctions.filter(selector, typeMask)
+ ? inferrer.closedWorld.locateMembers(selector, typeMask)
: targets;
// Update the call graph if the targets could have changed.
@@ -1085,7 +1085,7 @@ class DynamicCallSiteTypeInformation extends CallSiteTypeInformation {
if (!abandonInferencing) {
inferrer.updateSelectorInTree(caller, call, selector, mask);
Iterable<MemberEntity> oldTargets = targets;
- targets = inferrer.closedWorld.allFunctions.filter(selector, mask);
+ targets = inferrer.closedWorld.locateMembers(selector, mask);
for (MemberElement element in targets) {
if (!oldTargets.contains(element)) {
MemberTypeInformation callee =

Powered by Google App Engine
This is Rietveld 408576698