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 30 matching lines...) Expand all Loading... |
41 namespace dart { | 41 namespace dart { |
42 | 42 |
43 DEFINE_FLAG(bool, allocation_sinking, true, | 43 DEFINE_FLAG(bool, allocation_sinking, true, |
44 "Attempt to sink temporary allocations to side exits"); | 44 "Attempt to sink temporary allocations to side exits"); |
45 DEFINE_FLAG(bool, common_subexpression_elimination, true, | 45 DEFINE_FLAG(bool, common_subexpression_elimination, true, |
46 "Do common subexpression elimination."); | 46 "Do common subexpression elimination."); |
47 DEFINE_FLAG(bool, constant_propagation, true, | 47 DEFINE_FLAG(bool, constant_propagation, true, |
48 "Do conditional constant propagation/unreachable code elimination."); | 48 "Do conditional constant propagation/unreachable code elimination."); |
49 DEFINE_FLAG(int, max_deoptimization_counter_threshold, 16, | 49 DEFINE_FLAG(int, max_deoptimization_counter_threshold, 16, |
50 "How many times we allow deoptimization before we disallow optimization."); | 50 "How many times we allow deoptimization before we disallow optimization."); |
51 DEFINE_FLAG(bool, disassemble, false, "Disassemble dart code."); | |
52 DEFINE_FLAG(bool, disassemble_optimized, false, "Disassemble optimized code."); | |
53 DEFINE_FLAG(bool, loop_invariant_code_motion, true, | 51 DEFINE_FLAG(bool, loop_invariant_code_motion, true, |
54 "Do loop invariant code motion."); | 52 "Do loop invariant code motion."); |
55 DEFINE_FLAG(bool, print_flow_graph, false, "Print the IR flow graph."); | 53 DEFINE_FLAG(bool, print_flow_graph, false, "Print the IR flow graph."); |
56 DEFINE_FLAG(bool, print_flow_graph_optimized, false, | 54 DEFINE_FLAG(bool, print_flow_graph_optimized, false, |
57 "Print the IR flow graph when optimizing."); | 55 "Print the IR flow graph when optimizing."); |
58 DEFINE_FLAG(bool, print_ic_data_map, false, | 56 DEFINE_FLAG(bool, print_ic_data_map, false, |
59 "Print the deopt-id to ICData map in optimizing compiler."); | 57 "Print the deopt-id to ICData map in optimizing compiler."); |
60 DEFINE_FLAG(bool, range_analysis, true, "Enable range analysis"); | 58 DEFINE_FLAG(bool, range_analysis, true, "Enable range analysis"); |
61 DEFINE_FLAG(bool, reorder_basic_blocks, true, "Enable basic-block reordering."); | 59 DEFINE_FLAG(bool, reorder_basic_blocks, true, "Enable basic-block reordering."); |
62 DEFINE_FLAG(bool, trace_compiler, false, "Trace compiler operations."); | 60 DEFINE_FLAG(bool, trace_compiler, false, "Trace compiler operations."); |
(...skipping 1981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2044 } | 2042 } |
2045 | 2043 |
2046 | 2044 |
2047 void BackgroundCompiler::EnsureInit(Thread* thread) { | 2045 void BackgroundCompiler::EnsureInit(Thread* thread) { |
2048 UNREACHABLE(); | 2046 UNREACHABLE(); |
2049 } | 2047 } |
2050 | 2048 |
2051 #endif // DART_PRECOMPILED_RUNTIME | 2049 #endif // DART_PRECOMPILED_RUNTIME |
2052 | 2050 |
2053 } // namespace dart | 2051 } // namespace dart |
OLD | NEW |