Index: src/mips/assembler-mips-inl.h |
diff --git a/src/mips/assembler-mips-inl.h b/src/mips/assembler-mips-inl.h |
index 8e7a1f5e9167bb14b6c8e2d9d64f1c406797012c..f4bddf54613731d9d5a002e09412bf3c62fd1ef3 100644 |
--- a/src/mips/assembler-mips-inl.h |
+++ b/src/mips/assembler-mips-inl.h |
@@ -84,6 +84,36 @@ |
} |
+int Register::NumAllocatableRegisters() { |
+ return kMaxNumAllocatableRegisters; |
+} |
+ |
+ |
+int DoubleRegister::NumRegisters() { |
+ return FPURegister::kMaxNumRegisters; |
+} |
+ |
+ |
+int DoubleRegister::NumAllocatableRegisters() { |
+ return FPURegister::kMaxNumAllocatableRegisters; |
+} |
+ |
+ |
+int DoubleRegister::NumAllocatableAliasedRegisters() { |
+ return NumAllocatableRegisters(); |
+} |
+ |
+ |
+int FPURegister::ToAllocationIndex(FPURegister reg) { |
+ DCHECK(reg.code() % 2 == 0); |
+ DCHECK(reg.code() / 2 < kMaxNumAllocatableRegisters); |
+ DCHECK(reg.is_valid()); |
+ DCHECK(!reg.is(kDoubleRegZero)); |
+ DCHECK(!reg.is(kLithiumScratchDouble)); |
+ return (reg.code() / 2); |
+} |
+ |
+ |
// ----------------------------------------------------------------------------- |
// RelocInfo. |