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

Unified Diff: runtime/vm/flow_graph_inliner.cc

Issue 10981010: Move HasOneTarget to ICData. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 3 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 | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/flow_graph_inliner.cc
===================================================================
--- runtime/vm/flow_graph_inliner.cc (revision 12803)
+++ runtime/vm/flow_graph_inliner.cc (working copy)
@@ -184,12 +184,14 @@
void VisitPolymorphicInstanceCall(PolymorphicInstanceCallInstr* instr) {
TRACE_INLINING(OS::Print(" PolymorphicInstanceCall\n"));
+ const ICData& ic_data = instr->ic_data();
+ const Function& target = Function::ZoneHandle(ic_data.GetTargetAt(0));
if (instr->with_checks()) {
- TRACE_INLINING(OS::Print(" Bailout: checks\n"));
+ TRACE_INLINING(OS::Print(" Bailout: %"Pd" checks target '%s'\n",
+ ic_data.NumberOfChecks(),
+ target.ToCString()));
return;
}
- const ICData& ic_data = instr->ic_data();
- const Function& target = Function::ZoneHandle(ic_data.GetTargetAt(0));
GrowableArray<Value*> arguments(instr->ArgumentCount());
for (int i = 0; i < instr->ArgumentCount(); ++i) {
« no previous file with comments | « no previous file | runtime/vm/flow_graph_optimizer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698