| 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/growable_array.h" | 10 #include "vm/growable_array.h" |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 num_stack_locals_(builder.num_stack_locals()), | 31 num_stack_locals_(builder.num_stack_locals()), |
| 32 graph_entry_(graph_entry), | 32 graph_entry_(graph_entry), |
| 33 preorder_(), | 33 preorder_(), |
| 34 postorder_(), | 34 postorder_(), |
| 35 reverse_postorder_(), | 35 reverse_postorder_(), |
| 36 optimized_block_order_(), | 36 optimized_block_order_(), |
| 37 constant_null_(NULL), | 37 constant_null_(NULL), |
| 38 constant_dead_(NULL), | 38 constant_dead_(NULL), |
| 39 block_effects_(NULL), | 39 block_effects_(NULL), |
| 40 licm_allowed_(true), | 40 licm_allowed_(true), |
| 41 use_far_branches_(false), | |
| 42 loop_headers_(NULL), | 41 loop_headers_(NULL), |
| 43 loop_invariant_loads_(NULL), | 42 loop_invariant_loads_(NULL), |
| 44 guarded_fields_(builder.guarded_fields()), | 43 guarded_fields_(builder.guarded_fields()), |
| 45 deferred_prefixes_(builder.deferred_prefixes()) { | 44 deferred_prefixes_(builder.deferred_prefixes()) { |
| 46 DiscoverBlocks(); | 45 DiscoverBlocks(); |
| 47 } | 46 } |
| 48 | 47 |
| 49 | 48 |
| 50 void FlowGraph::AddToGuardedFields( | 49 void FlowGraph::AddToGuardedFields( |
| 51 ZoneGrowableArray<const Field*>* array, | 50 ZoneGrowableArray<const Field*>* array, |
| (...skipping 1203 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1255 } | 1254 } |
| 1256 | 1255 |
| 1257 | 1256 |
| 1258 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from, | 1257 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from, |
| 1259 BlockEntryInstr* to) const { | 1258 BlockEntryInstr* to) const { |
| 1260 return available_at_[to->postorder_number()]->Contains( | 1259 return available_at_[to->postorder_number()]->Contains( |
| 1261 from->postorder_number()); | 1260 from->postorder_number()); |
| 1262 } | 1261 } |
| 1263 | 1262 |
| 1264 } // namespace dart | 1263 } // namespace dart |
| OLD | NEW |