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

Side by Side Diff: src/trusted/validator_ragel/gen/validator_x86_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 /* native_client/src/trusted/validator_ragel/gen/validator_x86_32.c 1 /* native_client/src/trusted/validator_ragel/gen/validator_x86_32.c
2 * THIS FILE IS AUTO-GENERATED. DO NOT EDIT. 2 * THIS FILE IS AUTO-GENERATED. DO NOT EDIT.
3 * Compiled for ia32 mode. 3 * Compiled for ia32 mode.
4 */ 4 */
5 5
6 /* 6 /*
7 * This is the core of ia32-mode validator. Please note that this file 7 * This is the core of ia32-mode validator. Please note that this file
8 * combines ragel machine description and C language actions. Please read 8 * combines ragel machine description and C language actions. Please read
9 * validator_internals.html first to understand how the whole thing is built: 9 * validator_internals.html first to understand how the whole thing is built:
10 * it explains how the byte sequences are constructed, what constructs like 10 * it explains how the byte sequences are constructed, what constructs like
11 * “@{}” or “REX_WRX?” mean, etc. 11 * “@{}” or “REX_WRX?” mean, etc.
12 */ 12 */
13 13
14 #include <assert.h> 14 #include <assert.h>
15 #include <errno.h> 15 #include <errno.h>
16 #include <stddef.h> 16 #include <stddef.h>
17 #include <stdio.h> 17 #include <stdio.h>
18 #include <stdlib.h> 18 #include <stdlib.h>
19 #include <string.h> 19 #include <string.h>
20 20
21 #include "native_client/src/trusted/validator_ragel/bitmap.h"
21 #include "native_client/src/trusted/validator_ragel/unreviewed/validator_interna l.h" 22 #include "native_client/src/trusted/validator_ragel/unreviewed/validator_interna l.h"
22 23
23 /* Ignore this information: it's not used by security model in IA32 mode. */ 24 /* Ignore this information: it's not used by security model in IA32 mode. */
24 #undef GET_VEX_PREFIX3 25 #undef GET_VEX_PREFIX3
25 #define GET_VEX_PREFIX3 0 26 #define GET_VEX_PREFIX3 0
26 #undef SET_VEX_PREFIX3 27 #undef SET_VEX_PREFIX3
27 #define SET_VEX_PREFIX3(P) 28 #define SET_VEX_PREFIX3(P)
28 29
29 30
30 31
(...skipping 9159 matching lines...) Expand 10 before | Expand all | Expand 10 after
9190 */ 9191 */
9191 result &= ProcessInvalidJumpTargets(data, size, valid_targets, jump_dests, 9192 result &= ProcessInvalidJumpTargets(data, size, valid_targets, jump_dests,
9192 user_callback, callback_data); 9193 user_callback, callback_data);
9193 9194
9194 /* We only use malloc for a large code sequences */ 9195 /* We only use malloc for a large code sequences */
9195 if (jump_dests != jump_dests_small) free(jump_dests); 9196 if (jump_dests != jump_dests_small) free(jump_dests);
9196 if (valid_targets != valid_targets_small) free(valid_targets); 9197 if (valid_targets != valid_targets_small) free(valid_targets);
9197 if (!result) errno = EINVAL; 9198 if (!result) errno = EINVAL;
9198 return result; 9199 return result;
9199 } 9200 }
OLDNEW
« no previous file with comments | « src/trusted/validator_ragel/bitmap.h ('k') | src/trusted/validator_ragel/gen/validator_x86_64.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698