| 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 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 86 | 86 |
| 87 // Flags affecting compilation only: | 87 // Flags affecting compilation only: |
| 88 // There is no counter feedback in precompilation, so ignore the counter | 88 // There is no counter feedback in precompilation, so ignore the counter |
| 89 // when making inlining decisions. | 89 // when making inlining decisions. |
| 90 FLAG_inlining_hotness = 0; | 90 FLAG_inlining_hotness = 0; |
| 91 // Use smaller thresholds in precompilation as we are compiling everything | 91 // Use smaller thresholds in precompilation as we are compiling everything |
| 92 // with the optimizing compiler instead of only hot functions. | 92 // with the optimizing compiler instead of only hot functions. |
| 93 FLAG_inlining_size_threshold = 5; | 93 FLAG_inlining_size_threshold = 5; |
| 94 FLAG_inline_getters_setters_smaller_than = 5; | 94 FLAG_inline_getters_setters_smaller_than = 5; |
| 95 FLAG_inlining_callee_size_threshold = 20; | 95 FLAG_inlining_callee_size_threshold = 20; |
| 96 FLAG_inlining_depth_threshold = 2; | 96 FLAG_inlining_depth_threshold = 4; |
| 97 FLAG_inlining_caller_size_threshold = 1000; | 97 FLAG_inlining_caller_size_threshold = 1000; |
| 98 FLAG_inlining_constant_arguments_max_size_threshold = 100; | 98 FLAG_inlining_constant_arguments_max_size_threshold = 100; |
| 99 FLAG_inlining_constant_arguments_min_size_threshold = 30; | 99 FLAG_inlining_constant_arguments_min_size_threshold = 30; |
| 100 | 100 |
| 101 FLAG_background_compilation = false; | 101 FLAG_background_compilation = false; |
| 102 FLAG_fields_may_be_reset = true; | 102 FLAG_fields_may_be_reset = true; |
| 103 FLAG_interpret_irregexp = true; | 103 FLAG_interpret_irregexp = true; |
| 104 FLAG_lazy_dispatchers = false; | 104 FLAG_lazy_dispatchers = false; |
| 105 FLAG_link_natives_lazily = true; | 105 FLAG_link_natives_lazily = true; |
| 106 FLAG_optimization_counter_threshold = -1; | 106 FLAG_optimization_counter_threshold = -1; |
| (...skipping 1871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1978 | 1978 |
| 1979 | 1979 |
| 1980 void FlowGraphCompiler::FrameStateClear() { | 1980 void FlowGraphCompiler::FrameStateClear() { |
| 1981 ASSERT(!is_optimizing()); | 1981 ASSERT(!is_optimizing()); |
| 1982 frame_state_.TruncateTo(0); | 1982 frame_state_.TruncateTo(0); |
| 1983 } | 1983 } |
| 1984 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) | 1984 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) |
| 1985 | 1985 |
| 1986 | 1986 |
| 1987 } // namespace dart | 1987 } // namespace dart |
| OLD | NEW |