ladybird/Libraries/LibWeb/WebIDL
Andreas Kling 183c847c80
Some checks are pending
CI / Lagom (x86_64, Fuzzers_CI, false, ubuntu-24.04, Linux, Clang) (push) Waiting to run
CI / Lagom (arm64, Sanitizer_CI, false, macos-15, macOS, Clang) (push) Waiting to run
CI / Lagom (x86_64, Sanitizer_CI, false, ubuntu-24.04, Linux, GNU) (push) Waiting to run
CI / Lagom (x86_64, Sanitizer_CI, true, ubuntu-24.04, Linux, Clang) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (arm64, macos-15, macOS, macOS-universal2) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (x86_64, ubuntu-24.04, Linux, Linux-x86_64) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Label PRs with merge conflicts / auto-labeler (push) Waiting to run
Push notes / build (push) Waiting to run
LibJS: Cache PutById to setters in the prototype chain
This is *extremely* common on the web, but barely shows up at all in
JavaScript benchmarks.

A typical example is setting Element.innerHTML on a HTMLDivElement.
HTMLDivElement doesn't have innerHTML, so it has to travel up the
prototype chain until it finds it.

Before this change, we didn't cache this at all, so we had to travel
the prototype chain every time a setter like this was used.

We now use the same mechanism we already had for GetBydId and cache
PutById setter accesses in the prototype chain as well.

1.74x speedup on MicroBench/setter-in-prototype-chain.js
2025-05-05 15:21:43 +02:00
..
AbstractOperations.cpp LibWeb: Implement caching of reflected element array attributes 2025-04-26 17:29:38 -04:00
AbstractOperations.h LibWeb: Implement caching of reflected element array attributes 2025-04-26 17:29:38 -04:00
AsyncIterator.cpp LibIDL+LibWeb: Begin support for async iterator in IDL 2025-04-14 17:43:11 -04:00
AsyncIterator.h LibIDL+LibWeb: Begin support for async iterator in IDL 2025-04-14 17:43:11 -04:00
Buffers.cpp LibWeb/IDB: Update convert_a_value_to_a_key to latest changes 2025-03-13 11:23:15 +01:00
Buffers.h LibWeb/IDB: Update convert_a_value_to_a_key to latest changes 2025-03-13 11:23:15 +01:00
CallbackType.cpp LibWeb: Move ad hoc CallbackType helper method to CallbackType header 2024-12-11 15:11:21 +01:00
CallbackType.h LibWeb: Move ad hoc CallbackType helper method to CallbackType header 2024-12-11 15:11:21 +01:00
DOMException.cpp LibWeb: Only set prototype once for object with IDL interface 2025-04-20 18:43:11 +02:00
DOMException.h LibWeb: Add formatters for WebIDL exception types 2025-01-23 21:39:02 +01:00
DOMException.idl Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
ExceptionOr.h LibJS: Make Completion.[[Value]] non-optional 2025-04-05 11:20:26 +02:00
Function.idl Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
ObservableArray.cpp LibJS: Cache PutById to setters in the prototype chain 2025-05-05 15:21:43 +02:00
ObservableArray.h LibJS: Cache PutById to setters in the prototype chain 2025-05-05 15:21:43 +02:00
OverloadResolution.cpp LibJS: Use FlyString in PropertyKey instead of DeprecatedFlyString 2025-03-24 22:27:17 +00:00
OverloadResolution.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Promise.cpp LibWeb: Implement ReadableStreamPipeTo according to spec 2025-04-11 12:10:46 -04:00
Promise.h LibWeb: Implement ReadableStreamPipeTo according to spec 2025-04-11 12:10:46 -04:00
Tracing.cpp Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Tracing.h Everywhere: Hoist the Libraries folder to the top-level 2024-11-10 12:50:45 +01:00
Types.h LibWeb: Redefine WebIDL types in terms of Infra spec 2024-12-05 17:34:13 +01:00