| 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 #include "x86_decode.h" | 5 #include "x86_decode.h" |
| 2 | 6 |
| 3 namespace playground { | 7 namespace playground { |
| 4 | 8 |
| 5 #if defined(__x86_64__) || defined(__i386__) | 9 #if defined(__x86_64__) || defined(__i386__) |
| 6 unsigned short next_inst(const char **ip, bool is64bit, bool *has_prefix, | 10 unsigned short next_inst(const char **ip, bool is64bit, bool *has_prefix, |
| 7 char **rex_ptr, char **mod_rm_ptr, char **sib_ptr, | 11 char **rex_ptr, char **mod_rm_ptr, char **sib_ptr, |
| 8 bool *is_group) { | 12 bool *is_group) { |
| 9 enum { | 13 enum { |
| 10 BYTE_OP = (1<<1), // 0x02 | 14 BYTE_OP = (1<<1), // 0x02 |
| (...skipping 286 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 297 } | 301 } |
| 298 if (is_group) { | 302 if (is_group) { |
| 299 *is_group = found_group; | 303 *is_group = found_group; |
| 300 } | 304 } |
| 301 *ip = reinterpret_cast<const char *>(insn_ptr); | 305 *ip = reinterpret_cast<const char *>(insn_ptr); |
| 302 return insn; | 306 return insn; |
| 303 } | 307 } |
| 304 #endif | 308 #endif |
| 305 | 309 |
| 306 } // namespace | 310 } // namespace |
| OLD | NEW |