OLD | NEW |
1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 #ifndef VM_FLOW_GRAPH_ALLOCATOR_H_ | 5 #ifndef VM_FLOW_GRAPH_ALLOCATOR_H_ |
6 #define VM_FLOW_GRAPH_ALLOCATOR_H_ | 6 #define VM_FLOW_GRAPH_ALLOCATOR_H_ |
7 | 7 |
8 #include "vm/flow_graph.h" | 8 #include "vm/flow_graph.h" |
9 #include "vm/growable_array.h" | 9 #include "vm/growable_array.h" |
10 #include "vm/intermediate_language.h" | 10 #include "vm/intermediate_language.h" |
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
241 // Mark the live range as a live object pointer at all safepoints | 241 // Mark the live range as a live object pointer at all safepoints |
242 // contained in the range. | 242 // contained in the range. |
243 void MarkAsObjectAtSafepoints(LiveRange* range); | 243 void MarkAsObjectAtSafepoints(LiveRange* range); |
244 | 244 |
245 MoveOperands* AddMoveAt(intptr_t pos, Location to, Location from); | 245 MoveOperands* AddMoveAt(intptr_t pos, Location to, Location from); |
246 | 246 |
247 Location MakeRegisterLocation(intptr_t reg) { | 247 Location MakeRegisterLocation(intptr_t reg) { |
248 return Location::MachineRegisterLocation(register_kind_, reg); | 248 return Location::MachineRegisterLocation(register_kind_, reg); |
249 } | 249 } |
250 | 250 |
| 251 void SplitInitialDefinitionAt(LiveRange* range, intptr_t pos); |
| 252 |
251 void PrintLiveRanges(); | 253 void PrintLiveRanges(); |
252 | 254 |
253 const FlowGraph& flow_graph_; | 255 const FlowGraph& flow_graph_; |
254 | 256 |
255 ReachingDefs reaching_defs_; | 257 ReachingDefs reaching_defs_; |
256 | 258 |
257 // Representation for SSA values indexed by SSA temp index. | 259 // Representation for SSA values indexed by SSA temp index. |
258 GrowableArray<Representation> value_representations_; | 260 GrowableArray<Representation> value_representations_; |
259 | 261 |
260 const GrowableArray<BlockEntryInstr*>& block_order_; | 262 const GrowableArray<BlockEntryInstr*>& block_order_; |
(...skipping 415 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
676 | 678 |
677 AllocationFinger finger_; | 679 AllocationFinger finger_; |
678 | 680 |
679 DISALLOW_COPY_AND_ASSIGN(LiveRange); | 681 DISALLOW_COPY_AND_ASSIGN(LiveRange); |
680 }; | 682 }; |
681 | 683 |
682 | 684 |
683 } // namespace dart | 685 } // namespace dart |
684 | 686 |
685 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_ | 687 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_ |
OLD | NEW |