| 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 | 17 |
| 18 #if defined(TARGET_ARCH_ARM) || defined(TARGET_ARCH_MIPS) | 18 #if defined(TARGET_ARCH_MIPS) |
| 19 DEFINE_FLAG(bool, optimize_try_catch, false, "Optimization of try-catch"); | 19 DEFINE_FLAG(bool, optimize_try_catch, false, "Optimization of try-catch"); |
| 20 #else | 20 #else |
| 21 DEFINE_FLAG(bool, optimize_try_catch, true, "Optimization of try-catch"); | 21 DEFINE_FLAG(bool, optimize_try_catch, true, "Optimization of try-catch"); |
| 22 #endif | 22 #endif |
| 23 | 23 |
| 24 FlowGraph::FlowGraph(const FlowGraphBuilder& builder, | 24 FlowGraph::FlowGraph(const FlowGraphBuilder& builder, |
| 25 GraphEntryInstr* graph_entry, | 25 GraphEntryInstr* graph_entry, |
| 26 intptr_t max_block_id) | 26 intptr_t max_block_id) |
| 27 : parent_(), | 27 : parent_(), |
| 28 current_ssa_temp_index_(0), | 28 current_ssa_temp_index_(0), |
| (...skipping 1109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1138 } | 1138 } |
| 1139 | 1139 |
| 1140 | 1140 |
| 1141 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from, | 1141 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from, |
| 1142 BlockEntryInstr* to) const { | 1142 BlockEntryInstr* to) const { |
| 1143 return available_at_[to->postorder_number()]->Contains( | 1143 return available_at_[to->postorder_number()]->Contains( |
| 1144 from->postorder_number()); | 1144 from->postorder_number()); |
| 1145 } | 1145 } |
| 1146 | 1146 |
| 1147 } // namespace dart | 1147 } // namespace dart |
| OLD | NEW |