Files
serenity/Userland/Libraries/LibJS/Bytecode
Andreas Kling 7f1a0c027b LibJS: Allow GetById to cache getters
1.25x speed-up on this microbenchmark:

    let o = { get x() { return 1; } };
    for (let i = 0; i < 10_000_000; ++i)
        o.x;

I looked into this because I noticed getter invocation when profiling
long-running WPT tests. We already had the mechanism for non-getter
properties, and the change to support getters turned out to be trivial.

(cherry picked from commit 3c5819a6d27883907237bf8137fd4dc24ed04e72)
2024-10-26 10:47:09 -04:00
..
2023-11-17 19:06:25 +01:00