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

Unified Diff: pkg/compiler/lib/src/ssa/optimize.dart

Issue 2423953002: Change TypeInference to handle super calls as direct invocations. (Closed)
Patch Set: Register instance methods from direct invocation. Created 4 years, 2 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/ssa/optimize.dart
diff --git a/pkg/compiler/lib/src/ssa/optimize.dart b/pkg/compiler/lib/src/ssa/optimize.dart
index e8c546a42b03ff4ec80de283618a7b05b856c8df..fb5f1963b454a5b6bf56af83c6b5c41e84af449a 100644
--- a/pkg/compiler/lib/src/ssa/optimize.dart
+++ b/pkg/compiler/lib/src/ssa/optimize.dart
@@ -449,10 +449,10 @@ class SsaInstructionSimplifier extends HBaseVisitor
// TODO(ngeoffray): Also fold if it's a getter or variable.
if (element != null &&
element.isFunction
- // If we found out that the only target is a [:noSuchMethod:],
- // we just ignore it.
+ // If we found out that the only target is an implicitly called
+ // [:noSuchMethod:] we just ignore it.
&&
- element.name == node.selector.name) {
+ node.selector.applies(element)) {
FunctionElement method = element;
if (backend.isNative(method)) {

Powered by Google App Engine
This is Rietveld 408576698