| 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 518 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 529 // Lists of live ranges | 529 // Lists of live ranges |
| 530 ZoneVector<LiveRange*> fixed_live_ranges_; | 530 ZoneVector<LiveRange*> fixed_live_ranges_; |
| 531 ZoneVector<LiveRange*> fixed_double_live_ranges_; | 531 ZoneVector<LiveRange*> fixed_double_live_ranges_; |
| 532 ZoneList<LiveRange*> unhandled_live_ranges_; | 532 ZoneList<LiveRange*> unhandled_live_ranges_; |
| 533 ZoneList<LiveRange*> active_live_ranges_; | 533 ZoneList<LiveRange*> active_live_ranges_; |
| 534 ZoneList<LiveRange*> inactive_live_ranges_; | 534 ZoneList<LiveRange*> inactive_live_ranges_; |
| 535 ZoneList<LiveRange*> reusable_slots_; | 535 ZoneList<LiveRange*> reusable_slots_; |
| 536 | 536 |
| 537 RegisterKind mode_; | 537 RegisterKind mode_; |
| 538 int num_registers_; | 538 int num_registers_; |
| 539 uint8_t first_register_to_try_; // For robin round register picking. |
| 539 | 540 |
| 540 BitVector* assigned_registers_; | 541 BitVector* assigned_registers_; |
| 541 BitVector* assigned_double_registers_; | 542 BitVector* assigned_double_registers_; |
| 542 | 543 |
| 543 // Indicates success or failure during register allocation. | 544 // Indicates success or failure during register allocation. |
| 544 bool allocation_ok_; | 545 bool allocation_ok_; |
| 545 | 546 |
| 546 #ifdef DEBUG | 547 #ifdef DEBUG |
| 547 LifetimePosition allocation_finger_; | 548 LifetimePosition allocation_finger_; |
| 548 #endif | 549 #endif |
| 549 | 550 |
| 550 DISALLOW_COPY_AND_ASSIGN(RegisterAllocator); | 551 DISALLOW_COPY_AND_ASSIGN(RegisterAllocator); |
| 551 }; | 552 }; |
| 552 | 553 |
| 553 } | 554 } |
| 554 } | 555 } |
| 555 } // namespace v8::internal::compiler | 556 } // namespace v8::internal::compiler |
| 556 | 557 |
| 557 #endif // V8_REGISTER_ALLOCATOR_H_ | 558 #endif // V8_REGISTER_ALLOCATOR_H_ |
| OLD | NEW |