| 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/il_printer.h" | 9 #include "vm/il_printer.h" |
| 10 #include "vm/intermediate_language.h" | 10 #include "vm/intermediate_language.h" |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 optimized_block_order_(), | 37 optimized_block_order_(), |
| 38 constant_null_(NULL), | 38 constant_null_(NULL), |
| 39 constant_dead_(NULL), | 39 constant_dead_(NULL), |
| 40 constant_empty_context_(NULL), | 40 constant_empty_context_(NULL), |
| 41 block_effects_(NULL), | 41 block_effects_(NULL), |
| 42 licm_allowed_(true), | 42 licm_allowed_(true), |
| 43 loop_headers_(NULL), | 43 loop_headers_(NULL), |
| 44 loop_invariant_loads_(NULL), | 44 loop_invariant_loads_(NULL), |
| 45 guarded_fields_(parsed_function.guarded_fields()), | 45 guarded_fields_(parsed_function.guarded_fields()), |
| 46 deferred_prefixes_(parsed_function.deferred_prefixes()), | 46 deferred_prefixes_(parsed_function.deferred_prefixes()), |
| 47 captured_parameters_(new(zone()) BitVector(zone(), variable_count())) { | 47 captured_parameters_(new(zone()) BitVector(zone(), variable_count())), |
| 48 inlining_id_(-1) { |
| 48 DiscoverBlocks(); | 49 DiscoverBlocks(); |
| 49 } | 50 } |
| 50 | 51 |
| 51 | 52 |
| 52 void FlowGraph::AddToGuardedFields( | 53 void FlowGraph::AddToGuardedFields( |
| 53 ZoneGrowableArray<const Field*>* array, | 54 ZoneGrowableArray<const Field*>* array, |
| 54 const Field* field) { | 55 const Field* field) { |
| 55 if ((field->guarded_cid() == kDynamicCid) || | 56 if ((field->guarded_cid() == kDynamicCid) || |
| 56 (field->guarded_cid() == kIllegalCid)) { | 57 (field->guarded_cid() == kIllegalCid)) { |
| 57 return; | 58 return; |
| (...skipping 1325 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1383 } | 1384 } |
| 1384 | 1385 |
| 1385 | 1386 |
| 1386 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from, | 1387 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from, |
| 1387 BlockEntryInstr* to) const { | 1388 BlockEntryInstr* to) const { |
| 1388 return available_at_[to->postorder_number()]->Contains( | 1389 return available_at_[to->postorder_number()]->Contains( |
| 1389 from->postorder_number()); | 1390 from->postorder_number()); |
| 1390 } | 1391 } |
| 1391 | 1392 |
| 1392 } // namespace dart | 1393 } // namespace dart |
| OLD | NEW |