| Index: lib/compiler/implementation/ssa/codegen.dart
|
| diff --git a/lib/compiler/implementation/ssa/codegen.dart b/lib/compiler/implementation/ssa/codegen.dart
|
| index 16081b16dc27b91592582710d33730c1e5bf7cfe..5afc86f5d63dffcf89b7768fee87c290c7cdbbae 100644
|
| --- a/lib/compiler/implementation/ssa/codegen.dart
|
| +++ b/lib/compiler/implementation/ssa/codegen.dart
|
| @@ -1549,6 +1549,11 @@ abstract class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
|
| node);
|
| Selector call = new Selector.callClosureFrom(node.selector);
|
| world.registerDynamicInvocation(call.name, call);
|
| + // A closure can also be invoked through [HInvokeDynamicMethod] by
|
| + // explicitly calling the [:call:] method. Therefore, we must also
|
| + // register types here to let the backend invalidate wrong
|
| + // optimizations.
|
| + backend.registerDynamicInvocation(node, call, types);
|
| }
|
|
|
| visitInvokeStatic(HInvokeStatic node) {
|
|
|