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

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

Issue 2425933002: Revert "Change TypeInference to handle super calls as direct invocations." and "Optimize needNoSuch… (Closed)
Patch Set: 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
« no previous file with comments | « pkg/compiler/lib/src/ssa/codegen.dart ('k') | pkg/compiler/lib/src/universe/class_set.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 fb5f1963b454a5b6bf56af83c6b5c41e84af449a..e8c546a42b03ff4ec80de283618a7b05b856c8df 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 an implicitly called
- // [:noSuchMethod:] we just ignore it.
+ // If we found out that the only target is a [:noSuchMethod:],
+ // we just ignore it.
&&
- node.selector.applies(element)) {
+ element.name == node.selector.name) {
FunctionElement method = element;
if (backend.isNative(method)) {
« no previous file with comments | « pkg/compiler/lib/src/ssa/codegen.dart ('k') | pkg/compiler/lib/src/universe/class_set.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698