mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-23 10:50:49 +00:00
LibJS/Bytecode: Add dedicated instruction for getting length
property
By doing this, we can remove all the special-case checks for `length` from the generic GetById and GetByIdWithThis code paths, making every other property lookup a bit faster. Small progressions on most benchmarks, and some larger progressions: - 12% on Octane/crypto.js - 6% on Kraken/ai-astar.js
This commit is contained in:
parent
a6d6729034
commit
448b7ca87b
Notes:
sideshowbarker
2024-07-18 02:47:59 +09:00
Author: https://github.com/awesomekling
Commit: 448b7ca87b
Pull-request: https://github.com/SerenityOS/serenity/pull/24390
5 changed files with 124 additions and 7 deletions
|
@ -57,6 +57,8 @@
|
|||
O(GetGlobal) \
|
||||
O(GetImportMeta) \
|
||||
O(GetIterator) \
|
||||
O(GetLength) \
|
||||
O(GetLengthWithThis) \
|
||||
O(GetMethod) \
|
||||
O(GetNewTarget) \
|
||||
O(GetNextMethodFromIteratorRecord) \
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue