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

Unified Diff: runtime/vm/intermediate_language_x64.cc

Issue 10876052: If a PolymorphicInstanceCall has a single target, .. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: 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
Index: runtime/vm/intermediate_language_x64.cc
===================================================================
--- runtime/vm/intermediate_language_x64.cc (revision 11256)
+++ runtime/vm/intermediate_language_x64.cc (working copy)
@@ -1967,6 +1967,17 @@
}
ASSERT(HasICData());
ASSERT(ic_data()->num_args_tested() == 1);
+ if (!with_checks()) {
+ const Function& target = Function::ZoneHandle(ic_data()->GetTargetAt(0));
+ compiler->GenerateStaticCall(instance_call()->deopt_id(),
+ instance_call()->token_pos(),
+ instance_call()->try_index(),
+ target,
+ instance_call()->ArgumentCount(),
+ instance_call()->argument_names(),
+ locs());
+ return;
+ }
Label handle_smi;
Label* is_smi_label =
ic_data()->GetReceiverClassIdAt(0) == kSmiCid ? &handle_smi : deopt;
« runtime/vm/intermediate_language_ia32.cc ('K') | « runtime/vm/intermediate_language_ia32.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698