Revision: 24710
Author:   [email protected]
Date:     Mon Oct 20 01:58:46 2014 UTC
Log:      X87: Make disassembler string tables read-only.

port r24672.

original commit message:

  Move them from .data to .rodata.

BUG=
[email protected]

Review URL: https://codereview.chromium.org/654263006

Patch from Chunyang Dai <[email protected]>.
https://code.google.com/p/v8/source/detail?r=24710

Modified:
 /branches/bleeding_edge/src/x87/disasm-x87.cc

=======================================
--- /branches/bleeding_edge/src/x87/disasm-x87.cc Sat Sep 20 05:08:58 2014 UTC +++ /branches/bleeding_edge/src/x87/disasm-x87.cc Mon Oct 20 01:58:46 2014 UTC
@@ -1698,17 +1698,17 @@
//------------------------------------------------------------------------------


-static const char* cpu_regs[8] = {
+static const char* const cpu_regs[8] = {
   "eax", "ecx", "edx", "ebx", "esp", "ebp", "esi", "edi"
 };


-static const char* byte_cpu_regs[8] = {
+static const char* const byte_cpu_regs[8] = {
   "al", "cl", "dl", "bl", "ah", "ch", "dh", "bh"
 };


-static const char* xmm_regs[8] = {
+static const char* const xmm_regs[8] = {
   "xmm0", "xmm1", "xmm2", "xmm3", "xmm4", "xmm5", "xmm6", "xmm7"
 };

--
--
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/d/optout.

Reply via email to