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

Side by Side Diff: src/trusted/validator_ragel/gen/validator_x86_32.c

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 /* 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 #include <assert.h> 6 #include <assert.h>
7 #include <errno.h> 7 #include <errno.h>
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdio.h> 9 #include <stdio.h>
10 #include <stdlib.h> 10 #include <stdlib.h>
11 #include <string.h> 11 #include <string.h>
12 12
13 #include "native_client/src/trusted/validator_ragel/unreviewed/validator_interna l.h" 13 #include "native_client/src/trusted/validator_ragel/validator_internal.h"
14 14
15 /* Ignore this information: it's not used by security model in IA32 mode. */ 15 /* Ignore this information: it's not used by security model in IA32 mode. */
16 #undef GET_VEX_PREFIX3 16 #undef GET_VEX_PREFIX3
17 #define GET_VEX_PREFIX3 0 17 #define GET_VEX_PREFIX3 0
18 #undef SET_VEX_PREFIX3 18 #undef SET_VEX_PREFIX3
19 #define SET_VEX_PREFIX3(P) 19 #define SET_VEX_PREFIX3(P)
20 20
21 21
22 22
23 23
(...skipping 5905 matching lines...) Expand 10 before | Expand all | Expand 10 after
5929 goto tr16; 5929 goto tr16;
5930 tr363: 5930 tr363:
5931 { SET_CPU_FEATURE(CPUFeature_AVX); } 5931 { SET_CPU_FEATURE(CPUFeature_AVX); }
5932 goto st196; 5932 goto st196;
5933 st196: 5933 st196:
5934 if ( ++( current_position) == ( end_of_bundle) ) 5934 if ( ++( current_position) == ( end_of_bundle) )
5935 goto _test_eof196; 5935 goto _test_eof196;
5936 case 196: 5936 case 196:
5937 switch( (*( current_position)) ) { 5937 switch( (*( current_position)) ) {
5938 case 4u: goto st35; 5938 case 4u: goto st35;
5939 case 5u: goto st36;
5939 case 12u: goto st35; 5940 case 12u: goto st35;
5941 case 13u: goto st36;
5940 case 20u: goto st35; 5942 case 20u: goto st35;
5943 case 21u: goto st36;
5941 case 28u: goto st35; 5944 case 28u: goto st35;
5945 case 29u: goto st36;
5942 case 36u: goto st35; 5946 case 36u: goto st35;
5947 case 37u: goto st36;
5943 case 44u: goto st35; 5948 case 44u: goto st35;
5949 case 45u: goto st36;
5944 case 52u: goto st35; 5950 case 52u: goto st35;
5951 case 53u: goto st36;
5945 case 60u: goto st35; 5952 case 60u: goto st35;
5953 case 61u: goto st36;
5946 case 68u: goto st41; 5954 case 68u: goto st41;
5947 case 76u: goto st41; 5955 case 76u: goto st41;
5948 case 84u: goto st41; 5956 case 84u: goto st41;
5949 case 92u: goto st41; 5957 case 92u: goto st41;
5950 case 100u: goto st41; 5958 case 100u: goto st41;
5951 case 108u: goto st41; 5959 case 108u: goto st41;
5952 case 116u: goto st41; 5960 case 116u: goto st41;
5953 case 124u: goto st41; 5961 case 124u: goto st41;
5954 case 132u: goto st42; 5962 case 132u: goto st42;
5955 case 140u: goto st42; 5963 case 140u: goto st42;
5956 case 148u: goto st42; 5964 case 148u: goto st42;
5957 case 156u: goto st42; 5965 case 156u: goto st42;
5958 case 164u: goto st42; 5966 case 164u: goto st42;
5959 case 172u: goto st42; 5967 case 172u: goto st42;
5960 case 180u: goto st42; 5968 case 180u: goto st42;
5961 case 188u: goto st42; 5969 case 188u: goto st42;
5962 } 5970 }
5963 » if ( (*( current_position)) < 38u ) { 5971 » if ( (*( current_position)) < 64u ) {
5964 » » if ( (*( current_position)) < 14u ) { 5972 » » if ( (*( current_position)) <= 63u )
5965 » » » if ( (*( current_position)) > 3u ) {
5966 » » » » if ( 6u <= (*( current_position)) && (*( current _position)) <= 11u )
5967 » » » » » goto st10;
5968 » » » } else
5969 » » » » goto st10;
5970 » » } else if ( (*( current_position)) > 19u ) {
5971 » » » if ( (*( current_position)) > 27u ) {
5972 » » » » if ( 30u <= (*( current_position)) && (*( curren t_position)) <= 35u )
5973 » » » » » goto st10;
5974 » » » } else if ( (*( current_position)) >= 22u )
5975 » » » » goto st10;
5976 » » } else
5977 goto st10; 5973 goto st10;
5978 » } else if ( (*( current_position)) > 43u ) { 5974 » } else if ( (*( current_position)) > 127u ) {
5979 » » if ( (*( current_position)) < 62u ) { 5975 » » if ( 128u <= (*( current_position)) && (*( current_position)) <= 191u )
5980 » » » if ( (*( current_position)) > 51u ) { 5976 » » » goto st36;
5981 » » » » if ( 54u <= (*( current_position)) && (*( curren t_position)) <= 59u )
5982 » » » » » goto st10;
5983 » » » } else if ( (*( current_position)) >= 46u )
5984 » » » » goto st10;
5985 » » } else if ( (*( current_position)) > 63u ) {
5986 » » » if ( (*( current_position)) > 127u ) {
5987 » » » » if ( 192u <= (*( current_position)) )
5988 » » » » » goto tr16;
5989 » » » } else if ( (*( current_position)) >= 64u )
5990 » » » » goto st40;
5991 » » } else
5992 » » » goto st10;
5993 } else 5977 } else
5994 » » goto st10; 5978 » » goto st40;
5995 » goto st36; 5979 » goto tr16;
5996 tr343: 5980 tr343:
5997 { 5981 {
5998 SET_VEX_PREFIX3(*current_position); 5982 SET_VEX_PREFIX3(*current_position);
5999 } 5983 }
6000 goto st197; 5984 goto st197;
6001 st197: 5985 st197:
6002 if ( ++( current_position) == ( end_of_bundle) ) 5986 if ( ++( current_position) == ( end_of_bundle) )
6003 goto _test_eof197; 5987 goto _test_eof197;
6004 case 197: 5988 case 197:
6005 switch( (*( current_position)) ) { 5989 switch( (*( current_position)) ) {
(...skipping 3245 matching lines...) Expand 10 before | Expand all | Expand 10 after
9251 user_callback, callback_data); 9235 user_callback, callback_data);
9252 9236
9253 /* We only use malloc for a large code sequences */ 9237 /* We only use malloc for a large code sequences */
9254 if (size > sizeof valid_targets_small) { 9238 if (size > sizeof valid_targets_small) {
9255 free(jump_dests); 9239 free(jump_dests);
9256 free(valid_targets); 9240 free(valid_targets);
9257 } 9241 }
9258 if (!result) errno = EINVAL; 9242 if (!result) errno = EINVAL;
9259 return result; 9243 return result;
9260 } 9244 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698