Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(165)

Side by Side Diff: src/compiler/register-allocator.h

Issue 728553003: [turbofan] round robin register picking (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: rebase Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | src/compiler/register-allocator.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/register-allocator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698