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

Unified Diff: sdk/lib/_internal/compiler/implementation/ssa/optimize.dart

Issue 12380083: Fix a crash in the compiler: we were setting the target of a HInvokeDynamicMethod even if that targ… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 7 years, 10 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 | « no previous file | tests/language/interceptor6_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/ssa/optimize.dart
===================================================================
--- sdk/lib/_internal/compiler/implementation/ssa/optimize.dart (revision 19354)
+++ sdk/lib/_internal/compiler/implementation/ssa/optimize.dart (working copy)
@@ -324,7 +324,10 @@
&& selector.isCall()) {
DartType type = interceptor.instructionType.computeType(compiler);
ClassElement cls = type.element;
- node.element = cls.lookupSelector(selector);
+ Element target = cls.lookupSelector(selector);
+ if (selector.applies(target, compiler)) {
+ node.element = target;
+ }
}
return node;
}
« no previous file with comments | « no previous file | tests/language/interceptor6_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698