mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-08 01:27:31 +00:00
This patch adds a fast path to the GetByValue bytecode op that bypasses a ton of things *if* a set of assumptions hold: - The property key must be a non-negative Int32 - The base object must not interfere with indexed property access - The property key must already be present as an own property - The existing value must not have any accessors defined If this holds (which it should in the common case), we can poke directly at the indexed property storage and save a boatload of time. 10% speed-up on the entire Kraken benchmark :^) (including: 31% speed-up on Kraken/audio-dft.js) (including: 23% speed-up on Kraken/stanford-crypto-aes.js)