| 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 981 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 992 LifetimePosition FindOptimalSplitPos(LifetimePosition start, | 992 LifetimePosition FindOptimalSplitPos(LifetimePosition start, |
| 993 LifetimePosition end); | 993 LifetimePosition end); |
| 994 | 994 |
| 995 void Spill(LiveRange* range); | 995 void Spill(LiveRange* range); |
| 996 | 996 |
| 997 // If we are trying to spill a range inside the loop try to | 997 // If we are trying to spill a range inside the loop try to |
| 998 // hoist spill position out to the point just before the loop. | 998 // hoist spill position out to the point just before the loop. |
| 999 LifetimePosition FindOptimalSpillingPos(LiveRange* range, | 999 LifetimePosition FindOptimalSpillingPos(LiveRange* range, |
| 1000 LifetimePosition pos); | 1000 LifetimePosition pos); |
| 1001 | 1001 |
| 1002 const char* RegisterName(MachineRepresentation rep, int code) const; | 1002 const ZoneVector<TopLevelLiveRange*>& GetFixedRegisters() const; |
| 1003 const char* RegisterName(int allocation_index) const; |
| 1003 | 1004 |
| 1004 private: | 1005 private: |
| 1005 RegisterAllocationData* const data_; | 1006 RegisterAllocationData* const data_; |
| 1006 const RegisterKind mode_; | 1007 const RegisterKind mode_; |
| 1007 const int num_registers_; | 1008 const int num_registers_; |
| 1008 int num_allocatable_registers_; | 1009 int num_allocatable_registers_; |
| 1009 const int* allocatable_register_codes_; | 1010 const int* allocatable_register_codes_; |
| 1010 | 1011 |
| 1011 DISALLOW_COPY_AND_ASSIGN(RegisterAllocator); | 1012 DISALLOW_COPY_AND_ASSIGN(RegisterAllocator); |
| 1012 }; | 1013 }; |
| (...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1166 RegisterAllocationData* const data_; | 1167 RegisterAllocationData* const data_; |
| 1167 | 1168 |
| 1168 DISALLOW_COPY_AND_ASSIGN(LiveRangeConnector); | 1169 DISALLOW_COPY_AND_ASSIGN(LiveRangeConnector); |
| 1169 }; | 1170 }; |
| 1170 | 1171 |
| 1171 } // namespace compiler | 1172 } // namespace compiler |
| 1172 } // namespace internal | 1173 } // namespace internal |
| 1173 } // namespace v8 | 1174 } // namespace v8 |
| 1174 | 1175 |
| 1175 #endif // V8_REGISTER_ALLOCATOR_H_ | 1176 #endif // V8_REGISTER_ALLOCATOR_H_ |
| OLD | NEW |