| OLD | NEW |
| 1 // Copyright 2014 the V8 project authors. All rights reserved. | 1 // Copyright 2014 the V8 project authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef V8_REGISTER_ALLOCATOR_H_ | 5 #ifndef V8_REGISTER_ALLOCATOR_H_ |
| 6 #define V8_REGISTER_ALLOCATOR_H_ | 6 #define V8_REGISTER_ALLOCATOR_H_ |
| 7 | 7 |
| 8 #include "src/compiler/instruction.h" | 8 #include "src/compiler/instruction.h" |
| 9 #include "src/ostreams.h" | 9 #include "src/ostreams.h" |
| 10 #include "src/register-configuration.h" | 10 #include "src/register-configuration.h" |
| (...skipping 947 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 958 } | 958 } |
| 959 | 959 |
| 960 // TODO(mtrofin): explain why splitting in gap START is always OK. | 960 // TODO(mtrofin): explain why splitting in gap START is always OK. |
| 961 LifetimePosition GetSplitPositionForInstruction(const LiveRange* range, | 961 LifetimePosition GetSplitPositionForInstruction(const LiveRange* range, |
| 962 int instruction_index); | 962 int instruction_index); |
| 963 | 963 |
| 964 Zone* allocation_zone() const { return data()->allocation_zone(); } | 964 Zone* allocation_zone() const { return data()->allocation_zone(); } |
| 965 | 965 |
| 966 // Find the optimal split for ranges defined by a memory operand, e.g. | 966 // Find the optimal split for ranges defined by a memory operand, e.g. |
| 967 // constants or function parameters passed on the stack. | 967 // constants or function parameters passed on the stack. |
| 968 void SplitAndSpillRangesDefinedByMemoryOperand(bool operands_only); | 968 void SplitAndSpillRangesDefinedByMemoryOperand(); |
| 969 | 969 |
| 970 // Split the given range at the given position. | 970 // Split the given range at the given position. |
| 971 // If range starts at or after the given position then the | 971 // If range starts at or after the given position then the |
| 972 // original range is returned. | 972 // original range is returned. |
| 973 // Otherwise returns the live range that starts at pos and contains | 973 // Otherwise returns the live range that starts at pos and contains |
| 974 // all uses from the original range that follow pos. Uses at pos will | 974 // all uses from the original range that follow pos. Uses at pos will |
| 975 // still be owned by the original range after splitting. | 975 // still be owned by the original range after splitting. |
| 976 LiveRange* SplitRangeAt(LiveRange* range, LifetimePosition pos); | 976 LiveRange* SplitRangeAt(LiveRange* range, LifetimePosition pos); |
| 977 | 977 |
| 978 bool CanProcessRange(LiveRange* range) const { | 978 bool CanProcessRange(LiveRange* range) const { |
| (...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1168 RegisterAllocationData* const data_; | 1168 RegisterAllocationData* const data_; |
| 1169 | 1169 |
| 1170 DISALLOW_COPY_AND_ASSIGN(LiveRangeConnector); | 1170 DISALLOW_COPY_AND_ASSIGN(LiveRangeConnector); |
| 1171 }; | 1171 }; |
| 1172 | 1172 |
| 1173 } // namespace compiler | 1173 } // namespace compiler |
| 1174 } // namespace internal | 1174 } // namespace internal |
| 1175 } // namespace v8 | 1175 } // namespace v8 |
| 1176 | 1176 |
| 1177 #endif // V8_REGISTER_ALLOCATOR_H_ | 1177 #endif // V8_REGISTER_ALLOCATOR_H_ |
| OLD | NEW |