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

Unified Diff: src/assembler.cc

Issue 2090993002: Fix '[tests] Don't test moves between different reps in test-gap-resolver.cc' (Closed) Base URL: https://chromium.googlesource.com/v8/v8.git@master
Patch Set: Fix arm. 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/assembler.h ('k') | src/compiler/instruction.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « src/assembler.h ('k') | src/compiler/instruction.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698