Revision: 17727
Author: [email protected]
Date: Thu Nov 14 10:25:54 2013 UTC
Log: Experimental parser: print out minimization savings
[email protected]
BUG=
Review URL: https://codereview.chromium.org/62203017
http://code.google.com/p/v8/source/detail?r=17727
Modified:
/branches/experimental/parser/tools/lexer_generator/generator.py
=======================================
--- /branches/experimental/parser/tools/lexer_generator/generator.py Thu
Nov 14 10:16:32 2013 UTC
+++ /branches/experimental/parser/tools/lexer_generator/generator.py Thu
Nov 14 10:25:54 2013 UTC
@@ -109,7 +109,9 @@
if args.minimize_default:
if args.no_verify_default:
DfaMinimizer.set_verify(False)
- rule_processor.default_automata().minimal_dfa()
+ dfa = rule_processor.default_automata().dfa()
+ mdfa = rule_processor.default_automata().minimal_dfa()
+ print "nodes reduced from %s to %s" % (dfa.node_count(),
mdfa.node_count())
DfaMinimizer.set_verify(True)
html_file = args.html
--
--
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.