pegjs/lib/compiler
David Majda 44e03187a7 Assert that generated bytecode manipulates stack correctly
There are two invariants in generated bytecode related to the stack:

  1. Branches of a condition must move the stack pointer in the same way.

  2. Body of a loop can't move the stack pointer.

These invariants were always true, but they were not checked. Now we
check them at least when compiling with optimization for speed, because
there we analyze the stack pointer movements statically.
2013-12-07 16:45:23 +01:00
..
passes Assert that generated bytecode manipulates stack correctly 2013-12-07 16:45:23 +01:00
opcodes.js Renumber bytecode instructions to make them sequential 2013-12-07 15:58:26 +01:00