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.
42d4fc6dd4
One stack is conceptually simpler, requires less code and will make a transition to a register-based machine easier. Note that the stack variables are now named a bit incorrectly (|result0|, |result1|, etc. even when they store also parse positions). I didn't bother with renaming because a transition to a register-based machine will follow soon and the names will change anyway. The speed/size impact is insignificant. Speed impact ------------ Before: 839.05 kB/s After: 839.67 kB/s Difference: 0.07% Size impact ----------- Before: 949783 b After: 961578 b Difference: 1.24% (Measured by /tools/impact with Node.js v0.6.18 on x86_64 GNU/Linux.) |
12 years ago | |
---|---|---|
.. | ||
compiler | 12 years ago | |
compiler.js | 12 years ago | |
parser.js | 12 years ago | |
parser.pegjs | 12 years ago | |
peg.js | 12 years ago | |
utils.js | 12 years ago |