Index: src/arm/constants-arm.cc |
=================================================================== |
--- src/arm/constants-arm.cc (revision 3292) |
+++ src/arm/constants-arm.cc (working copy) |
@@ -66,6 +66,7 @@ |
return result; |
} |
+ |
// Support for VFP registers s0 to s31 (d0 to d15). |
// Note that "sN:sM" is the same as "dN/2" |
// These register names are defined in a way to match the native disassembler |
@@ -76,19 +77,16 @@ |
"s16", "s17", "s18", "s19", "s20", "s21", "s22", "s23", |
"s24", "s25", "s26", "s27", "s28", "s29", "s30", "s31", |
"d0", "d1", "d2", "d3", "d4", "d5", "d6", "d7", |
- "d8", "d9", "d10", "d11", "d12", "d13", "d14", "d15", |
+ "d8", "d9", "d10", "d11", "d12", "d13", "d14", "d15" |
}; |
+ |
const char* VFPRegisters::Name(int reg) { |
- const char* result; |
- if ((0 <= reg) && (reg < kNumVFPRegisters)) { |
- result = names_[reg]; |
- } else { |
- result = "no_vfp_reg"; |
- } |
- return result; |
+ ASSERT((0 <= reg) && (reg < kNumVFPRegisters)); |
+ return names_[reg]; |
} |
+ |
int Registers::Number(const char* name) { |
// Look through the canonical names. |
for (int i = 0; i < kNumRegisters; i++) { |