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

Side by Side Diff: deps/third_party/ragel/01-ragel-6.7.GT2.patch

Issue 10641004: Speedup the validator-x86_64.c compilation by 15% (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/
Patch Set: Created 8 years, 6 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
« no previous file with comments | « no previous file | deps/third_party/ragel/ragel.linux » ('j') | src/native_client/DEPS » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 GT2 patch as found in ragel-6-gt2 branch. 1 GT2 patch as found in ragel-6-gt2 branch.
2 2
3 More info: http://www.complang.org/pipermail/ragel-users/2012-May/002831.html 3 More info: http://www.complang.org/pipermail/ragel-users/2012-May/002831.html
4 4
5 --- ragel/cdgoto.cpp 5 --- ragel/cdgoto.cpp
6 +++ ragel/cdgoto.cpp 6 +++ ragel/cdgoto.cpp
7 @@ -34,6 +34,11 @@ 7 @@ -34,6 +34,11 @@
8 return out; 8 return out;
9 } 9 }
10 10
(...skipping 240 matching lines...) Expand 10 before | Expand all | Expand 10 after
251 " -P<N> N-Way Split really fast goto-driven FSM\n" 251 " -P<N> N-Way Split really fast goto-driven FSM\n"
252 ; 252 ;
253 253
254 @@ -407,7 +409,10 @@ 254 @@ -407,7 +409,10 @@
255 codeStyle = GenFGoto; 255 codeStyle = GenFGoto;
256 else if ( pc.paramArg[0] == '2' ) 256 else if ( pc.paramArg[0] == '2' )
257 codeStyle = GenIpGoto; 257 codeStyle = GenIpGoto;
258 - else { 258 - else {
259 + else if ( pc.paramArg[0] == 'T' && pc.paramArg[1 ] == '2' ) { 259 + else if ( pc.paramArg[0] == 'T' && pc.paramArg[1 ] == '2' ) {
260 + codeStyle = GenIpGoto; 260 + codeStyle = GenIpGoto;
261 +» » » » » maxTransitions = 32; 261 +» » » » » maxTransitions = 16;
262 + } else { 262 + } else {
263 error() << "-G" << pc.paramArg[0] << 263 error() << "-G" << pc.paramArg[0] <<
264 " is an invalid argument " << endl; 264 " is an invalid argument " << endl;
265 exit(1); 265 exit(1);
266 --- ragel/ragel.h 266 --- ragel/ragel.h
267 +++ ragel/ragel.h 267 +++ ragel/ragel.h
268 @@ -109,6 +109,8 @@ 268 @@ -109,6 +109,8 @@
269 extern int numSplitPartitions; 269 extern int numSplitPartitions;
270 extern bool noLineDirectives; 270 extern bool noLineDirectives;
271 271
272 +extern long maxTransitions; 272 +extern long maxTransitions;
273 + 273 +
274 std::ostream &error(); 274 std::ostream &error();
275 275
276 /* Target language and output style. */ 276 /* Target language and output style. */
OLDNEW
« no previous file with comments | « no previous file | deps/third_party/ragel/ragel.linux » ('j') | src/native_client/DEPS » ('J')

Powered by Google App Engine
This is Rietveld 408576698