Upstream version 11.39.266.0
[platform/framework/web/crosswalk.git] / src / native_client / src / trusted / validator / x86 / ncval_reg_sfi / nc_illegal.h
1 /*
2  * Copyright (c) 2011 The Native Client Authors. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be
4  * found in the LICENSE file.
5  */
6
7 /* Validator to check that instructions are in the legal subset.
8  *
9  * Note: The following functions are used to define a validator function
10  * for collecting this information. See header file ncvalidator_iter.h
11  * for more information on how to register these functions as a validator
12  * function.
13  */
14
15 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_REG_SFI_NC_ILLEGAL_H__
16 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_REG_SFI_NC_ILLEGAL_H__
17
18 /* Defines a validator state. */
19 struct NaClValidatorState;
20
21 /* Defines an instruction iterator that processes a code segment. */
22 struct NaClInstIter;
23
24 /* Validates that the instruction is nacl legal. */
25 void NaClValidateInstructionLegal(struct NaClValidatorState* state);
26
27 #endif  /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_REG_SFI_NC_ILLEGAL_H__ */