3 ms·
A bytecode is easier to keep stable than an AST is; an AST changes as the language changes, but that doesn't mean you have to change the bytecode, only change t
by steveklabnik 7y ago
A bytecode is easier to keep stable than an AST is; an AST changes as the language changes, but that doesn't mean you have to change the bytecode, only change the transformation from the AST to the bytecode.
I have no idea if this is the reason, but it's a possible one.
- pizlonator 7y agoThat’s a pretty good reason also.
- mhh__ 7y agoIt's a bit of a micro-optimisation but ASTs are also usually represented fairly sparsely, so processing on bytecode could be much faster due to more efficient cache utilisation etc - some benefits from memory locality and also from bytecode usually being smaller in memory) (I don't know JSC does it so that could be wrong)
- deleted 7y ago[deleted]