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 FLAG_interpret_irregexp = true; | 72 FLAG_interpret_irregexp = true; |
73 FLAG_lazy_dispatchers = false; | 73 FLAG_lazy_dispatchers = false; |
74 FLAG_link_natives_lazily = true; | 74 FLAG_link_natives_lazily = true; |
75 FLAG_optimization_counter_threshold = -1; | 75 FLAG_optimization_counter_threshold = -1; |
76 FLAG_polymorphic_with_deopt = false; | 76 FLAG_polymorphic_with_deopt = false; |
77 FLAG_precompiled_mode = true; | 77 FLAG_precompiled_mode = true; |
78 FLAG_reorder_basic_blocks = false; | 78 FLAG_reorder_basic_blocks = false; |
79 FLAG_use_field_guards = false; | 79 FLAG_use_field_guards = false; |
80 FLAG_use_cha_deopt = false; | 80 FLAG_use_cha_deopt = false; |
81 FLAG_unbox_numeric_fields = false; | 81 FLAG_unbox_numeric_fields = false; |
| 82 FLAG_enable_mirrors = false; |
82 | 83 |
83 #if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME) | 84 #if !defined(PRODUCT) && !defined(DART_PRECOMPILED_RUNTIME) |
84 // Set flags affecting runtime accordingly for dart_bootstrap. | 85 // Set flags affecting runtime accordingly for dart_bootstrap. |
85 // These flags are constants with PRODUCT and DART_PRECOMPILED_RUNTIME. | 86 // These flags are constants with PRODUCT and DART_PRECOMPILED_RUNTIME. |
86 FLAG_collect_code = false; | 87 FLAG_collect_code = false; |
87 FLAG_support_debugger = false; | 88 FLAG_support_debugger = false; |
88 FLAG_deoptimize_alot = false; // Used in some tests. | 89 FLAG_deoptimize_alot = false; // Used in some tests. |
89 FLAG_deoptimize_every = 0; // Used in some tests. | 90 FLAG_deoptimize_every = 0; // Used in some tests. |
90 FLAG_enable_mirrors = false; | |
91 FLAG_load_deferred_eagerly = true; | 91 FLAG_load_deferred_eagerly = true; |
92 FLAG_print_stop_message = false; | 92 FLAG_print_stop_message = false; |
93 FLAG_use_osr = false; | 93 FLAG_use_osr = false; |
94 #endif | 94 #endif |
95 } | 95 } |
96 } | 96 } |
97 | 97 |
98 DEFINE_FLAG_HANDLER(PrecompilationModeHandler, | 98 DEFINE_FLAG_HANDLER(PrecompilationModeHandler, |
99 precompilation, | 99 precompilation, |
100 "Precompilation mode"); | 100 "Precompilation mode"); |
101 | 101 |
102 #ifdef DART_PRECOMPILED_RUNTIME | 102 #ifdef DART_PRECOMPILED_RUNTIME |
103 | 103 |
104 COMPILE_ASSERT(!FLAG_collect_code); | 104 COMPILE_ASSERT(!FLAG_collect_code); |
105 COMPILE_ASSERT(!FLAG_deoptimize_alot); // Used in some tests. | 105 COMPILE_ASSERT(!FLAG_deoptimize_alot); // Used in some tests. |
106 COMPILE_ASSERT(!FLAG_enable_mirrors); | |
107 COMPILE_ASSERT(FLAG_precompiled_runtime); | 106 COMPILE_ASSERT(FLAG_precompiled_runtime); |
108 COMPILE_ASSERT(!FLAG_print_stop_message); | 107 COMPILE_ASSERT(!FLAG_print_stop_message); |
109 COMPILE_ASSERT(!FLAG_use_osr); | 108 COMPILE_ASSERT(!FLAG_use_osr); |
110 COMPILE_ASSERT(FLAG_deoptimize_every == 0); // Used in some tests. | 109 COMPILE_ASSERT(FLAG_deoptimize_every == 0); // Used in some tests. |
111 COMPILE_ASSERT(FLAG_load_deferred_eagerly); | 110 COMPILE_ASSERT(FLAG_load_deferred_eagerly); |
112 | 111 |
113 #endif // DART_PRECOMPILED_RUNTIME | 112 #endif // DART_PRECOMPILED_RUNTIME |
114 | 113 |
115 | 114 |
116 // Assign locations to incoming arguments, i.e., values pushed above spill slots | 115 // Assign locations to incoming arguments, i.e., values pushed above spill slots |
(...skipping 1905 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2022 | 2021 |
2023 | 2022 |
2024 void FlowGraphCompiler::FrameStateClear() { | 2023 void FlowGraphCompiler::FrameStateClear() { |
2025 ASSERT(!is_optimizing()); | 2024 ASSERT(!is_optimizing()); |
2026 frame_state_.TruncateTo(0); | 2025 frame_state_.TruncateTo(0); |
2027 } | 2026 } |
2028 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) | 2027 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) |
2029 | 2028 |
2030 | 2029 |
2031 } // namespace dart | 2030 } // namespace dart |
OLD | NEW |