| 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 110 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 121 FLAG_inlining_depth_threshold = 2; | 121 FLAG_inlining_depth_threshold = 2; |
| 122 FLAG_inlining_caller_size_threshold = 1000; | 122 FLAG_inlining_caller_size_threshold = 1000; |
| 123 | 123 |
| 124 FLAG_inlining_constant_arguments_max_size_threshold = 100; | 124 FLAG_inlining_constant_arguments_max_size_threshold = 100; |
| 125 FLAG_inlining_constant_arguments_min_size_threshold = 30; | 125 FLAG_inlining_constant_arguments_min_size_threshold = 30; |
| 126 | 126 |
| 127 // Background compilation relies on two-stage compilation pipeline, | 127 // Background compilation relies on two-stage compilation pipeline, |
| 128 // while precompilation has only one. | 128 // while precompilation has only one. |
| 129 FLAG_background_compilation = false; | 129 FLAG_background_compilation = false; |
| 130 FLAG_collect_dynamic_function_names = true; | 130 FLAG_collect_dynamic_function_names = true; |
| 131 #if !defined(DART_PRECOMPILED_RUNTIME) | 131 #if !defined(DART_PRECOMPILED_RUNTIME) && !defined(PRODUCT) |
| 132 FLAG_lazy_dispatchers = false; | 132 FLAG_lazy_dispatchers = false; |
| 133 FLAG_polymorphic_with_deopt = false; | 133 FLAG_polymorphic_with_deopt = false; |
| 134 // Precompilation finalizes all classes and thus allows CHA optimizations. | 134 // Precompilation finalizes all classes and thus allows CHA optimizations. |
| 135 // Do not require CHA triggered deoptimization. | 135 // Do not require CHA triggered deoptimization. |
| 136 FLAG_use_cha_deopt = false; | 136 FLAG_use_cha_deopt = false; |
| 137 #else | 137 #elif defined(DART_PRECOMPILED_RUNTIME) |
| 138 // Precompiled product and release mode. |
| 138 COMPILE_ASSERT(!FLAG_lazy_dispatchers); | 139 COMPILE_ASSERT(!FLAG_lazy_dispatchers); |
| 139 COMPILE_ASSERT(!FLAG_polymorphic_with_deopt); | 140 COMPILE_ASSERT(!FLAG_polymorphic_with_deopt); |
| 140 COMPILE_ASSERT(!FLAG_use_cha_deopt); | 141 COMPILE_ASSERT(!FLAG_use_cha_deopt); |
| 142 #elif defined(PRODUCT) |
| 143 // Jit product and release mode. |
| 144 COMPILE_ASSERT(FLAG_lazy_dispatchers); |
| 145 COMPILE_ASSERT(FLAG_polymorphic_with_deopt); |
| 146 COMPILE_ASSERT(FLAG_use_cha_deopt); |
| 141 #endif | 147 #endif |
| 142 } | 148 } |
| 143 } | 149 } |
| 144 | 150 |
| 145 | 151 |
| 146 DEFINE_FLAG_HANDLER(PrecompilationModeHandler, | 152 DEFINE_FLAG_HANDLER(PrecompilationModeHandler, |
| 147 precompilation, | 153 precompilation, |
| 148 "Precompilation mode"); | 154 "Precompilation mode"); |
| 149 | 155 |
| 150 | 156 |
| (...skipping 1724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1875 | 1881 |
| 1876 | 1882 |
| 1877 void FlowGraphCompiler::FrameStateClear() { | 1883 void FlowGraphCompiler::FrameStateClear() { |
| 1878 ASSERT(!is_optimizing()); | 1884 ASSERT(!is_optimizing()); |
| 1879 frame_state_.TruncateTo(0); | 1885 frame_state_.TruncateTo(0); |
| 1880 } | 1886 } |
| 1881 #endif | 1887 #endif |
| 1882 | 1888 |
| 1883 | 1889 |
| 1884 } // namespace dart | 1890 } // namespace dart |
| OLD | NEW |