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:
Andreas Kling 2024-05-20 11:53:28 +02:00
commit 448b7ca87b
Notes: sideshowbarker 2024-07-18 02:47:59 +09:00
5 changed files with 124 additions and 7 deletions

View file

@ -57,6 +57,8 @@
O(GetGlobal) \
O(GetImportMeta) \
O(GetIterator) \
O(GetLength) \
O(GetLengthWithThis) \
O(GetMethod) \
O(GetNewTarget) \
O(GetNextMethodFromIteratorRecord) \