boa-dev / boa

Boa is an embeddable and experimental Javascript engine written in Rust. Currently, it has support for some of the language.
MIT License
5.11k stars 401 forks source link

Make a pre-bytecode-compilation phase to analyze variable scopes #3490

Open jedel1043 opened 11 months ago

jedel1043 commented 11 months ago

This should help determine which variables are live at any moment, which will help on the implementation of #3194

raskad commented 1 month ago

Instead of having an entire pre-parse stage, the scope analysis has been implemented on the AST in #3988. I think pre-parsing is probably not our top priority, as our main performance optimization potential is in the execution time. I would be in favor of closing this.

jedel1043 commented 1 month ago

I think the title is just wrong 🤣 What I probably meant when opening this was a pre-bytecode-compiler phase, which the new AST changes definitely fit within