Index: src/mips/assembler-mips.cc |
diff --git a/src/mips/assembler-mips.cc b/src/mips/assembler-mips.cc |
index 793af73ca788b70174d5beda1fb3e974fef7166e..a77d796584fcdc52d0c6cf85801a913f1cf3e87a 100644 |
--- a/src/mips/assembler-mips.cc |
+++ b/src/mips/assembler-mips.cc |
@@ -73,6 +73,33 @@ static uint64_t CpuFeaturesImpliedByCompiler() { |
} |
+const char* DoubleRegister::AllocationIndexToString(int index) { |
+ if (CpuFeatures::IsSupported(FPU)) { |
+ ASSERT(index >= 0 && index < kMaxNumAllocatableRegisters); |
+ const char* const names[] = { |
+ "f0", |
+ "f2", |
+ "f4", |
+ "f6", |
+ "f8", |
+ "f10", |
+ "f12", |
+ "f14", |
+ "f16", |
+ "f18", |
+ "f20", |
+ "f22", |
+ "f24", |
+ "f26" |
+ }; |
+ return names[index]; |
+ } else { |
+ ASSERT(index == 0); |
+ return "sfpd0"; |
+ } |
+} |
+ |
+ |
void CpuFeatures::Probe() { |
unsigned standard_features = (OS::CpuFeaturesImpliedByPlatform() | |
CpuFeaturesImpliedByCompiler()); |