Index: src/arm/assembler-arm-inl.h |
diff --git a/src/arm/assembler-arm-inl.h b/src/arm/assembler-arm-inl.h |
index acd61feff89711daf952ae3714efc7c88a030545..7b79542e0c1ec55191550687a7d4963756fe9138 100644 |
--- a/src/arm/assembler-arm-inl.h |
+++ b/src/arm/assembler-arm-inl.h |
@@ -47,6 +47,15 @@ namespace v8 { |
namespace internal { |
+ArmDoubleRegister ArmDoubleRegister::FromAllocationIndex(int index) { |
+ if (CpuFeatures::IsSupported(VFP2)) { |
+ return DwVfpRegister::FromAllocationIndex(index); |
+ } else { |
+ return SoftFloatRegister::FromAllocationIndex(index); |
+ } |
+} |
+ |
+ |
int DwVfpRegister::ToAllocationIndex(DwVfpRegister reg) { |
ASSERT(!reg.is(kDoubleRegZero)); |
ASSERT(!reg.is(kScratchDoubleReg)); |