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

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

Issue 2081443002: [Turbofan] Clean up register allocator and verifier code. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 4 years, 6 months 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
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/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
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 ZoneVector<TopLevelLiveRange*>& GetFixedRegisters() const; 1002 const char* RegisterName(MachineRepresentation rep, int code) const;
1003 const char* RegisterName(int allocation_index) const;
1004 1003
1005 private: 1004 private:
1006 RegisterAllocationData* const data_; 1005 RegisterAllocationData* const data_;
1007 const RegisterKind mode_; 1006 const RegisterKind mode_;
1008 const int num_registers_; 1007 const int num_registers_;
1009 int num_allocatable_registers_; 1008 int num_allocatable_registers_;
1010 const int* allocatable_register_codes_; 1009 const int* allocatable_register_codes_;
1011 1010
1012 DISALLOW_COPY_AND_ASSIGN(RegisterAllocator); 1011 DISALLOW_COPY_AND_ASSIGN(RegisterAllocator);
1013 }; 1012 };
(...skipping 153 matching lines...) Expand 10 before | Expand all | Expand 10 after
1167 RegisterAllocationData* const data_; 1166 RegisterAllocationData* const data_;
1168 1167
1169 DISALLOW_COPY_AND_ASSIGN(LiveRangeConnector); 1168 DISALLOW_COPY_AND_ASSIGN(LiveRangeConnector);
1170 }; 1169 };
1171 1170
1172 } // namespace compiler 1171 } // namespace compiler
1173 } // namespace internal 1172 } // namespace internal
1174 } // namespace v8 1173 } // namespace v8
1175 1174
1176 #endif // V8_REGISTER_ALLOCATOR_H_ 1175 #endif // V8_REGISTER_ALLOCATOR_H_
OLDNEW
« no previous file with comments | « no previous file | src/compiler/register-allocator.cc » ('j') | src/compiler/register-allocator-verifier.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698