You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
David Majda 7b03f164b8 Avoid passing |context| in the generated parser
Passing the context is not necessary, global variable is good enough
(passing the context would make more sense if each AST node was
translated into a function call, but this isn't the case).

The performance gain is very small, on the border of statstical error.

Results of benchmark with 100 runs on V8:

  Before:  31.49 kB/s
  After:   31.57 kB/s
  Speedup: 0.254 %

Mozilla/5.0 (X11; U; Linux i686; en-US) AppleWebKit/533.4 (KHTML, like
Gecko) Chrome/5.0.375.127 Safari/533.4
14 years ago
..
checks.js Compiler checks and passes are named for easier reference from tests 14 years ago
compiler.js Remove now mostly useless comment headers from the code 14 years ago
emitter.js Avoid passing |context| in the generated parser 14 years ago
parser.js Avoid passing |context| in the generated parser 14 years ago
parser.pegjs Simplify utility functions structure + do not export them as part of the PEG object 14 years ago
passes.js Compiler checks and passes are named for easier reference from tests 14 years ago
peg.js Remove now mostly useless comment headers from the code 14 years ago
utils.js Fix stupid mistakes in the |buildNodeVisitor| function 14 years ago