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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
102 // all SSA values. | 102 // all SSA values. |
103 void BuildLiveRanges(); | 103 void BuildLiveRanges(); |
104 | 104 |
105 Instruction* ConnectOutgoingPhiMoves(BlockEntryInstr* block, | 105 Instruction* ConnectOutgoingPhiMoves(BlockEntryInstr* block, |
106 BitVector* interference_set); | 106 BitVector* interference_set); |
107 void ProcessEnvironmentUses(BlockEntryInstr* block, Instruction* current); | 107 void ProcessEnvironmentUses(BlockEntryInstr* block, Instruction* current); |
108 void ProcessMaterializationUses(BlockEntryInstr* block, | 108 void ProcessMaterializationUses(BlockEntryInstr* block, |
109 const intptr_t block_start_pos, | 109 const intptr_t block_start_pos, |
110 const intptr_t use_pos, | 110 const intptr_t use_pos, |
111 MaterializeObjectInstr* mat); | 111 MaterializeObjectInstr* mat); |
| 112 void ProcessOneInput(BlockEntryInstr* block, |
| 113 intptr_t pos, |
| 114 Location* in_ref, |
| 115 Value* input, |
| 116 intptr_t vreg); |
| 117 void ProcessOneOutput(BlockEntryInstr* block, |
| 118 Instruction* current, |
| 119 intptr_t pos, |
| 120 Location* out, |
| 121 Definition* def, |
| 122 intptr_t vreg, |
| 123 bool output_same_as_first_input, |
| 124 Location* in_ref, |
| 125 Definition* input, |
| 126 intptr_t input_vreg, |
| 127 BitVector* interference_set); |
112 void ProcessOneInstruction(BlockEntryInstr* block, | 128 void ProcessOneInstruction(BlockEntryInstr* block, |
113 Instruction* instr, | 129 Instruction* instr, |
114 BitVector* interference_set); | 130 BitVector* interference_set); |
115 void ProcessInitialDefinition(Definition* defn, | 131 void ProcessInitialDefinition(Definition* defn, |
116 LiveRange* range, | 132 LiveRange* range, |
117 BlockEntryInstr* block); | 133 BlockEntryInstr* block); |
118 void ConnectIncomingPhiMoves(JoinEntryInstr* join); | 134 void ConnectIncomingPhiMoves(JoinEntryInstr* join); |
119 void BlockLocation(Location loc, intptr_t from, intptr_t to); | 135 void BlockLocation(Location loc, intptr_t from, intptr_t to); |
120 void BlockRegisterLocation(Location loc, | 136 void BlockRegisterLocation(Location loc, |
121 intptr_t from, | 137 intptr_t from, |
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
646 | 662 |
647 AllocationFinger finger_; | 663 AllocationFinger finger_; |
648 | 664 |
649 DISALLOW_COPY_AND_ASSIGN(LiveRange); | 665 DISALLOW_COPY_AND_ASSIGN(LiveRange); |
650 }; | 666 }; |
651 | 667 |
652 | 668 |
653 } // namespace dart | 669 } // namespace dart |
654 | 670 |
655 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_ | 671 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_ |
OLD | NEW |