Index: lib/compiler/implementation/ssa/codegen.dart |
diff --git a/lib/compiler/implementation/ssa/codegen.dart b/lib/compiler/implementation/ssa/codegen.dart |
index 0e2c6095726e78f5a99ac670c757a703347ff6eb..8e0a01cda98af0736a53a0e154cd8d20aba43fe7 100644 |
--- a/lib/compiler/implementation/ssa/codegen.dart |
+++ b/lib/compiler/implementation/ssa/codegen.dart |
@@ -1515,12 +1515,6 @@ abstract class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor { |
Selector defaultSelector) { |
// TODO(4434): For private members we need to use the untyped selector. |
if (defaultSelector.name.isPrivate()) return defaultSelector; |
- // If [JSInvocationMirror.invokeOn] has been called, we must not create a |
- // typed selector based on the receiver type. |
- if (node.element == null && // Invocation is not exact. |
- backend.compiler.enabledInvokeOn) { |
- return defaultSelector; |
- } |
HType receiverHType = types[node.inputs[0]]; |
DartType receiverType = receiverHType.computeType(compiler); |
if (receiverType != null) { |