| Index: lib/compiler/implementation/ssa/codegen.dart
|
| diff --git a/lib/compiler/implementation/ssa/codegen.dart b/lib/compiler/implementation/ssa/codegen.dart
|
| index 2ad7d60177420fa375dcc6a9a87284d486efcba4..d009c93cfe92c6b2cb18ee8a4436c652d6f2a8ac 100644
|
| --- a/lib/compiler/implementation/ssa/codegen.dart
|
| +++ b/lib/compiler/implementation/ssa/codegen.dart
|
| @@ -1729,12 +1729,9 @@ class SsaCodeGenerator implements HVisitor, HBlockInformationVisitor {
|
| }
|
| world.registerDynamicInvocationOf(node.element);
|
| } else {
|
| - if (inLoop) {
|
| - backend.builder.selectorsCalledInLoop[node.name] = node.selector;
|
| - }
|
| - world.registerDynamicInvocation(
|
| - node.name,
|
| - getOptimizedSelectorFor(node, node.selector));
|
| + Selector selector = getOptimizedSelectorFor(node, node.selector);
|
| + world.registerDynamicInvocation(node.name, selector);
|
| + if (inLoop) backend.builder.selectorsCalledInLoop[node.name] = selector;
|
| }
|
| }
|
| endExpression(JSPrecedence.CALL_PRECEDENCE);
|
|
|