Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(149)

Side by Side Diff: src/trusted/validator_ragel/unreviewed/decoder.h

Issue 10134056: Refactor the process of choosing validators. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client
Patch Set: rebased, added a todo for NaClCopyCode Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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_ */
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698