mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-19 07:33:20 +00:00
LibJS: Optimize reading known-to-be-initialized var
bindings
`var` bindings are never in the temporal dead zone (TDZ), and so we know accessing them will not throw. We now take advantage of this by having a specialized environment binding value getter that doesn't check for exceptional cases. 1.08x speedup on JetStream.
This commit is contained in:
parent
ad7c1e147f
commit
bf1b754e91
Notes:
github-actions[bot]
2025-05-04 00:32:11 +00:00
Author: https://github.com/awesomekling
Commit: bf1b754e91
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4588
8 changed files with 90 additions and 15 deletions
|
@ -69,6 +69,7 @@
|
|||
O(GetObjectPropertyIterator) \
|
||||
O(GetPrivateById) \
|
||||
O(GetBinding) \
|
||||
O(GetInitializedBinding) \
|
||||
O(GreaterThan) \
|
||||
O(GreaterThanEquals) \
|
||||
O(HasPrivateId) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue