| 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 /* Implement the Validator API for the x86-64 architecture. */ | 7 /* Implement the Validator API for the x86-64 architecture. */ |
| 8 #include <errno.h> | 8 #include <errno.h> |
| 9 #include <string.h> | 9 #include <string.h> |
| 10 | 10 |
| 11 #include "native_client/src/trusted/validator_ragel/unreviewed/dfa_validate_comm
on.h" | 11 #include "native_client/src/trusted/validator_ragel/unreviewed/dfa_validate_comm
on.h" |
| 12 #include "native_client/src/trusted/validator_ragel/unreviewed/validator_interna
l.h" | 12 #include "native_client/src/trusted/validator_ragel/validator_internal.h" |
| 13 | 13 |
| 14 /* Be sure the correct compile flags are defined for this. */ | 14 /* Be sure the correct compile flags are defined for this. */ |
| 15 #if NACL_ARCH(NACL_TARGET_ARCH) != NACL_x86 | 15 #if NACL_ARCH(NACL_TARGET_ARCH) != NACL_x86 |
| 16 # error("Can't compile, target is for x86-64") | 16 # error("Can't compile, target is for x86-64") |
| 17 #else | 17 #else |
| 18 # if NACL_TARGET_SUBARCH != 64 | 18 # if NACL_TARGET_SUBARCH != 64 |
| 19 # error("Can't compile, target is for x86-64") | 19 # error("Can't compile, target is for x86-64") |
| 20 # endif | 20 # endif |
| 21 #endif | 21 #endif |
| 22 | 22 |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 154 | 154 |
| 155 static const struct NaClValidatorInterface validator = { | 155 static const struct NaClValidatorInterface validator = { |
| 156 ApplyDfaValidator_x86_64, | 156 ApplyDfaValidator_x86_64, |
| 157 ValidatorCodeCopy_x86_64, | 157 ValidatorCodeCopy_x86_64, |
| 158 ValidatorCodeReplacement_x86_64, | 158 ValidatorCodeReplacement_x86_64, |
| 159 }; | 159 }; |
| 160 | 160 |
| 161 const struct NaClValidatorInterface *NaClDfaValidatorCreate_x86_64() { | 161 const struct NaClValidatorInterface *NaClDfaValidatorCreate_x86_64() { |
| 162 return &validator; | 162 return &validator; |
| 163 } | 163 } |
| OLD | NEW |