oxc/crates/oxc_semantic
overlookmotel e70c67b2e2 perf(semantic): remove a branch from add_scope (#4384)
Similar to #4361.

`ScopeTree::add_scope` had a branch specifically to handle `Program`. Remove that by inlining the special logic for `Program` into `visit_program`.

Probably won't have much effect on benchmarks as the branch is easy to predict, but still removes a few instructions and makes `add_scope` easier for compiler to inline.
2024-07-21 12:43:34 +00:00
..
examples refactor(semantic): make control flow generation optional. (#3737) 2024-06-18 15:59:38 +00:00
src perf(semantic): remove a branch from add_scope (#4384) 2024-07-21 12:43:34 +00:00
tests fix(semantic): align visit_arrow_function_expression field visit order with ast (#4366) 2024-07-19 14:51:59 +00:00
Cargo.toml Release crates v0.21.0 (#4344) 2024-07-18 14:39:07 +08:00
CHANGELOG.md Release crates v0.21.0 (#4344) 2024-07-18 14:39:07 +08:00