| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 1 #ifndef X86_DECODE_H__ | 5 #ifndef X86_DECODE_H__ |
| 2 #define X86_DECODE_H__ | 6 #define X86_DECODE_H__ |
| 3 namespace playground { | 7 namespace playground { |
| 4 enum { | 8 enum { |
| 5 REX_B = 0x01, | 9 REX_B = 0x01, |
| 6 REX_X = 0x02, | 10 REX_X = 0x02, |
| 7 REX_R = 0x04, | 11 REX_R = 0x04, |
| 8 REX_W = 0x08 | 12 REX_W = 0x08 |
| 9 }; | 13 }; |
| 10 | 14 |
| 11 unsigned short next_inst(const char **ip, bool is64bit, bool *has_prefix = 0, | 15 unsigned short next_inst(const char **ip, bool is64bit, bool *has_prefix = 0, |
| 12 char **rex_ptr = 0, char **mod_rm_ptr = 0, | 16 char **rex_ptr = 0, char **mod_rm_ptr = 0, |
| 13 char **sib_ptr = 0, bool *is_group = 0); | 17 char **sib_ptr = 0, bool *is_group = 0); |
| 14 } // namespace | 18 } // namespace |
| 15 #endif // X86_DECODE_H__ | 19 #endif // X86_DECODE_H__ |
| OLD | NEW |