Index: src/assembler.cc |
diff --git a/src/assembler.cc b/src/assembler.cc |
index 300211201e105666f634c6ca21653c970f7af019..c355105f35f70de7158cd0fd4b9baa320ca49467 100644 |
--- a/src/assembler.cc |
+++ b/src/assembler.cc |
@@ -123,10 +123,10 @@ const char* Register::ToString() { |
->GetGeneralRegisterName(reg_code); |
} |
- |
-bool Register::IsAllocatable() const { |
+bool Register::IsAllocatable( |
+ RegisterConfiguration::CompilerSelector compiler) const { |
return ((1 << reg_code) & |
- RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT) |
+ RegisterConfiguration::ArchDefault(compiler) |
->allocatable_general_codes_mask()) != 0; |
} |
@@ -137,10 +137,10 @@ const char* DoubleRegister::ToString() { |
->GetDoubleRegisterName(reg_code); |
} |
- |
-bool DoubleRegister::IsAllocatable() const { |
+bool DoubleRegister::IsAllocatable( |
+ RegisterConfiguration::CompilerSelector compiler) const { |
return ((1 << reg_code) & |
- RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT) |
+ RegisterConfiguration::ArchDefault(compiler) |
->allocatable_double_codes_mask()) != 0; |
} |
@@ -154,7 +154,8 @@ const char* FloatRegister::ToString() { |
->GetFloatRegisterName(reg_code); |
} |
-bool FloatRegister::IsAllocatable() const { |
+bool FloatRegister::IsAllocatable( |
+ RegisterConfiguration::CompilerSelector compiler) const { |
// TODO(bbudge) Update this once RegisterConfigutation handles aliasing. |
return ((1 << reg_code) & |
RegisterConfiguration::ArchDefault(RegisterConfiguration::CRANKSHAFT) |