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

Unified Diff: runtime/vm/code_generator.cc

Issue 10933019: Improve moves of Smi and null objects. Add result cid to List constructor calls. Add tracing of inl… (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 | « runtime/vm/assembler_x64.cc ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/code_generator.cc
===================================================================
--- runtime/vm/code_generator.cc (revision 12201)
+++ runtime/vm/code_generator.cc (working copy)
@@ -32,6 +32,8 @@
DEFINE_FLAG(bool, inline_cache, true, "Enable inline caches");
DEFINE_FLAG(bool, trace_deopt, false, "Trace deoptimization");
DEFINE_FLAG(bool, trace_ic, false, "Trace IC handling");
+DEFINE_FLAG(bool, trace_ic_miss_in_optimized, false,
+ "Trace IC miss in optimized code");
DEFINE_FLAG(bool, trace_patching, false, "Trace patching of code.");
DEFINE_FLAG(bool, trace_runtime_calls, false, "Trace runtime calls");
DEFINE_FLAG(int, optimization_counter_threshold, 2000,
@@ -920,6 +922,14 @@
}
ic_data.AddCheck(class_ids, target_function);
}
+ if (FLAG_trace_ic_miss_in_optimized) {
+ const Code& caller = Code::Handle(Code::LookupCode(caller_frame->pc()));
+ if (caller.is_optimized()) {
+ OS::Print("IC miss in optimized code; call %s -> %s\n",
+ Function::Handle(caller.function()).ToCString(),
+ target_function.ToCString());
+ }
+ }
if (FLAG_trace_ic) {
OS::Print("InlineCacheMissHandler %d call at %#"Px"' "
"adding <%s> id:%"Pd" -> <%s>\n",
« no previous file with comments | « runtime/vm/assembler_x64.cc ('k') | runtime/vm/flow_graph_builder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698