| 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/flow_graph_optimizer.h" | 5 #include "vm/flow_graph_optimizer.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/cha.h" | 8 #include "vm/cha.h" |
| 9 #include "vm/dart_entry.h" | 9 #include "vm/dart_entry.h" |
| 10 #include "vm/flow_graph_builder.h" | 10 #include "vm/flow_graph_builder.h" |
| (...skipping 23 matching lines...) Expand all Loading... |
| 34 "Print constant propagation and useless code elimination."); | 34 "Print constant propagation and useless code elimination."); |
| 35 DEFINE_FLAG(bool, trace_optimization, false, "Print optimization details."); | 35 DEFINE_FLAG(bool, trace_optimization, false, "Print optimization details."); |
| 36 DEFINE_FLAG(bool, trace_range_analysis, false, "Trace range analysis progress"); | 36 DEFINE_FLAG(bool, trace_range_analysis, false, "Trace range analysis progress"); |
| 37 DEFINE_FLAG(bool, truncating_left_shift, true, | 37 DEFINE_FLAG(bool, truncating_left_shift, true, |
| 38 "Optimize left shift to truncate if possible"); | 38 "Optimize left shift to truncate if possible"); |
| 39 DEFINE_FLAG(bool, use_cha, true, "Use class hierarchy analysis."); | 39 DEFINE_FLAG(bool, use_cha, true, "Use class hierarchy analysis."); |
| 40 DEFINE_FLAG(bool, trace_load_optimization, false, | 40 DEFINE_FLAG(bool, trace_load_optimization, false, |
| 41 "Print live sets for load optimization pass."); | 41 "Print live sets for load optimization pass."); |
| 42 DEFINE_FLAG(bool, enable_simd_inline, true, | 42 DEFINE_FLAG(bool, enable_simd_inline, true, |
| 43 "Enable inlining of SIMD related method calls."); | 43 "Enable inlining of SIMD related method calls."); |
| 44 DEFINE_FLAG(int, getter_setter_ratio, 10, | 44 DEFINE_FLAG(int, getter_setter_ratio, 13, |
| 45 "Ratio of getter/setter usage used for double field unboxing heuristics"); | 45 "Ratio of getter/setter usage used for double field unboxing heuristics"); |
| 46 DECLARE_FLAG(bool, eliminate_type_checks); | 46 DECLARE_FLAG(bool, eliminate_type_checks); |
| 47 DECLARE_FLAG(bool, enable_type_checks); | 47 DECLARE_FLAG(bool, enable_type_checks); |
| 48 DECLARE_FLAG(bool, trace_type_check_elimination); | 48 DECLARE_FLAG(bool, trace_type_check_elimination); |
| 49 | 49 |
| 50 | 50 |
| 51 static bool ShouldInlineSimd() { | 51 static bool ShouldInlineSimd() { |
| 52 #if defined(TARGET_ARCH_MIPS) | 52 #if defined(TARGET_ARCH_MIPS) |
| 53 return false; | 53 return false; |
| 54 #elif defined(TARGET_ARCH_ARM) | 54 #elif defined(TARGET_ARCH_ARM) |
| (...skipping 8091 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8146 } | 8146 } |
| 8147 | 8147 |
| 8148 // Insert materializations at environment uses. | 8148 // Insert materializations at environment uses. |
| 8149 for (intptr_t i = 0; i < exits.length(); i++) { | 8149 for (intptr_t i = 0; i < exits.length(); i++) { |
| 8150 CreateMaterializationAt(exits[i], alloc, alloc->cls(), *fields); | 8150 CreateMaterializationAt(exits[i], alloc, alloc->cls(), *fields); |
| 8151 } | 8151 } |
| 8152 } | 8152 } |
| 8153 | 8153 |
| 8154 | 8154 |
| 8155 } // namespace dart | 8155 } // namespace dart |
| OLD | NEW |