| 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/cpu.h" | 9 #include "vm/cpu.h" |
| 10 #include "vm/dart_entry.h" | 10 #include "vm/dart_entry.h" |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 | 26 |
| 27 DEFINE_FLAG(int, getter_setter_ratio, 13, | 27 DEFINE_FLAG(int, getter_setter_ratio, 13, |
| 28 "Ratio of getter/setter usage used for double field unboxing heuristics"); | 28 "Ratio of getter/setter usage used for double field unboxing heuristics"); |
| 29 DEFINE_FLAG(bool, load_cse, true, "Use redundant load elimination."); | 29 DEFINE_FLAG(bool, load_cse, true, "Use redundant load elimination."); |
| 30 DEFINE_FLAG(bool, dead_store_elimination, true, "Eliminate dead stores"); | 30 DEFINE_FLAG(bool, dead_store_elimination, true, "Eliminate dead stores"); |
| 31 DEFINE_FLAG(int, max_polymorphic_checks, 4, | 31 DEFINE_FLAG(int, max_polymorphic_checks, 4, |
| 32 "Maximum number of polymorphic check, otherwise it is megamorphic."); | 32 "Maximum number of polymorphic check, otherwise it is megamorphic."); |
| 33 DEFINE_FLAG(int, max_equality_polymorphic_checks, 32, | 33 DEFINE_FLAG(int, max_equality_polymorphic_checks, 32, |
| 34 "Maximum number of polymorphic checks in equality operator," | 34 "Maximum number of polymorphic checks in equality operator," |
| 35 " otherwise use megamorphic dispatch."); | 35 " otherwise use megamorphic dispatch."); |
| 36 DEFINE_FLAG(bool, merge_sin_cos, true, "Merge sin/cos into sincos"); | 36 DEFINE_FLAG(bool, merge_sin_cos, false, "Merge sin/cos into sincos"); |
| 37 DEFINE_FLAG(bool, trace_load_optimization, false, | 37 DEFINE_FLAG(bool, trace_load_optimization, false, |
| 38 "Print live sets for load optimization pass."); | 38 "Print live sets for load optimization pass."); |
| 39 DEFINE_FLAG(bool, trace_optimization, false, "Print optimization details."); | 39 DEFINE_FLAG(bool, trace_optimization, false, "Print optimization details."); |
| 40 DEFINE_FLAG(bool, truncating_left_shift, true, | 40 DEFINE_FLAG(bool, truncating_left_shift, true, |
| 41 "Optimize left shift to truncate if possible"); | 41 "Optimize left shift to truncate if possible"); |
| 42 DEFINE_FLAG(bool, use_cha, true, "Use class hierarchy analysis."); | 42 DEFINE_FLAG(bool, use_cha, true, "Use class hierarchy analysis."); |
| 43 #if defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_IA32) | 43 #if defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_IA32) |
| 44 DEFINE_FLAG(bool, trace_smi_widening, false, "Trace Smi->Int32 widening pass."); | 44 DEFINE_FLAG(bool, trace_smi_widening, false, "Trace Smi->Int32 widening pass."); |
| 45 #endif | 45 #endif |
| 46 DECLARE_FLAG(bool, enable_type_checks); | 46 DECLARE_FLAG(bool, enable_type_checks); |
| (...skipping 8563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 8610 | 8610 |
| 8611 // Insert materializations at environment uses. | 8611 // Insert materializations at environment uses. |
| 8612 for (intptr_t i = 0; i < exits_collector_.exits().length(); i++) { | 8612 for (intptr_t i = 0; i < exits_collector_.exits().length(); i++) { |
| 8613 CreateMaterializationAt( | 8613 CreateMaterializationAt( |
| 8614 exits_collector_.exits()[i], alloc, *slots); | 8614 exits_collector_.exits()[i], alloc, *slots); |
| 8615 } | 8615 } |
| 8616 } | 8616 } |
| 8617 | 8617 |
| 8618 | 8618 |
| 8619 } // namespace dart | 8619 } // namespace dart |
| OLD | NEW |