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

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

Issue 2968743002: Use .callMethod instead of LocalFunctionElement as key in inference (Closed)
Patch Set: Updated cf. comments 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/node_tracer.dart
diff --git a/pkg/compiler/lib/src/inferrer/node_tracer.dart b/pkg/compiler/lib/src/inferrer/node_tracer.dart
index c328946f75c31ec7d96fb2280830d89ef1343d92..b639879df586e7364a9b1793786d84d28fd8fffb 100644
--- a/pkg/compiler/lib/src/inferrer/node_tracer.dart
+++ b/pkg/compiler/lib/src/inferrer/node_tracer.dart
@@ -209,10 +209,8 @@ abstract class TracerVisitor implements TypeInformationVisitor {
ClosureCallSiteTypeInformation info) {}
visitStaticCallSiteTypeInformation(StaticCallSiteTypeInformation info) {
- Element called = info.calledElement;
- TypeInformation inferred = called.isLocal
- ? inferrer.types.getInferredTypeOfLocalFunction(called)
- : inferrer.types.getInferredTypeOfMember(called);
+ MemberElement called = info.calledElement;
+ TypeInformation inferred = inferrer.types.getInferredTypeOfMember(called);
if (inferred == currentUser) {
addNewEscapeInformation(info);
}
@@ -464,7 +462,7 @@ abstract class TracerVisitor implements TypeInformationVisitor {
}
void visitParameterTypeInformation(ParameterTypeInformation info) {
- if (inferrer.isNativeMember(info.method)) {
+ if (inferrer.closedWorld.nativeData.isNativeMember(info.method)) {
bailout('Passed to a native method');
}
if (!inferrer.compiler.backend
« no previous file with comments | « pkg/compiler/lib/src/inferrer/inferrer_engine.dart ('k') | pkg/compiler/lib/src/inferrer/type_graph_dump.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698