| 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" |
| (...skipping 13 matching lines...) Expand all Loading... |
| 24 current_ssa_temp_index_(0), | 24 current_ssa_temp_index_(0), |
| 25 max_block_id_(max_block_id), | 25 max_block_id_(max_block_id), |
| 26 parsed_function_(*builder.parsed_function()), | 26 parsed_function_(*builder.parsed_function()), |
| 27 num_copied_params_(builder.num_copied_params()), | 27 num_copied_params_(builder.num_copied_params()), |
| 28 num_non_copied_params_(builder.num_non_copied_params()), | 28 num_non_copied_params_(builder.num_non_copied_params()), |
| 29 num_stack_locals_(builder.num_stack_locals()), | 29 num_stack_locals_(builder.num_stack_locals()), |
| 30 graph_entry_(graph_entry), | 30 graph_entry_(graph_entry), |
| 31 preorder_(), | 31 preorder_(), |
| 32 postorder_(), | 32 postorder_(), |
| 33 reverse_postorder_(), | 33 reverse_postorder_(), |
| 34 optimized_block_order_(), |
| 34 block_effects_(NULL), | 35 block_effects_(NULL), |
| 35 licm_allowed_(true), | 36 licm_allowed_(true), |
| 36 loop_headers_(NULL), | 37 loop_headers_(NULL), |
| 37 loop_invariant_loads_(NULL) { | 38 loop_invariant_loads_(NULL) { |
| 38 DiscoverBlocks(); | 39 DiscoverBlocks(); |
| 39 } | 40 } |
| 40 | 41 |
| 41 | 42 |
| 42 ConstantInstr* FlowGraph::GetConstant(const Object& object) { | 43 ConstantInstr* FlowGraph::GetConstant(const Object& object) { |
| 43 // Check if the constant is already in the pool. | 44 // Check if the constant is already in the pool. |
| (...skipping 1090 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1134 } | 1135 } |
| 1135 | 1136 |
| 1136 | 1137 |
| 1137 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from, | 1138 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from, |
| 1138 BlockEntryInstr* to) const { | 1139 BlockEntryInstr* to) const { |
| 1139 return available_at_[to->postorder_number()]->Contains( | 1140 return available_at_[to->postorder_number()]->Contains( |
| 1140 from->postorder_number()); | 1141 from->postorder_number()); |
| 1141 } | 1142 } |
| 1142 | 1143 |
| 1143 } // namespace dart | 1144 } // namespace dart |
| OLD | NEW |