Revision: 22902
Author:   [email protected]
Date:     Wed Aug  6 08:19:36 2014 UTC
Log:      Fix disassembly of sar(_, imm8)

[email protected]

Review URL: https://codereview.chromium.org/442003002
http://code.google.com/p/v8/source/detail?r=22902

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

=======================================
--- /branches/bleeding_edge/src/ia32/disasm-ia32.cc Mon Aug 4 11:34:54 2014 UTC +++ /branches/bleeding_edge/src/ia32/disasm-ia32.cc Wed Aug 6 08:19:36 2014 UTC
@@ -606,7 +606,7 @@
   if (op == 0xD1) {
     imm8 = 1;
   } else if (op == 0xC1) {
-    imm8 = *(data + 2);
+    imm8 = *(data + 1);
     count++;
   } else if (op == 0xD3) {
     // Shift/rotate by cl.
=======================================
--- /branches/bleeding_edge/src/x87/disasm-x87.cc Mon Aug 4 11:34:54 2014 UTC +++ /branches/bleeding_edge/src/x87/disasm-x87.cc Wed Aug 6 08:19:36 2014 UTC
@@ -606,7 +606,7 @@
   if (op == 0xD1) {
     imm8 = 1;
   } else if (op == 0xC1) {
-    imm8 = *(data + 2);
+    imm8 = *(data + 1);
     count++;
   } else if (op == 0xD3) {
     // Shift/rotate by cl.

--
--
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