| OLD | NEW |
| (Empty) |
| 1 /* | |
| 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 | |
| 4 * found in the LICENSE file. | |
| 5 */ | |
| 6 | |
| 7 /* Define postcondition testers for testing the validator. */ | |
| 8 | |
| 9 #ifndef NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_REG_SFI_NC_POSTCONDS_H__ | |
| 10 #define NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_REG_SFI_NC_POSTCONDS_H__ | |
| 11 | |
| 12 #ifdef NCVAL_TESTING | |
| 13 | |
| 14 struct NaClInstIter; | |
| 15 struct NaClValidatorState; | |
| 16 | |
| 17 /* Checks if the postcondition "ZeroExtends(reg)" is generated for the | |
| 18 * current instruction. If so, a corresponding postcondition is added | |
| 19 * to the instruction. | |
| 20 */ | |
| 21 void NaClAddAssignsRegisterWithZeroExtendsPostconds( | |
| 22 struct NaClValidatorState* state); | |
| 23 | |
| 24 /* Checks if the postcondition "SafeAddress(reg)" is generated for the | |
| 25 * current instruction. If so, a corresponding postcondition is | |
| 26 * added to the instruction. | |
| 27 */ | |
| 28 void NaClAddLeaSafeAddressPostconds( | |
| 29 struct NaClValidatorState* state); | |
| 30 | |
| 31 #endif | |
| 32 | |
| 33 #endif /* NATIVE_CLIENT_SRC_TRUSTED_VALIDATOR_X86_NCVAL_REG_SFI_NC_POSTCONDS_H_
_ */ | |
| OLD | NEW |