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

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

Issue 10836339: Get rid of the name in HInvokeDynamic (just use the selector instead). (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix checked mode. Created 8 years, 4 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 | « lib/compiler/implementation/ssa/nodes.dart ('k') | lib/compiler/implementation/ssa/tracer.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/ssa/optimize.dart
diff --git a/lib/compiler/implementation/ssa/optimize.dart b/lib/compiler/implementation/ssa/optimize.dart
index a84aa70ea4a8f245bac67a57f63731d8694da729..04c0aba1b41fa9090d086582dd94687275bc45d6 100644
--- a/lib/compiler/implementation/ssa/optimize.dart
+++ b/lib/compiler/implementation/ssa/optimize.dart
@@ -228,7 +228,7 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase {
HType receiverType = types[node.receiver];
if (receiverType.isExact()) {
HBoundedType type = receiverType;
- Element element = type.lookupMember(node.name);
+ Element element = type.lookupMember(node.selector.name);
// TODO(ngeoffray): Also fold if it's a getter or variable.
if (element != null && element.isFunction()) {
if (node.selector.applies(element, compiler)) {
@@ -250,7 +250,6 @@ class SsaConstantFolder extends HBaseVisitor implements OptimizationPhase {
HBoundedType type = types[node.inputs[1]];
HInvokeDynamicMethod result = new HInvokeDynamicMethod(
selector,
- selector.name,
node.inputs.getRange(1, node.inputs.length - 1));
if (type.isExact()) {
HBoundedType concrete = type;
« no previous file with comments | « lib/compiler/implementation/ssa/nodes.dart ('k') | lib/compiler/implementation/ssa/tracer.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698