Revision: 17371
Author:   [email protected]
Date:     Thu Oct 24 11:01:16 2013 UTC
Log:      Experimental scanner: pass -b to re2c.

It seems to generate a bit faster scanner.

From re2c doc:

-b: Implies -s. Use bit vectors as well in the attempt to coax better code out
of the compiler. Most useful for specifications with more than a few
keywords (e.g. for most programming languages).

-s: Generate nested ifs for some switches. Many compilers need this assist to
generate better code.

BUG=
[email protected]

Review URL: https://codereview.chromium.org/39913002
http://code.google.com/p/v8/source/detail?r=17371

Modified:
 /branches/experimental/parser/src/lexer/lexer.gyp

=======================================
--- /branches/experimental/parser/src/lexer/lexer.gyp Fri Oct 18 14:33:27 2013 UTC +++ /branches/experimental/parser/src/lexer/lexer.gyp Thu Oct 24 11:01:16 2013 UTC
@@ -71,6 +71,7 @@
             're2c',
             '-f',
             '-c',
+            '-b',
             '--output',
             '<(SHARED_INTERMEDIATE_DIR)/lexer.cc',
             '../../src/lexer/lexer.re',

--
--
v8-dev mailing list
[email protected]
http://groups.google.com/group/v8-dev
--- You received this message because you are subscribed to the Google Groups "v8-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to