| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. | 2 * Copyright (c) 2012 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can be | 3 * Use of this source code is governed by a BSD-style license that can be |
| 4 * found in the LICENSE file. | 4 * found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_RAGEL_DECODER_H_ | 7 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_RAGEL_DECODER_H_ |
| 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_RAGEL_DECODER_H_ | 8 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_RAGEL_DECODER_H_ |
| 9 | 9 |
| 10 #include "native_client/src/shared/utils/types.h" |
| 10 #include "native_client/src/trusted/validator/x86/nacl_cpuid.h" | 11 #include "native_client/src/trusted/validator/x86/nacl_cpuid.h" |
| 11 | 12 |
| 12 EXTERN_C_BEGIN | 13 EXTERN_C_BEGIN |
| 13 | 14 |
| 14 enum operand_type { | 15 enum operand_type { |
| 15 OperandSize2bit, /* See VPERMIL2Px instruction for description. */ | 16 OperandSize2bit, /* See VPERMIL2Px instruction for description. */ |
| 16 OperandSize8bit, | 17 OperandSize8bit, |
| 17 OperandSize16bit, | 18 OperandSize16bit, |
| 18 OperandSize32bit, | 19 OperandSize32bit, |
| 19 OperandSize64bit, | 20 OperandSize64bit, |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 process_instruction_func process_instruction, | 121 process_instruction_func process_instruction, |
| 121 process_decoding_error_func process_error, void *userdata); | 122 process_decoding_error_func process_error, void *userdata); |
| 122 | 123 |
| 123 int DecodeChunkIA32(const uint8_t *data, size_t size, | 124 int DecodeChunkIA32(const uint8_t *data, size_t size, |
| 124 process_instruction_func process_instruction, | 125 process_instruction_func process_instruction, |
| 125 process_decoding_error_func process_error, void *userdata); | 126 process_decoding_error_func process_error, void *userdata); |
| 126 | 127 |
| 127 EXTERN_C_END | 128 EXTERN_C_END |
| 128 | 129 |
| 129 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_RAGEL_DECODER_H_ */ | 130 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_RAGEL_DECODER_H_ */ |
| OLD | NEW |