| Index: src/mips64/assembler-mips64-inl.h
|
| diff --git a/src/mips64/assembler-mips64-inl.h b/src/mips64/assembler-mips64-inl.h
|
| index cb41c9f65a48ab98cc1c97ddd1ec41fcaa9d2047..16ca33a9f3440c6de6a40f2d266c2eecf21af456 100644
|
| --- a/src/mips64/assembler-mips64-inl.h
|
| +++ b/src/mips64/assembler-mips64-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.
|
|
|
|
|