Index: src/mips/assembler-mips.cc |
diff --git a/src/mips/assembler-mips.cc b/src/mips/assembler-mips.cc |
index 7fa4d5d66a5c2fe2c97f67c480811c189c6e99d0..87abbe1b4d1ea6ba01a2d7f697d5042baa7bb73c 100644 |
--- a/src/mips/assembler-mips.cc |
+++ b/src/mips/assembler-mips.cc |
@@ -64,28 +64,6 @@ static unsigned CpuFeaturesImpliedByCompiler() { |
} |
-const char* DoubleRegister::AllocationIndexToString(int index) { |
- DCHECK(index >= 0 && index < kMaxNumAllocatableRegisters); |
- const char* const names[] = { |
- "f0", |
- "f2", |
- "f4", |
- "f6", |
- "f8", |
- "f10", |
- "f12", |
- "f14", |
- "f16", |
- "f18", |
- "f20", |
- "f22", |
- "f24", |
- "f26" |
- }; |
- return names[index]; |
-} |
- |
- |
void CpuFeatures::ProbeImpl(bool cross_compile) { |
supported_ |= CpuFeaturesImpliedByCompiler(); |
@@ -250,31 +228,31 @@ MemOperand::MemOperand(Register rm, int32_t unit, int32_t multiplier, |
static const int kNegOffset = 0x00008000; |
// addiu(sp, sp, 4) aka Pop() operation or part of Pop(r) |
// operations as post-increment of sp. |
-const Instr kPopInstruction = ADDIU | (kRegister_sp_Code << kRsShift) |
- | (kRegister_sp_Code << kRtShift) |
- | (kPointerSize & kImm16Mask); // NOLINT |
+const Instr kPopInstruction = ADDIU | (Register::kCode_sp << kRsShift) | |
+ (Register::kCode_sp << kRtShift) | |
+ (kPointerSize & kImm16Mask); // NOLINT |
// addiu(sp, sp, -4) part of Push(r) operation as pre-decrement of sp. |
-const Instr kPushInstruction = ADDIU | (kRegister_sp_Code << kRsShift) |
- | (kRegister_sp_Code << kRtShift) |
- | (-kPointerSize & kImm16Mask); // NOLINT |
+const Instr kPushInstruction = ADDIU | (Register::kCode_sp << kRsShift) | |
+ (Register::kCode_sp << kRtShift) | |
+ (-kPointerSize & kImm16Mask); // NOLINT |
// sw(r, MemOperand(sp, 0)) |
-const Instr kPushRegPattern = SW | (kRegister_sp_Code << kRsShift) |
- | (0 & kImm16Mask); // NOLINT |
+const Instr kPushRegPattern = |
+ SW | (Register::kCode_sp << kRsShift) | (0 & kImm16Mask); // NOLINT |
// lw(r, MemOperand(sp, 0)) |
-const Instr kPopRegPattern = LW | (kRegister_sp_Code << kRsShift) |
- | (0 & kImm16Mask); // NOLINT |
+const Instr kPopRegPattern = |
+ LW | (Register::kCode_sp << kRsShift) | (0 & kImm16Mask); // NOLINT |
-const Instr kLwRegFpOffsetPattern = LW | (kRegister_fp_Code << kRsShift) |
- | (0 & kImm16Mask); // NOLINT |
+const Instr kLwRegFpOffsetPattern = |
+ LW | (Register::kCode_fp << kRsShift) | (0 & kImm16Mask); // NOLINT |
-const Instr kSwRegFpOffsetPattern = SW | (kRegister_fp_Code << kRsShift) |
- | (0 & kImm16Mask); // NOLINT |
+const Instr kSwRegFpOffsetPattern = |
+ SW | (Register::kCode_fp << kRsShift) | (0 & kImm16Mask); // NOLINT |
-const Instr kLwRegFpNegOffsetPattern = LW | (kRegister_fp_Code << kRsShift) |
- | (kNegOffset & kImm16Mask); // NOLINT |
+const Instr kLwRegFpNegOffsetPattern = LW | (Register::kCode_fp << kRsShift) | |
+ (kNegOffset & kImm16Mask); // NOLINT |
-const Instr kSwRegFpNegOffsetPattern = SW | (kRegister_fp_Code << kRsShift) |
- | (kNegOffset & kImm16Mask); // NOLINT |
+const Instr kSwRegFpNegOffsetPattern = SW | (Register::kCode_fp << kRsShift) | |
+ (kNegOffset & kImm16Mask); // NOLINT |
// A mask for the Rt register for push, pop, lw, sw instructions. |
const Instr kRtMask = kRtFieldMask; |
const Instr kLwSwInstrTypeMask = 0xffe00000; |
@@ -334,21 +312,21 @@ void Assembler::CodeTargetAlign() { |
Register Assembler::GetRtReg(Instr instr) { |
Register rt; |
- rt.code_ = (instr & kRtFieldMask) >> kRtShift; |
+ rt.reg_code = (instr & kRtFieldMask) >> kRtShift; |
return rt; |
} |
Register Assembler::GetRsReg(Instr instr) { |
Register rs; |
- rs.code_ = (instr & kRsFieldMask) >> kRsShift; |
+ rs.reg_code = (instr & kRsFieldMask) >> kRsShift; |
return rs; |
} |
Register Assembler::GetRdReg(Instr instr) { |
Register rd; |
- rd.code_ = (instr & kRdFieldMask) >> kRdShift; |
+ rd.reg_code = (instr & kRdFieldMask) >> kRdShift; |
return rd; |
} |
@@ -1942,14 +1920,14 @@ void Assembler::movn(Register rd, Register rs, Register rt) { |
void Assembler::movt(Register rd, Register rs, uint16_t cc) { |
Register rt; |
- rt.code_ = (cc & 0x0007) << 2 | 1; |
+ rt.reg_code = (cc & 0x0007) << 2 | 1; |
GenInstrRegister(SPECIAL, rs, rt, rd, 0, MOVCI); |
} |
void Assembler::movf(Register rd, Register rs, uint16_t cc) { |
Register rt; |
- rt.code_ = (cc & 0x0007) << 2 | 0; |
+ rt.reg_code = (cc & 0x0007) << 2 | 0; |
GenInstrRegister(SPECIAL, rs, rt, rd, 0, MOVCI); |
} |
@@ -2233,7 +2211,7 @@ void Assembler::movz_d(FPURegister fd, FPURegister fs, Register rt) { |
void Assembler::movt_s(FPURegister fd, FPURegister fs, uint16_t cc) { |
DCHECK(IsMipsArchVariant(kMips32r2)); |
FPURegister ft; |
- ft.code_ = (cc & 0x0007) << 2 | 1; |
+ ft.reg_code = (cc & 0x0007) << 2 | 1; |
GenInstrRegister(COP1, S, ft, fs, fd, MOVF); |
} |
@@ -2241,7 +2219,7 @@ void Assembler::movt_s(FPURegister fd, FPURegister fs, uint16_t cc) { |
void Assembler::movt_d(FPURegister fd, FPURegister fs, uint16_t cc) { |
DCHECK(IsMipsArchVariant(kMips32r2)); |
FPURegister ft; |
- ft.code_ = (cc & 0x0007) << 2 | 1; |
+ ft.reg_code = (cc & 0x0007) << 2 | 1; |
GenInstrRegister(COP1, D, ft, fs, fd, MOVF); |
} |
@@ -2249,7 +2227,7 @@ void Assembler::movt_d(FPURegister fd, FPURegister fs, uint16_t cc) { |
void Assembler::movf_s(FPURegister fd, FPURegister fs, uint16_t cc) { |
DCHECK(IsMipsArchVariant(kMips32r2)); |
FPURegister ft; |
- ft.code_ = (cc & 0x0007) << 2 | 0; |
+ ft.reg_code = (cc & 0x0007) << 2 | 0; |
GenInstrRegister(COP1, S, ft, fs, fd, MOVF); |
} |
@@ -2257,7 +2235,7 @@ void Assembler::movf_s(FPURegister fd, FPURegister fs, uint16_t cc) { |
void Assembler::movf_d(FPURegister fd, FPURegister fs, uint16_t cc) { |
DCHECK(IsMipsArchVariant(kMips32r2)); |
FPURegister ft; |
- ft.code_ = (cc & 0x0007) << 2 | 0; |
+ ft.reg_code = (cc & 0x0007) << 2 | 0; |
GenInstrRegister(COP1, D, ft, fs, fd, MOVF); |
} |