Index: src/arm/assembler-arm-inl.h |
diff --git a/src/arm/assembler-arm-inl.h b/src/arm/assembler-arm-inl.h |
index 123013b0a06c473bc0c42a58ba9fc90eff4c7eac..0f9630b34154130475b9b1293a8d13e08fc1ba55 100644 |
--- a/src/arm/assembler-arm-inl.h |
+++ b/src/arm/assembler-arm-inl.h |
@@ -48,29 +48,17 @@ namespace internal { |
int Register::NumAllocatableRegisters() { |
- if (CpuFeatures::IsSupported(VFP2)) { |
- return kMaxNumAllocatableRegisters; |
- } else { |
- return kMaxNumAllocatableRegisters - kGPRsPerNonVFP2Double; |
- } |
+ return kMaxNumAllocatableRegisters; |
} |
int DwVfpRegister::NumRegisters() { |
- if (CpuFeatures::IsSupported(VFP2)) { |
- return CpuFeatures::IsSupported(VFP32DREGS) ? 32 : 16; |
- } else { |
- return 1; |
- } |
+ return CpuFeatures::IsSupported(VFP32DREGS) ? 32 : 16; |
} |
int DwVfpRegister::NumAllocatableRegisters() { |
- if (CpuFeatures::IsSupported(VFP2)) { |
- return NumRegisters() - kNumReservedRegisters; |
- } else { |
- return 1; |
- } |
+ return NumRegisters() - kNumReservedRegisters; |
} |