| 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_TESTS_COMMON_REGISTER_SET_H_ | 7 #ifndef NATIVE_CLIENT_TESTS_COMMON_REGISTER_SET_H_ |
| 8 #define NATIVE_CLIENT_TESTS_COMMON_REGISTER_SET_H_ | 8 #define NATIVE_CLIENT_TESTS_COMMON_REGISTER_SET_H_ |
| 9 | 9 |
| 10 #include "native_client/src/include/nacl_macros.h" | 10 #include "native_client/src/include/nacl_macros.h" |
| (...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 /* Initialize the register set with arbitrary test data. */ | 239 /* Initialize the register set with arbitrary test data. */ |
| 240 void RegsFillTestValues(struct NaClSignalContext *regs); | 240 void RegsFillTestValues(struct NaClSignalContext *regs); |
| 241 | 241 |
| 242 /* Adjust registers to follow the sandbox's constraints. */ | 242 /* Adjust registers to follow the sandbox's constraints. */ |
| 243 void RegsApplySandboxConstraints(struct NaClSignalContext *regs); | 243 void RegsApplySandboxConstraints(struct NaClSignalContext *regs); |
| 244 | 244 |
| 245 /* This compares for equality all registers saved by REGS_SAVER_FUNC. */ | 245 /* This compares for equality all registers saved by REGS_SAVER_FUNC. */ |
| 246 void RegsAssertEqual(const struct NaClSignalContext *actual, | 246 void RegsAssertEqual(const struct NaClSignalContext *actual, |
| 247 const struct NaClSignalContext *expected); | 247 const struct NaClSignalContext *expected); |
| 248 | 248 |
| 249 /* Zero out registers that are clobbered by function calls. */ |
| 250 void RegsUnsetNonCalleeSavedRegisters(struct NaClSignalContext *regs); |
| 251 |
| 249 #endif | 252 #endif |
| OLD | NEW |