| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "x86_decode.h" | 5 #include "x86_decode.h" |
| 6 | 6 |
| 7 namespace playground { | 7 namespace playground { |
| 8 | 8 |
| 9 #if defined(__x86_64__) || defined(__i386__) | 9 #if defined(__x86_64__) || defined(__i386__) |
| 10 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, |
| (...skipping 285 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 296 break; | 296 break; |
| 297 case MEM_ABS: | 297 case MEM_ABS: |
| 298 insn_ptr += address_width; | 298 insn_ptr += address_width; |
| 299 break; | 299 break; |
| 300 } | 300 } |
| 301 } | 301 } |
| 302 if (is_group) { | 302 if (is_group) { |
| 303 *is_group = found_group; | 303 *is_group = found_group; |
| 304 } | 304 } |
| 305 *ip = reinterpret_cast<const char *>(insn_ptr); | 305 *ip = reinterpret_cast<const char *>(insn_ptr); |
| 306 (void)found_mod_rm; |
| 307 (void)found_sib; |
| 306 return insn; | 308 return insn; |
| 307 } | 309 } |
| 308 #endif | 310 #endif |
| 309 | 311 |
| 310 } // namespace | 312 } // namespace |
| OLD | NEW |