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

Unified Diff: runtime/vm/intermediate_language.cc

Issue 11341025: Propagate ICData from unoptimized code to instance calls in optimized code. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 2 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 | « runtime/vm/flow_graph_compiler_x64.h ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/intermediate_language.cc
===================================================================
--- runtime/vm/intermediate_language.cc (revision 14215)
+++ runtime/vm/intermediate_language.cc (working copy)
@@ -1843,27 +1843,31 @@
if (HasICData() && (ic_data()->NumberOfChecks() > 0)) {
compiler->GenerateInstanceCall(deopt_id(),
token_pos(),
- function_name(),
ArgumentCount(),
argument_names(),
- checked_argument_count(),
- locs());
+ locs(),
+ *ic_data());
} else {
Label* deopt =
compiler->AddDeoptStub(deopt_id(), kDeoptInstanceCallNoICData);
__ jmp(deopt);
}
} else {
+ ASSERT(!HasICData());
compiler->AddCurrentDescriptor(PcDescriptors::kDeoptBefore,
deopt_id(),
token_pos());
+ const ICData& initial_ic_data = ICData::ZoneHandle(
+ ICData::New(compiler->parsed_function().function(),
+ function_name(),
+ deopt_id(),
+ checked_argument_count()));
compiler->GenerateInstanceCall(deopt_id(),
token_pos(),
- function_name(),
ArgumentCount(),
argument_names(),
- checked_argument_count(),
- locs());
+ locs(),
+ initial_ic_data);
}
}
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.h ('k') | runtime/vm/intermediate_language_ia32.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698