| 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 #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/growable_array.h" | 8 #include "vm/growable_array.h" |
| 9 #include "vm/intermediate_language.h" | 9 #include "vm/intermediate_language.h" |
| 10 | 10 |
| (...skipping 196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 #endif | 207 #endif |
| 208 | 208 |
| 209 GrowableArray<LiveRange*> spilled_; | 209 GrowableArray<LiveRange*> spilled_; |
| 210 | 210 |
| 211 // Per register lists of allocated live ranges. Contain only those | 211 // Per register lists of allocated live ranges. Contain only those |
| 212 // ranges that can be affected by future allocation decisions. | 212 // ranges that can be affected by future allocation decisions. |
| 213 // Those live ranges that end before the start of the current live range are | 213 // Those live ranges that end before the start of the current live range are |
| 214 // removed from the list and will not be affected. | 214 // removed from the list and will not be affected. |
| 215 GrowableArray<LiveRange*> cpu_regs_[kNumberOfCpuRegisters]; | 215 GrowableArray<LiveRange*> cpu_regs_[kNumberOfCpuRegisters]; |
| 216 | 216 |
| 217 // List of used spill slots. Contain positions after which spill slots | 217 // List of used spill slots. Contains positions after which spill slots |
| 218 // become free and can be reused for allocation. | 218 // become free and can be reused for allocation. |
| 219 GrowableArray<intptr_t> spill_slots_; | 219 GrowableArray<intptr_t> spill_slots_; |
| 220 | 220 |
| 221 bool blocked_cpu_regs_[kNumberOfCpuRegisters]; | 221 bool blocked_cpu_regs_[kNumberOfCpuRegisters]; |
| 222 | 222 |
| 223 DISALLOW_COPY_AND_ASSIGN(FlowGraphAllocator); | 223 DISALLOW_COPY_AND_ASSIGN(FlowGraphAllocator); |
| 224 }; | 224 }; |
| 225 | 225 |
| 226 | 226 |
| 227 // Additional information about a block that is not contained in a | 227 // Additional information about a block that is not contained in a |
| (...skipping 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 | 448 |
| 449 AllocationFinger finger_; | 449 AllocationFinger finger_; |
| 450 | 450 |
| 451 DISALLOW_COPY_AND_ASSIGN(LiveRange); | 451 DISALLOW_COPY_AND_ASSIGN(LiveRange); |
| 452 }; | 452 }; |
| 453 | 453 |
| 454 | 454 |
| 455 } // namespace dart | 455 } // namespace dart |
| 456 | 456 |
| 457 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_ | 457 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_ |
| OLD | NEW |