| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 DECLARE_FLAG(int, inlining_constant_arguments_min_size_threshold); | 77 DECLARE_FLAG(int, inlining_constant_arguments_min_size_threshold); |
| 78 DECLARE_FLAG(int, reload_every); | 78 DECLARE_FLAG(int, reload_every); |
| 79 DECLARE_FLAG(bool, unbox_numeric_fields); | 79 DECLARE_FLAG(bool, unbox_numeric_fields); |
| 80 | 80 |
| 81 static void PrecompilationModeHandler(bool value) { | 81 static void PrecompilationModeHandler(bool value) { |
| 82 if (value) { | 82 if (value) { |
| 83 #if defined(TARGET_ARCH_IA32) | 83 #if defined(TARGET_ARCH_IA32) |
| 84 FATAL("Precompilation not supported on IA32"); | 84 FATAL("Precompilation not supported on IA32"); |
| 85 #endif | 85 #endif |
| 86 | 86 |
| 87 #if !defined(DART_PRECOMPILED_RUNTIME) |
| 87 // Flags affecting compilation only: | 88 // Flags affecting compilation only: |
| 88 // There is no counter feedback in precompilation, so ignore the counter | 89 // There is no counter feedback in precompilation, so ignore the counter |
| 89 // when making inlining decisions. | 90 // when making inlining decisions. |
| 90 FLAG_inlining_hotness = 0; | 91 FLAG_inlining_hotness = 0; |
| 91 // Use smaller thresholds in precompilation as we are compiling everything | 92 // Use smaller thresholds in precompilation as we are compiling everything |
| 92 // with the optimizing compiler instead of only hot functions. | 93 // with the optimizing compiler instead of only hot functions. |
| 93 FLAG_inlining_size_threshold = 5; | 94 FLAG_inlining_size_threshold = 5; |
| 94 FLAG_inline_getters_setters_smaller_than = 5; | 95 FLAG_inline_getters_setters_smaller_than = 5; |
| 95 FLAG_inlining_callee_size_threshold = 20; | 96 FLAG_inlining_callee_size_threshold = 20; |
| 96 FLAG_inlining_depth_threshold = 2; | 97 FLAG_inlining_depth_threshold = 2; |
| 97 FLAG_inlining_caller_size_threshold = 1000; | 98 FLAG_inlining_caller_size_threshold = 1000; |
| 98 FLAG_inlining_constant_arguments_max_size_threshold = 100; | 99 FLAG_inlining_constant_arguments_max_size_threshold = 100; |
| 99 FLAG_inlining_constant_arguments_min_size_threshold = 30; | 100 FLAG_inlining_constant_arguments_min_size_threshold = 30; |
| 101 #endif |
| 100 | 102 |
| 101 FLAG_background_compilation = false; | 103 FLAG_background_compilation = false; |
| 102 FLAG_fields_may_be_reset = true; | 104 FLAG_fields_may_be_reset = true; |
| 103 FLAG_interpret_irregexp = true; | 105 FLAG_interpret_irregexp = true; |
| 104 FLAG_lazy_dispatchers = false; | 106 FLAG_lazy_dispatchers = false; |
| 105 FLAG_link_natives_lazily = true; | 107 FLAG_link_natives_lazily = true; |
| 106 FLAG_optimization_counter_threshold = -1; | 108 FLAG_optimization_counter_threshold = -1; |
| 107 FLAG_polymorphic_with_deopt = false; | 109 FLAG_polymorphic_with_deopt = false; |
| 108 FLAG_precompiled_mode = true; | 110 FLAG_precompiled_mode = true; |
| 109 FLAG_reorder_basic_blocks = false; | 111 FLAG_reorder_basic_blocks = false; |
| (...skipping 1868 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1978 | 1980 |
| 1979 | 1981 |
| 1980 void FlowGraphCompiler::FrameStateClear() { | 1982 void FlowGraphCompiler::FrameStateClear() { |
| 1981 ASSERT(!is_optimizing()); | 1983 ASSERT(!is_optimizing()); |
| 1982 frame_state_.TruncateTo(0); | 1984 frame_state_.TruncateTo(0); |
| 1983 } | 1985 } |
| 1984 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) | 1986 #endif // defined(DEBUG) && !defined(TARGET_ARCH_DBC) |
| 1985 | 1987 |
| 1986 | 1988 |
| 1987 } // namespace dart | 1989 } // namespace dart |
| OLD | NEW |