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

Unified Diff: runtime/vm/compiler.cc

Issue 185553015: Minor VM performance improvements based on profiling. (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 6 years, 10 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
Index: runtime/vm/compiler.cc
===================================================================
--- runtime/vm/compiler.cc (revision 33332)
+++ runtime/vm/compiler.cc (working copy)
@@ -34,28 +34,29 @@
namespace dart {
+DEFINE_FLAG(bool, allocation_sinking, true,
+ "Attempt to sink temporary allocations to side exits");
+DEFINE_FLAG(bool, common_subexpression_elimination, true,
+ "Do common subexpression elimination.");
+DEFINE_FLAG(bool, constant_propagation, true,
+ "Do conditional constant propagation/unreachable code elimination.");
+DEFINE_FLAG(int, deoptimization_counter_threshold, 16,
+ "How many times we allow deoptimization before we disallow optimization.");
DEFINE_FLAG(bool, disassemble, false, "Disassemble dart code.");
DEFINE_FLAG(bool, disassemble_optimized, false, "Disassemble optimized code.");
-DEFINE_FLAG(bool, trace_bailout, false, "Print bailout from ssa compiler.");
-DEFINE_FLAG(bool, trace_compiler, false, "Trace compiler operations.");
-DEFINE_FLAG(bool, constant_propagation, true,
- "Do conditional constant propagation/unreachable code elimination.");
-DEFINE_FLAG(bool, common_subexpression_elimination, true,
- "Do common subexpression elimination.");
DEFINE_FLAG(bool, loop_invariant_code_motion, true,
"Do loop invariant code motion.");
-DEFINE_FLAG(bool, allocation_sinking, true,
- "Attempt to sink temporary allocations to side exits");
-DEFINE_FLAG(int, deoptimization_counter_threshold, 16,
- "How many times we allow deoptimization before we disallow optimization.");
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.");
+ "Print the IR flow graph when optimizing.");
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.");
+DEFINE_FLAG(bool, trace_bailout, false, "Print bailout from ssa compiler.");
DEFINE_FLAG(bool, use_inlining, true, "Enable call-site inlining");
DEFINE_FLAG(bool, verify_compiler, false,
"Enable compiler verification assertions");
+
DECLARE_FLAG(bool, trace_failed_optimization_attempts);
// Compile a function. Should call only if the function has not been compiled.
« no previous file with comments | « runtime/vm/class_finalizer.cc ('k') | runtime/vm/object.cc » ('j') | runtime/vm/parser.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698