OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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/globals.h" // Needed here to get TARGET_ARCH_XXX. | 5 #include "vm/globals.h" // Needed here to get TARGET_ARCH_XXX. |
6 | 6 |
7 #include "vm/flow_graph_compiler.h" | 7 #include "vm/flow_graph_compiler.h" |
8 | 8 |
9 #include "vm/bit_vector.h" | 9 #include "vm/bit_vector.h" |
10 #include "vm/cha.h" | 10 #include "vm/cha.h" |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 // Use smaller thresholds in precompilation as we are compiling everything | 72 // Use smaller thresholds in precompilation as we are compiling everything |
73 // with the optimizing compiler instead of only hot functions. | 73 // with the optimizing compiler instead of only hot functions. |
74 FLAG_inlining_size_threshold = 5; | 74 FLAG_inlining_size_threshold = 5; |
75 FLAG_inline_getters_setters_smaller_than = 5; | 75 FLAG_inline_getters_setters_smaller_than = 5; |
76 FLAG_inlining_callee_size_threshold = 20; | 76 FLAG_inlining_callee_size_threshold = 20; |
77 FLAG_inlining_depth_threshold = 2; | 77 FLAG_inlining_depth_threshold = 2; |
78 FLAG_inlining_caller_size_threshold = 1000; | 78 FLAG_inlining_caller_size_threshold = 1000; |
79 FLAG_inlining_constant_arguments_max_size_threshold = 100; | 79 FLAG_inlining_constant_arguments_max_size_threshold = 100; |
80 FLAG_inlining_constant_arguments_min_size_threshold = 30; | 80 FLAG_inlining_constant_arguments_min_size_threshold = 30; |
81 | 81 |
| 82 FLAG_background_compilation = false; |
82 FLAG_always_megamorphic_calls = true; | 83 FLAG_always_megamorphic_calls = true; |
83 FLAG_collect_dynamic_function_names = true; | 84 FLAG_collect_dynamic_function_names = true; |
84 FLAG_fields_may_be_reset = true; | 85 FLAG_fields_may_be_reset = true; |
85 FLAG_ic_range_profiling = false; | 86 FLAG_ic_range_profiling = false; |
86 FLAG_interpret_irregexp = true; | 87 FLAG_interpret_irregexp = true; |
87 FLAG_lazy_dispatchers = false; | 88 FLAG_lazy_dispatchers = false; |
88 FLAG_link_natives_lazily = true; | 89 FLAG_link_natives_lazily = true; |
89 FLAG_optimization_counter_threshold = -1; | 90 FLAG_optimization_counter_threshold = -1; |
90 FLAG_polymorphic_with_deopt = false; | 91 FLAG_polymorphic_with_deopt = false; |
91 FLAG_precompiled_mode = true; | 92 FLAG_precompiled_mode = true; |
92 FLAG_reorder_basic_blocks = false; | 93 FLAG_reorder_basic_blocks = false; |
93 FLAG_use_field_guards = false; | 94 FLAG_use_field_guards = false; |
94 FLAG_use_cha_deopt = false; | 95 FLAG_use_cha_deopt = false; |
95 | 96 |
96 #if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME) | 97 #if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME) |
97 // Set flags affecting runtime accordingly for dart_noopt. | 98 // Set flags affecting runtime accordingly for dart_noopt. |
98 FLAG_background_compilation = false; | |
99 FLAG_collect_code = false; | 99 FLAG_collect_code = false; |
100 FLAG_support_debugger = false; | 100 FLAG_support_debugger = false; |
101 FLAG_deoptimize_alot = false; // Used in some tests. | 101 FLAG_deoptimize_alot = false; // Used in some tests. |
102 FLAG_deoptimize_every = 0; // Used in some tests. | 102 FLAG_deoptimize_every = 0; // Used in some tests. |
103 FLAG_enable_mirrors = false; | 103 FLAG_enable_mirrors = false; |
104 FLAG_load_deferred_eagerly = true; | 104 FLAG_load_deferred_eagerly = true; |
105 FLAG_print_stop_message = false; | 105 FLAG_print_stop_message = false; |
106 FLAG_use_osr = false; | 106 FLAG_use_osr = false; |
107 #endif | 107 #endif |
108 } | 108 } |
109 } | 109 } |
110 | 110 |
111 DEFINE_FLAG_HANDLER(PrecompilationModeHandler, | 111 DEFINE_FLAG_HANDLER(PrecompilationModeHandler, |
112 precompilation, | 112 precompilation, |
113 "Precompilation mode"); | 113 "Precompilation mode"); |
114 | 114 |
115 #ifdef DART_PRECOMPILED_RUNTIME | 115 #ifdef DART_PRECOMPILED_RUNTIME |
116 | 116 |
117 COMPILE_ASSERT(!FLAG_background_compilation); | |
118 COMPILE_ASSERT(!FLAG_collect_code); | 117 COMPILE_ASSERT(!FLAG_collect_code); |
119 COMPILE_ASSERT(!FLAG_deoptimize_alot); // Used in some tests. | 118 COMPILE_ASSERT(!FLAG_deoptimize_alot); // Used in some tests. |
120 COMPILE_ASSERT(!FLAG_enable_mirrors); | 119 COMPILE_ASSERT(!FLAG_enable_mirrors); |
121 COMPILE_ASSERT(FLAG_precompiled_runtime); | 120 COMPILE_ASSERT(FLAG_precompiled_runtime); |
122 COMPILE_ASSERT(!FLAG_print_stop_message); | 121 COMPILE_ASSERT(!FLAG_print_stop_message); |
123 COMPILE_ASSERT(!FLAG_use_osr); | 122 COMPILE_ASSERT(!FLAG_use_osr); |
124 COMPILE_ASSERT(FLAG_deoptimize_every == 0); // Used in some tests. | 123 COMPILE_ASSERT(FLAG_deoptimize_every == 0); // Used in some tests. |
125 COMPILE_ASSERT(FLAG_load_deferred_eagerly); | 124 COMPILE_ASSERT(FLAG_load_deferred_eagerly); |
126 | 125 |
127 #endif // DART_PRECOMPILED_RUNTIME | 126 #endif // DART_PRECOMPILED_RUNTIME |
(...skipping 1838 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1966 | 1965 |
1967 | 1966 |
1968 void FlowGraphCompiler::FrameStateClear() { | 1967 void FlowGraphCompiler::FrameStateClear() { |
1969 ASSERT(!is_optimizing()); | 1968 ASSERT(!is_optimizing()); |
1970 frame_state_.TruncateTo(0); | 1969 frame_state_.TruncateTo(0); |
1971 } | 1970 } |
1972 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) | 1971 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) |
1973 | 1972 |
1974 | 1973 |
1975 } // namespace dart | 1974 } // namespace dart |
OLD | NEW |