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

Unified Diff: lib/compiler/implementation/ssa/codegen.dart

Issue 10693127: Make sure to use the type-restricted selector when registering (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 5 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698