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

Unified Diff: runtime/vm/compiler.cc

Issue 436643002: Faster IC stubs by specializing them for Binary Smi operations (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 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
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | runtime/vm/intermediate_language_ia32.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 39456)
+++ runtime/vm/compiler.cc (working copy)
@@ -51,6 +51,8 @@
DEFINE_FLAG(bool, print_flow_graph, false, "Print the IR flow graph.");
DEFINE_FLAG(bool, print_flow_graph_optimized, false,
"Print the IR flow graph when optimizing.");
+DEFINE_FLAG(bool, print_ic_data_map, false,
+ "Print the deopt-id to ICData map in optimizing compiler.");
DEFINE_FLAG(bool, range_analysis, true, "Enable range analysis");
DEFINE_FLAG(bool, reorder_basic_blocks, true, "Enable basic-block reordering.");
DEFINE_FLAG(bool, trace_compiler, false, "Trace compiler operations.");
@@ -240,7 +242,6 @@
}
-
// Return false if bailed out.
static bool CompileParsedFunctionHelper(ParsedFunction* parsed_function,
bool optimized,
@@ -289,6 +290,14 @@
ASSERT(function.deoptimization_counter() <
FLAG_deoptimization_counter_threshold);
function.RestoreICDataMap(ic_data_array);
+ if (FLAG_print_ic_data_map) {
+ for (intptr_t i = 0; i < ic_data_array->length(); i++) {
+ if ((*ic_data_array)[i] != NULL) {
+ OS::Print("%" Pd " ", i);
+ FlowGraphPrinter::PrintICData(*(*ic_data_array)[i]);
+ }
+ }
+ }
}
// Build the flow graph.
« no previous file with comments | « no previous file | runtime/vm/flow_graph_compiler.cc » ('j') | runtime/vm/intermediate_language_ia32.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698