| 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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 // to them | 119 // to them |
| 120 void AllocateUnallocatedRanges(); | 120 void AllocateUnallocatedRanges(); |
| 121 void AdvanceActiveIntervals(const intptr_t start); | 121 void AdvanceActiveIntervals(const intptr_t start); |
| 122 | 122 |
| 123 // Connect split siblings over non-linear control flow edges. | 123 // Connect split siblings over non-linear control flow edges. |
| 124 void ResolveControlFlow(); | 124 void ResolveControlFlow(); |
| 125 void ConnectSplitSiblings(LiveRange* range, | 125 void ConnectSplitSiblings(LiveRange* range, |
| 126 BlockEntryInstr* source_block, | 126 BlockEntryInstr* source_block, |
| 127 BlockEntryInstr* target_block); | 127 BlockEntryInstr* target_block); |
| 128 | 128 |
| 129 // Returns true if the target location is the spill slot for the given range. |
| 130 bool TargetLocationIsSpillSlot(LiveRange* range, Location target); |
| 129 | 131 |
| 130 // Update location slot corresponding to the use with location allocated for | 132 // Update location slot corresponding to the use with location allocated for |
| 131 // the use's live range. | 133 // the use's live range. |
| 132 void ConvertUseTo(UsePosition* use, Location loc); | 134 void ConvertUseTo(UsePosition* use, Location loc); |
| 133 void ConvertAllUses(LiveRange* range); | 135 void ConvertAllUses(LiveRange* range); |
| 134 | 136 |
| 135 // Add live range to the list of unallocated live ranges to be processed | 137 // Add live range to the list of unallocated live ranges to be processed |
| 136 // by the allocator. | 138 // by the allocator. |
| 137 void AddToUnallocated(LiveRange* range); | 139 void AddToUnallocated(LiveRange* range); |
| 138 void CompleteRange(LiveRange* range, Location::Kind kind); | 140 void CompleteRange(LiveRange* range, Location::Kind kind); |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 546 | 548 |
| 547 AllocationFinger finger_; | 549 AllocationFinger finger_; |
| 548 | 550 |
| 549 DISALLOW_COPY_AND_ASSIGN(LiveRange); | 551 DISALLOW_COPY_AND_ASSIGN(LiveRange); |
| 550 }; | 552 }; |
| 551 | 553 |
| 552 | 554 |
| 553 } // namespace dart | 555 } // namespace dart |
| 554 | 556 |
| 555 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_ | 557 #endif // VM_FLOW_GRAPH_ALLOCATOR_H_ |
| OLD | NEW |