| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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.h" | 5 #include "vm/flow_graph.h" |
| 6 | 6 |
| 7 #include "vm/bit_vector.h" | 7 #include "vm/bit_vector.h" |
| 8 #include "vm/flow_graph_builder.h" | 8 #include "vm/flow_graph_builder.h" |
| 9 #include "vm/intermediate_language.h" | 9 #include "vm/intermediate_language.h" |
| 10 #include "vm/longjump.h" | 10 #include "vm/longjump.h" |
| 11 #include "vm/growable_array.h" | 11 #include "vm/growable_array.h" |
| 12 | 12 |
| 13 namespace dart { | 13 namespace dart { |
| 14 | 14 |
| 15 DECLARE_FLAG(bool, trace_optimization); | 15 DECLARE_FLAG(bool, trace_optimization); |
| 16 DECLARE_FLAG(bool, verify_compiler); | 16 DECLARE_FLAG(bool, verify_compiler); |
| 17 DEFINE_FLAG(bool, optimize_try_catch, true, "Optimization of try-catch"); |
| 17 | 18 |
| 18 #if defined(TARGET_ARCH_MIPS) | |
| 19 DEFINE_FLAG(bool, optimize_try_catch, false, "Optimization of try-catch"); | |
| 20 #else | |
| 21 DEFINE_FLAG(bool, optimize_try_catch, true, "Optimization of try-catch"); | |
| 22 #endif | |
| 23 | 19 |
| 24 FlowGraph::FlowGraph(const FlowGraphBuilder& builder, | 20 FlowGraph::FlowGraph(const FlowGraphBuilder& builder, |
| 25 GraphEntryInstr* graph_entry, | 21 GraphEntryInstr* graph_entry, |
| 26 intptr_t max_block_id) | 22 intptr_t max_block_id) |
| 27 : parent_(), | 23 : parent_(), |
| 28 current_ssa_temp_index_(0), | 24 current_ssa_temp_index_(0), |
| 29 max_block_id_(max_block_id), | 25 max_block_id_(max_block_id), |
| 30 parsed_function_(*builder.parsed_function()), | 26 parsed_function_(*builder.parsed_function()), |
| 31 num_copied_params_(builder.num_copied_params()), | 27 num_copied_params_(builder.num_copied_params()), |
| 32 num_non_copied_params_(builder.num_non_copied_params()), | 28 num_non_copied_params_(builder.num_non_copied_params()), |
| (...skipping 1105 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1138 } | 1134 } |
| 1139 | 1135 |
| 1140 | 1136 |
| 1141 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from, | 1137 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from, |
| 1142 BlockEntryInstr* to) const { | 1138 BlockEntryInstr* to) const { |
| 1143 return available_at_[to->postorder_number()]->Contains( | 1139 return available_at_[to->postorder_number()]->Contains( |
| 1144 from->postorder_number()); | 1140 from->postorder_number()); |
| 1145 } | 1141 } |
| 1146 | 1142 |
| 1147 } // namespace dart | 1143 } // namespace dart |
| OLD | NEW |