Index: src/mips/assembler-mips-inl.h |
diff --git a/src/mips/assembler-mips-inl.h b/src/mips/assembler-mips-inl.h |
index 0788e73ef692db892805f2df5c6830e03b13b303..cc215091e37b7cb37ca766b8b7b936cac302b2f7 100644 |
--- a/src/mips/assembler-mips-inl.h |
+++ b/src/mips/assembler-mips-inl.h |
@@ -30,7 +30,7 @@ |
// The original source code covered by the above license above has been |
// modified significantly by Google Inc. |
-// Copyright 2011 the V8 project authors. All rights reserved. |
+// Copyright 2012 the V8 project authors. All rights reserved. |
#ifndef V8_MIPS_ASSEMBLER_MIPS_INL_H_ |
@@ -78,6 +78,16 @@ bool Operand::is_reg() const { |
} |
+int FPURegister::ToAllocationIndex(FPURegister reg) { |
+ ASSERT(reg.code() % 2 == 0); |
+ ASSERT(reg.code() / 2 < kNumAllocatableRegisters); |
+ ASSERT(reg.is_valid()); |
+ ASSERT(!reg.is(kDoubleRegZero)); |
+ ASSERT(!reg.is(kLithiumScratchDouble)); |
+ return (reg.code() / 2); |
+} |
+ |
+ |
// ----------------------------------------------------------------------------- |
// RelocInfo. |