| 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 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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, | 112 void ProcessOneInput(BlockEntryInstr* block, |
| 113 intptr_t pos, | 113 intptr_t pos, |
| 114 Location* in_ref, | 114 Location* in_ref, |
| 115 Value* input, | 115 Value* input, |
| 116 intptr_t vreg, | 116 intptr_t vreg, |
| 117 RegisterSet* live_registers); | 117 RegisterSet* live_registers); |
| 118 void ProcessOneOutput(BlockEntryInstr* block, | 118 void ProcessOneOutput(BlockEntryInstr* block, |
| 119 Instruction* current, | |
| 120 intptr_t pos, | 119 intptr_t pos, |
| 121 Location* out, | 120 Location* out, |
| 122 Definition* def, | 121 Definition* def, |
| 123 intptr_t vreg, | 122 intptr_t vreg, |
| 124 bool output_same_as_first_input, | 123 bool output_same_as_first_input, |
| 125 Location* in_ref, | 124 Location* in_ref, |
| 126 Definition* input, | 125 Definition* input, |
| 127 intptr_t input_vreg, | 126 intptr_t input_vreg, |
| 128 BitVector* interference_set); | 127 BitVector* interference_set); |
| 129 void ProcessOneInstruction(BlockEntryInstr* block, | 128 void ProcessOneInstruction(BlockEntryInstr* block, |
| 130 Instruction* instr, | 129 Instruction* instr, |
| 131 BitVector* interference_set); | 130 BitVector* interference_set); |
| 132 void ProcessInitialDefinition(Definition* defn, | 131 void ProcessInitialDefinition(Definition* defn, |
| 133 LiveRange* range, | 132 LiveRange* range, |
| 134 BlockEntryInstr* block); | 133 BlockEntryInstr* block); |
| 135 void ConnectIncomingPhiMoves(JoinEntryInstr* join); | 134 void ConnectIncomingPhiMoves(JoinEntryInstr* join); |
| 136 void BlockLocation(Location loc, intptr_t from, intptr_t to); | 135 void BlockLocation(Location loc, intptr_t from, intptr_t to); |
| 137 void BlockRegisterLocation(Location loc, | 136 void BlockRegisterLocation(Location loc, |
| 138 intptr_t from, | 137 intptr_t from, |
| 139 intptr_t to, | 138 intptr_t to, |
| 140 bool* blocked_registers, | 139 bool* blocked_registers, |
| 141 LiveRange** blocking_ranges); | 140 LiveRange** blocking_ranges); |
| 142 | 141 |
| 143 intptr_t NumberOfRegisters() const { return number_of_registers_; } | 142 intptr_t NumberOfRegisters() const { return number_of_registers_; } |
| 144 | 143 |
| 145 // Find all safepoints that are covered by this live range. | 144 // Find all safepoints that are covered by this live range. |
| 146 void AssignSafepoints(LiveRange* range); | 145 void AssignSafepoints(Definition* defn, LiveRange* range); |
| 147 | 146 |
| 148 void PrepareForAllocation(Location::Kind register_kind, | 147 void PrepareForAllocation(Location::Kind register_kind, |
| 149 intptr_t number_of_registers, | 148 intptr_t number_of_registers, |
| 150 const GrowableArray<LiveRange*>& unallocated, | 149 const GrowableArray<LiveRange*>& unallocated, |
| 151 LiveRange** blocking_ranges, | 150 LiveRange** blocking_ranges, |
| 152 bool* blocked_registers); | 151 bool* blocked_registers); |
| 153 | 152 |
| 154 | 153 |
| 155 // Process live ranges sorted by their start and assign registers | 154 // Process live ranges sorted by their start and assign registers |
| 156 // to them | 155 // to them |
| (...skipping 513 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 670 | 669 |
| 671 AllocationFinger finger_; | 670 AllocationFinger finger_; |
| 672 | 671 |
| 673 DISALLOW_COPY_AND_ASSIGN(LiveRange); | 672 DISALLOW_COPY_AND_ASSIGN(LiveRange); |
| 674 }; | 673 }; |
| 675 | 674 |
| 676 | 675 |
| 677 } // namespace dart | 676 } // namespace dart |
| 678 | 677 |
| 679 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_ | 678 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_ |
| OLD | NEW |