Revision: 13548
Author:   [email protected]
Date:     Wed Jan 30 01:55:49 2013
Log:      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 <[email protected]>.
http://code.google.com/p/v8/source/detail?r=13548

Modified:
 /branches/bleeding_edge/src/arm/assembler-arm.cc

=======================================
--- /branches/bleeding_edge/src/arm/assembler-arm.cc Wed Jan 23 08:29:48 2013 +++ /branches/bleeding_edge/src/arm/assembler-arm.cc Wed Jan 30 01:55:49 2013
@@ -101,42 +101,7 @@
     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";

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to