From: ulan@chromium.org Date: Wed, 30 Jan 2013 09:55:49 +0000 (+0000) Subject: Make DwVfpRegister::AllocationIndexToString use VFPRegister::Name X-Git-Tag: upstream/4.7.83~15174 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=3a23c2f7df19dfe3a56679ecd3824d8ce5e5fe83;p=platform%2Fupstream%2Fv8.git Make DwVfpRegister::AllocationIndexToString use VFPRegister::Name This also fixes a bug caused by a missing comma after "d13" in the 'names' array in AllocationIndexToString. BUG=none Review URL: https://chromiumcodereview.appspot.com/12082044 Patch from Hans Wennborg . git-svn-id: http://v8.googlecode.com/svn/branches/bleeding_edge@13548 ce2b1a6d-e550-0410-aec6-3dcde31c8c00 --- diff --git a/src/arm/assembler-arm.cc b/src/arm/assembler-arm.cc index ead6674..8b4d007 100644 --- a/src/arm/assembler-arm.cc +++ b/src/arm/assembler-arm.cc @@ -101,42 +101,7 @@ const char* DwVfpRegister::AllocationIndexToString(int index) { if (index >= kDoubleRegZero.code()) index += kNumReservedRegisters; - // TODO(hans): Maybe this could just use VFPRegisters::Name()? - const char* const names[] = { - "d0", - "d1", - "d2", - "d3", - "d4", - "d5", - "d6", - "d7", - "d8", - "d9", - "d10", - "d11", - "d12", - "d13" - "d14", - "d15", - "d16", - "d17", - "d18", - "d19", - "d20", - "d21", - "d22", - "d23", - "d24", - "d25", - "d26", - "d27", - "d28", - "d29", - "d30", - "d31" - }; - return names[index]; + return VFPRegisters::Name(index, true); } else { ASSERT(index == 0); return "sfpd0";