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

Unified Diff: src/lithium-allocator.cc

Issue 1405673003: provides a mechanism for optimizing compilers to select the different Register configuration. (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Created 5 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: src/lithium-allocator.cc
diff --git a/src/lithium-allocator.cc b/src/lithium-allocator.cc
index 7e34daab411dba2f93ff19e838c511fca1b83236..7879530fb9863f406878ba268e72d0ad7d29a0bd 100644
--- a/src/lithium-allocator.cc
+++ b/src/lithium-allocator.cc
@@ -1462,9 +1462,11 @@ void LAllocator::PopulatePointerMaps() {
void LAllocator::AllocateGeneralRegisters() {
LAllocatorPhase phase("L_Allocate general registers", this);
num_registers_ =
- RegisterConfiguration::ArchDefault()->num_allocatable_general_registers();
+ RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT)
+ ->num_allocatable_general_registers();
allocatable_register_codes_ =
- RegisterConfiguration::ArchDefault()->allocatable_general_codes();
+ RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT)
+ ->allocatable_general_codes();
mode_ = GENERAL_REGISTERS;
AllocateRegisters();
}
@@ -1473,9 +1475,11 @@ void LAllocator::AllocateGeneralRegisters() {
void LAllocator::AllocateDoubleRegisters() {
LAllocatorPhase phase("L_Allocate double registers", this);
num_registers_ =
- RegisterConfiguration::ArchDefault()->num_allocatable_double_registers();
+ RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT)
+ ->num_allocatable_double_registers();
allocatable_register_codes_ =
- RegisterConfiguration::ArchDefault()->allocatable_double_codes();
+ RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT)
+ ->allocatable_double_codes();
mode_ = DOUBLE_REGISTERS;
AllocateRegisters();
}

Powered by Google App Engine
This is Rietveld 408576698