| 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/cha.h" | 8 #include "vm/cha.h" |
| 9 #include "vm/flow_graph_builder.h" | 9 #include "vm/flow_graph_builder.h" |
| 10 #include "vm/flow_graph_compiler.h" | 10 #include "vm/flow_graph_compiler.h" |
| (...skipping 28 matching lines...) Expand all Loading... |
| 39 reverse_postorder_(), | 39 reverse_postorder_(), |
| 40 optimized_block_order_(), | 40 optimized_block_order_(), |
| 41 constant_null_(NULL), | 41 constant_null_(NULL), |
| 42 constant_dead_(NULL), | 42 constant_dead_(NULL), |
| 43 constant_empty_context_(NULL), | 43 constant_empty_context_(NULL), |
| 44 block_effects_(NULL), | 44 block_effects_(NULL), |
| 45 licm_allowed_(true), | 45 licm_allowed_(true), |
| 46 loop_headers_(NULL), | 46 loop_headers_(NULL), |
| 47 loop_invariant_loads_(NULL), | 47 loop_invariant_loads_(NULL), |
| 48 deferred_prefixes_(parsed_function.deferred_prefixes()), | 48 deferred_prefixes_(parsed_function.deferred_prefixes()), |
| 49 await_token_positions_(NULL), |
| 49 captured_parameters_(new (zone()) BitVector(zone(), variable_count())), | 50 captured_parameters_(new (zone()) BitVector(zone(), variable_count())), |
| 50 inlining_id_(-1) { | 51 inlining_id_(-1) { |
| 51 DiscoverBlocks(); | 52 DiscoverBlocks(); |
| 52 } | 53 } |
| 53 | 54 |
| 54 | 55 |
| 55 void FlowGraph::EnsureSSATempIndex(Definition* defn, Definition* replacement) { | 56 void FlowGraph::EnsureSSATempIndex(Definition* defn, Definition* replacement) { |
| 56 if ((replacement->ssa_temp_index() == -1) && (defn->ssa_temp_index() != -1)) { | 57 if ((replacement->ssa_temp_index() == -1) && (defn->ssa_temp_index() != -1)) { |
| 57 AllocateSSAIndexes(replacement); | 58 AllocateSSAIndexes(replacement); |
| 58 } | 59 } |
| (...skipping 2219 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2278 Representation rep, | 2279 Representation rep, |
| 2279 intptr_t cid) { | 2280 intptr_t cid) { |
| 2280 ExtractNthOutputInstr* extract = | 2281 ExtractNthOutputInstr* extract = |
| 2281 new (Z) ExtractNthOutputInstr(new (Z) Value(instr), index, rep, cid); | 2282 new (Z) ExtractNthOutputInstr(new (Z) Value(instr), index, rep, cid); |
| 2282 instr->ReplaceUsesWith(extract); | 2283 instr->ReplaceUsesWith(extract); |
| 2283 InsertAfter(instr, extract, NULL, FlowGraph::kValue); | 2284 InsertAfter(instr, extract, NULL, FlowGraph::kValue); |
| 2284 } | 2285 } |
| 2285 | 2286 |
| 2286 | 2287 |
| 2287 } // namespace dart | 2288 } // namespace dart |
| OLD | NEW |