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

Side by Side Diff: src/trusted/validator_ragel/unreviewed/dfa_validate_32.c

Issue 12226019: Move bitmap manipulation functions in bitmap.h (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 7 years, 10 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 /* Implement the Validator API for the x86-32 architecture. */ 7 /* Implement the Validator API for the x86-32 architecture. */
8 #include <errno.h> 8 #include <errno.h>
9 #include <string.h> 9 #include <string.h>
10 10
11 #include "native_client/src/shared/platform/nacl_check.h"
12 #include "native_client/src/trusted/validator_ragel/bitmap.h"
11 #include "native_client/src/trusted/validator_ragel/unreviewed/dfa_validate_comm on.h" 13 #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" 14 #include "native_client/src/trusted/validator_ragel/validator.h"
13 15
14 /* Be sure the correct compile flags are defined for this. */ 16 /* Be sure the correct compile flags are defined for this. */
15 #if NACL_ARCH(NACL_TARGET_ARCH) != NACL_x86 17 #if NACL_ARCH(NACL_TARGET_ARCH) != NACL_x86
16 # error("Can't compile, target is for x86-32") 18 # error("Can't compile, target is for x86-32")
17 #else 19 #else
18 # if NACL_TARGET_SUBARCH != 32 20 # if NACL_TARGET_SUBARCH != 32
19 # error("Can't compile, target is for x86-32") 21 # error("Can't compile, target is for x86-32")
20 # endif 22 # endif
21 #endif 23 #endif
22 24
(...skipping 221 matching lines...) Expand 10 before | Expand all | Expand 10 after
244 ValidatorCodeReplacement_x86_32, 246 ValidatorCodeReplacement_x86_32,
245 sizeof(NaClCPUFeaturesX86), 247 sizeof(NaClCPUFeaturesX86),
246 NaClSetAllCPUFeaturesX86, 248 NaClSetAllCPUFeaturesX86,
247 NaClGetCurrentCPUFeaturesX86, 249 NaClGetCurrentCPUFeaturesX86,
248 NaClFixCPUFeaturesX86, 250 NaClFixCPUFeaturesX86,
249 }; 251 };
250 252
251 const struct NaClValidatorInterface *NaClDfaValidatorCreate_x86_32(void) { 253 const struct NaClValidatorInterface *NaClDfaValidatorCreate_x86_32(void) {
252 return &validator; 254 return &validator;
253 } 255 }
OLDNEW
« no previous file with comments | « src/trusted/validator_ragel/gen/validator_x86_64.c ('k') | src/trusted/validator_ragel/unreviewed/dfa_validate_64.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698