Chromium Code Reviews| Index: x86_decode.cc |
| =================================================================== |
| --- x86_decode.cc (revision 157) |
| +++ x86_decode.cc (working copy) |
| @@ -170,13 +170,10 @@ |
| idx = 256; |
| } |
| type = opcode_types[idx + byte]; |
| - bool found_mod_rm = false; |
|
Markus (顧孟勤)
2011/09/16 16:07:32
While currently unused, these statements actually
|
| bool found_group = false; |
| - bool found_sib = false; |
| unsigned char mod_rm = 0; |
| unsigned char sib = 0; |
| if (type & GROUP) { |
| - found_mod_rm = true; |
| found_group = true; |
| mod_rm = *insn_ptr; |
| if (mod_rm_ptr) { |
| @@ -209,7 +206,6 @@ |
| operand_width = 8; |
| } |
| if (type & MOD_RM) { |
| - found_mod_rm = true; |
| if (mod_rm_ptr) { |
| *mod_rm_ptr = (char *)insn_ptr; |
| } |
| @@ -233,7 +229,6 @@ |
| } |
| } else { |
| if ((rm & 0x7) == 4) { |
| - found_sib = true; |
| if (sib_ptr) { |
| *sib_ptr = (char *)insn_ptr; |
| } |