| 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/intermediate_language.h" | 10 #include "vm/intermediate_language.h" |
| 10 #include "vm/growable_array.h" | 11 #include "vm/growable_array.h" |
| 11 #include "vm/object_store.h" | 12 #include "vm/object_store.h" |
| 12 #include "vm/report.h" | 13 #include "vm/report.h" |
| 13 | 14 |
| 14 namespace dart { | 15 namespace dart { |
| 15 | 16 |
| 16 DEFINE_FLAG(bool, prune_dead_locals, true, "optimize dead locals away"); | 17 DEFINE_FLAG(bool, prune_dead_locals, true, "optimize dead locals away"); |
| 17 DECLARE_FLAG(bool, reorder_basic_blocks); | 18 DECLARE_FLAG(bool, reorder_basic_blocks); |
| 18 DECLARE_FLAG(bool, trace_optimization); | 19 DECLARE_FLAG(bool, trace_optimization); |
| (...skipping 1363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1382 } | 1383 } |
| 1383 | 1384 |
| 1384 | 1385 |
| 1385 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from, | 1386 bool BlockEffects::IsSideEffectFreePath(BlockEntryInstr* from, |
| 1386 BlockEntryInstr* to) const { | 1387 BlockEntryInstr* to) const { |
| 1387 return available_at_[to->postorder_number()]->Contains( | 1388 return available_at_[to->postorder_number()]->Contains( |
| 1388 from->postorder_number()); | 1389 from->postorder_number()); |
| 1389 } | 1390 } |
| 1390 | 1391 |
| 1391 } // namespace dart | 1392 } // namespace dart |
| OLD | NEW |