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

Side by Side Diff: src/trusted/validator_ragel/validator_x86_32.rl

Issue 11000033: Move validator_x86_XX.rl out of unreviewed. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 2 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 #include <assert.h> 7 #include <assert.h>
8 #include <errno.h> 8 #include <errno.h>
9 #include <stddef.h> 9 #include <stddef.h>
10 #include <stdio.h> 10 #include <stdio.h>
11 #include <stdlib.h> 11 #include <stdlib.h>
12 #include <string.h> 12 #include <string.h>
13 13
14 #include "native_client/src/trusted/validator_ragel/unreviewed/validator_interna l.h" 14 #include "native_client/src/trusted/validator_ragel/validator_internal.h"
15 15
16 /* Ignore this information: it's not used by security model in IA32 mode. */ 16 /* Ignore this information: it's not used by security model in IA32 mode. */
17 #undef GET_VEX_PREFIX3 17 #undef GET_VEX_PREFIX3
18 #define GET_VEX_PREFIX3 0 18 #define GET_VEX_PREFIX3 0
19 #undef SET_VEX_PREFIX3 19 #undef SET_VEX_PREFIX3
20 #define SET_VEX_PREFIX3(P) 20 #define SET_VEX_PREFIX3(P)
21 21
22 %%{ 22 %%{
23 machine x86_32_validator; 23 machine x86_32_validator;
24 alphtype unsigned char; 24 alphtype unsigned char;
(...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 user_callback, callback_data); 185 user_callback, callback_data);
186 186
187 /* We only use malloc for a large code sequences */ 187 /* We only use malloc for a large code sequences */
188 if (size > sizeof valid_targets_small) { 188 if (size > sizeof valid_targets_small) {
189 free(jump_dests); 189 free(jump_dests);
190 free(valid_targets); 190 free(valid_targets);
191 } 191 }
192 if (!result) errno = EINVAL; 192 if (!result) errno = EINVAL;
193 return result; 193 return result;
194 } 194 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698