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

Side by Side Diff: src/trusted/validator_ragel/unreviewed/decoder-x86_32.rl

Issue 10031039: Add ragel validator to SCONS (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 8 years, 8 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) 2011 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2011 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 <elf.h>
9 #include <inttypes.h>
10 #include <stddef.h> 8 #include <stddef.h>
11 #include <stdio.h> 9 #include <stdio.h>
12 #include <stdlib.h> 10 #include <stdlib.h>
13 #include <string.h> 11 #include <string.h>
14 #include "decoder.h"
15 12
16 #undef TRUE 13 #include "native_client/src/shared/utils/types.h"
17 #define TRUE 1 14 #include "native_client/src/trusted/validator_ragel/unreviewed/decoder.h"
18 15
19 #undef FALSE 16 #include "native_client/src/trusted/validator_ragel/gen/decoder-x86_32-instructi on-consts.c"
20 #define FALSE 0
21
22 #include "decoder-x86_32-instruction-consts.c"
23 17
24 %%{ 18 %%{
25 machine x86_32_decoder; 19 machine x86_32_decoder;
26 alphtype unsigned char; 20 alphtype unsigned char;
27 21
28 include decode_x86_32 "decoder-x86_32-instruction.rl"; 22 include decode_x86_32 "decoder-x86_32-instruction.rl";
29 23
30 main := (one_instruction 24 main := (one_instruction
31 >{ 25 >{
32 begin = p; 26 begin = p;
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 143
150 /* Not used in ia32_mode. */ 144 /* Not used in ia32_mode. */
151 instruction.prefix.rex = 0; 145 instruction.prefix.rex = 0;
152 146
153 %% write init; 147 %% write init;
154 %% write exec; 148 %% write exec;
155 149
156 error_detected: 150 error_detected:
157 return result; 151 return result;
158 } 152 }
OLDNEW
« no previous file with comments | « src/trusted/validator_ragel/unreviewed/decoder-test.c ('k') | src/trusted/validator_ragel/unreviewed/decoder-x86_64.rl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698