| 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/zone-containers.h" | 9 #include "src/zone-containers.h" |
| 10 | 10 |
| (...skipping 553 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 564 ZoneVector<LiveRange*> fixed_live_ranges_; | 564 ZoneVector<LiveRange*> fixed_live_ranges_; |
| 565 ZoneVector<LiveRange*> fixed_double_live_ranges_; | 565 ZoneVector<LiveRange*> fixed_double_live_ranges_; |
| 566 ZoneList<LiveRange*> unhandled_live_ranges_; | 566 ZoneList<LiveRange*> unhandled_live_ranges_; |
| 567 ZoneList<LiveRange*> active_live_ranges_; | 567 ZoneList<LiveRange*> active_live_ranges_; |
| 568 ZoneList<LiveRange*> inactive_live_ranges_; | 568 ZoneList<LiveRange*> inactive_live_ranges_; |
| 569 ZoneList<LiveRange*> reusable_slots_; | 569 ZoneList<LiveRange*> reusable_slots_; |
| 570 ZoneList<SpillRange*> spill_ranges_; | 570 ZoneList<SpillRange*> spill_ranges_; |
| 571 | 571 |
| 572 RegisterKind mode_; | 572 RegisterKind mode_; |
| 573 int num_registers_; | 573 int num_registers_; |
| 574 uint8_t first_register_to_try_; // For robin round register picking. |
| 574 | 575 |
| 575 BitVector* assigned_registers_; | 576 BitVector* assigned_registers_; |
| 576 BitVector* assigned_double_registers_; | 577 BitVector* assigned_double_registers_; |
| 577 | 578 |
| 578 // Indicates success or failure during register allocation. | 579 // Indicates success or failure during register allocation. |
| 579 bool allocation_ok_; | 580 bool allocation_ok_; |
| 580 | 581 |
| 581 #ifdef DEBUG | 582 #ifdef DEBUG |
| 582 LifetimePosition allocation_finger_; | 583 LifetimePosition allocation_finger_; |
| 583 #endif | 584 #endif |
| 584 | 585 |
| 585 DISALLOW_COPY_AND_ASSIGN(RegisterAllocator); | 586 DISALLOW_COPY_AND_ASSIGN(RegisterAllocator); |
| 586 }; | 587 }; |
| 587 | 588 |
| 588 } | 589 } |
| 589 } | 590 } |
| 590 } // namespace v8::internal::compiler | 591 } // namespace v8::internal::compiler |
| 591 | 592 |
| 592 #endif // V8_REGISTER_ALLOCATOR_H_ | 593 #endif // V8_REGISTER_ALLOCATOR_H_ |
| OLD | NEW |