Index: src/mips/assembler-mips-inl.h |
diff --git a/src/mips/assembler-mips-inl.h b/src/mips/assembler-mips-inl.h |
index 0d4576d85cf2881b3c98208521f652e4d5fbf31f..01f33a560b65a33880de9fc3a3b408bc7fe1237c 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. |