Index: src/arm64/assembler-arm64.cc |
diff --git a/src/arm64/assembler-arm64.cc b/src/arm64/assembler-arm64.cc |
index 0a1ecda9aa9b7c7883ef4eced453dd3035bd18f8..44d7267d7361b9f4501d908f5e3d3fdb7d0981e1 100644 |
--- a/src/arm64/assembler-arm64.cc |
+++ b/src/arm64/assembler-arm64.cc |
@@ -110,17 +110,17 @@ void CPURegList::RemoveCalleeSaved() { |
} |
-CPURegList CPURegList::GetCalleeSaved(unsigned size) { |
+CPURegList CPURegList::GetCalleeSaved(int size) { |
return CPURegList(CPURegister::kRegister, size, 19, 29); |
} |
-CPURegList CPURegList::GetCalleeSavedFP(unsigned size) { |
+CPURegList CPURegList::GetCalleeSavedFP(int size) { |
return CPURegList(CPURegister::kFPRegister, size, 8, 15); |
} |
-CPURegList CPURegList::GetCallerSaved(unsigned size) { |
+CPURegList CPURegList::GetCallerSaved(int size) { |
// Registers x0-x18 and lr (x30) are caller-saved. |
CPURegList list = CPURegList(CPURegister::kRegister, size, 0, 18); |
list.Combine(lr); |
@@ -128,7 +128,7 @@ CPURegList CPURegList::GetCallerSaved(unsigned size) { |
} |
-CPURegList CPURegList::GetCallerSavedFP(unsigned size) { |
+CPURegList CPURegList::GetCallerSavedFP(int size) { |
// Registers d0-d7 and d16-d31 are caller-saved. |
CPURegList list = CPURegList(CPURegister::kFPRegister, size, 0, 7); |
list.Combine(CPURegList(CPURegister::kFPRegister, size, 16, 31)); |
@@ -1278,10 +1278,8 @@ void Assembler::rorv(const Register& rd, |
// Bitfield operations. |
-void Assembler::bfm(const Register& rd, |
- const Register& rn, |
- unsigned immr, |
- unsigned imms) { |
+void Assembler::bfm(const Register& rd, const Register& rn, int immr, |
+ int imms) { |
DCHECK(rd.SizeInBits() == rn.SizeInBits()); |
Instr N = SF(rd) >> (kSFOffset - kBitfieldNOffset); |
Emit(SF(rd) | BFM | N | |
@@ -1291,10 +1289,8 @@ void Assembler::bfm(const Register& rd, |
} |
-void Assembler::sbfm(const Register& rd, |
- const Register& rn, |
- unsigned immr, |
- unsigned imms) { |
+void Assembler::sbfm(const Register& rd, const Register& rn, int immr, |
+ int imms) { |
DCHECK(rd.Is64Bits() || rn.Is32Bits()); |
Instr N = SF(rd) >> (kSFOffset - kBitfieldNOffset); |
Emit(SF(rd) | SBFM | N | |
@@ -1304,10 +1300,8 @@ void Assembler::sbfm(const Register& rd, |
} |
-void Assembler::ubfm(const Register& rd, |
- const Register& rn, |
- unsigned immr, |
- unsigned imms) { |
+void Assembler::ubfm(const Register& rd, const Register& rn, int immr, |
+ int imms) { |
DCHECK(rd.SizeInBits() == rn.SizeInBits()); |
Instr N = SF(rd) >> (kSFOffset - kBitfieldNOffset); |
Emit(SF(rd) | UBFM | N | |
@@ -1317,10 +1311,8 @@ void Assembler::ubfm(const Register& rd, |
} |
-void Assembler::extr(const Register& rd, |
- const Register& rn, |
- const Register& rm, |
- unsigned lsb) { |
+void Assembler::extr(const Register& rd, const Register& rn, const Register& rm, |
+ int lsb) { |
DCHECK(rd.SizeInBits() == rn.SizeInBits()); |
DCHECK(rd.SizeInBits() == rm.SizeInBits()); |
Instr N = SF(rd) >> (kSFOffset - kBitfieldNOffset); |