| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
| 3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
| 4 | 4 |
| 5 #include "vm/compiler.h" | 5 #include "vm/compiler.h" |
| 6 | 6 |
| 7 #include "vm/assembler.h" | 7 #include "vm/assembler.h" |
| 8 | 8 |
| 9 #include "vm/ast_printer.h" | 9 #include "vm/ast_printer.h" |
| 10 #include "vm/block_scheduler.h" | 10 #include "vm/block_scheduler.h" |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 "How many times we allow deoptimization before we disallow optimization."); | 54 "How many times we allow deoptimization before we disallow optimization."); |
| 55 DEFINE_FLAG(bool, loop_invariant_code_motion, true, | 55 DEFINE_FLAG(bool, loop_invariant_code_motion, true, |
| 56 "Do loop invariant code motion."); | 56 "Do loop invariant code motion."); |
| 57 DEFINE_FLAG(bool, print_flow_graph, false, "Print the IR flow graph."); | 57 DEFINE_FLAG(bool, print_flow_graph, false, "Print the IR flow graph."); |
| 58 DEFINE_FLAG(bool, print_flow_graph_optimized, false, | 58 DEFINE_FLAG(bool, print_flow_graph_optimized, false, |
| 59 "Print the IR flow graph when optimizing."); | 59 "Print the IR flow graph when optimizing."); |
| 60 DEFINE_FLAG(bool, print_ic_data_map, false, | 60 DEFINE_FLAG(bool, print_ic_data_map, false, |
| 61 "Print the deopt-id to ICData map in optimizing compiler."); | 61 "Print the deopt-id to ICData map in optimizing compiler."); |
| 62 DEFINE_FLAG(bool, print_code_source_map, false, "Print code source map."); | 62 DEFINE_FLAG(bool, print_code_source_map, false, "Print code source map."); |
| 63 DEFINE_FLAG(bool, range_analysis, true, "Enable range analysis"); | 63 DEFINE_FLAG(bool, range_analysis, true, "Enable range analysis"); |
| 64 DEFINE_FLAG(bool, reorder_basic_blocks, true, "Enable basic-block reordering."); | |
| 65 DEFINE_FLAG(bool, trace_compiler, false, "Trace compiler operations."); | 64 DEFINE_FLAG(bool, trace_compiler, false, "Trace compiler operations."); |
| 66 DEFINE_FLAG(bool, trace_optimizing_compiler, false, | 65 DEFINE_FLAG(bool, trace_optimizing_compiler, false, |
| 67 "Trace only optimizing compiler operations."); | 66 "Trace only optimizing compiler operations."); |
| 68 DEFINE_FLAG(bool, trace_bailout, false, "Print bailout from ssa compiler."); | 67 DEFINE_FLAG(bool, trace_bailout, false, "Print bailout from ssa compiler."); |
| 69 DEFINE_FLAG(bool, use_inlining, true, "Enable call-site inlining"); | 68 DEFINE_FLAG(bool, use_inlining, true, "Enable call-site inlining"); |
| 70 DEFINE_FLAG(bool, verify_compiler, false, | 69 DEFINE_FLAG(bool, verify_compiler, false, |
| 71 "Enable compiler verification assertions"); | 70 "Enable compiler verification assertions"); |
| 72 | 71 |
| 73 DECLARE_FLAG(bool, huge_method_cutoff_in_code_size); | 72 DECLARE_FLAG(bool, huge_method_cutoff_in_code_size); |
| 74 DECLARE_FLAG(bool, trace_failed_optimization_attempts); | 73 DECLARE_FLAG(bool, trace_failed_optimization_attempts); |
| (...skipping 1784 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1859 } | 1858 } |
| 1860 | 1859 |
| 1861 | 1860 |
| 1862 void BackgroundCompiler::EnsureInit(Thread* thread) { | 1861 void BackgroundCompiler::EnsureInit(Thread* thread) { |
| 1863 UNREACHABLE(); | 1862 UNREACHABLE(); |
| 1864 } | 1863 } |
| 1865 | 1864 |
| 1866 #endif // DART_PRECOMPILED_RUNTIME | 1865 #endif // DART_PRECOMPILED_RUNTIME |
| 1867 | 1866 |
| 1868 } // namespace dart | 1867 } // namespace dart |
| OLD | NEW |