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

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

Issue 10119010: Start propagating non-primitive types in the backend, and fold instructions that know about the typ… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 8 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
Index: lib/compiler/implementation/ssa/codegen.dart
===================================================================
--- lib/compiler/implementation/ssa/codegen.dart (revision 6686)
+++ lib/compiler/implementation/ssa/codegen.dart (working copy)
@@ -1007,7 +1007,14 @@
buffer.add(compiler.namer.instanceMethodInvocationName(
currentLibrary, node.name, node.selector));
visitArguments(node.inputs);
- compiler.registerDynamicInvocation(node.name, node.selector);
+ if (node.element !== null) {
+ // If we know we're calling a specific method, register that
+ // method only.
+ compiler.registerDynamicInvocationOn(
+ node.name, node.selector, node.element);
+ } else {
+ compiler.registerDynamicInvocation(node.name, node.selector);
+ }
}
endExpression(JSPrecedence.CALL_PRECEDENCE);
}

Powered by Google App Engine
This is Rietveld 408576698