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

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

Issue 11275122: Merge revision r14430 to trunk. Do not evaluate arguments of an instance send if that instance sen… (Closed) Base URL: http://dart.googlecode.com/svn/trunk/
Patch Set: Created 8 years, 1 month 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 | dart/tests/language/inline_argument_test.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/lib/compiler/implementation/ssa/builder.dart
===================================================================
--- dart/lib/compiler/implementation/ssa/builder.dart (revision 14453)
+++ dart/lib/compiler/implementation/ssa/builder.dart (working copy)
@@ -2558,6 +2558,13 @@
return;
}
+ Element element = elements[node];
+ if (element != null && compiler.world.hasNoOverridingMember(element)) {
+ if (tryInlineMethod(element, selector, node.arguments)) {
+ return;
+ }
+ }
+
if (node.receiver == null) {
inputs.add(localsHandler.readThis());
} else {
@@ -2566,13 +2573,6 @@
}
addDynamicSendArgumentsToList(node, inputs);
-
- Element element = elements[node];
- if (element != null && compiler.world.hasNoOverridingMember(element)) {
- if (tryInlineMethod(element, selector, node.arguments)) {
- return;
- }
- }
// The first entry in the inputs list is the receiver.
pushWithPosition(new HInvokeDynamicMethod(selector, inputs), node);
« no previous file with comments | « no previous file | dart/tests/language/inline_argument_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698