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

Unified Diff: runtime/vm/il_printer.h

Issue 1920103004: Added flag --inline_smi_string_hashcode and --inline_smi_string_hashcode_ratio to decide when/if sh… (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Review addressed Created 4 years, 8 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.cc ('k') | runtime/vm/il_printer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/vm/il_printer.h
diff --git a/runtime/vm/il_printer.h b/runtime/vm/il_printer.h
index bc19c75d1b9d76a42d51cc6f59c568d764cf584a..b800ab798ea16792f0ec82d88470516bcb1cd8f3 100644
--- a/runtime/vm/il_printer.h
+++ b/runtime/vm/il_printer.h
@@ -35,6 +35,8 @@ class ParsedFunction;
// Graph printing.
class FlowGraphPrinter : public ValueObject {
public:
+ static const intptr_t kPrintAll = -1;
+
FlowGraphPrinter(const FlowGraph& flow_graph,
bool print_locations = false)
: function_(flow_graph.function()),
@@ -57,8 +59,10 @@ class FlowGraphPrinter : public ValueObject {
static void PrintGraph(const char* phase, FlowGraph* flow_graph);
- // Debugging helper function.
- static void PrintICData(const ICData& ic_data);
+ // Debugging helper function. If 'num_checks_to_print' is not specified
+ // all checks will be printed.
+ static void PrintICData(const ICData& ic_data,
+ intptr_t num_checks_to_print = kPrintAll);
static bool ShouldPrint(const Function& function);
« no previous file with comments | « runtime/vm/flow_graph_compiler_x64.cc ('k') | runtime/vm/il_printer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698