Commit graph

1 commit

Author SHA1 Message Date
Andreas Kling
5dfe145c03 LibJS: Share function environment binding shapes
Cache EnvironmentShape on SharedFunctionInstanceData after the first
function environment creates its statically known bindings. Install the
cached shape before later calls create bindings so those environments
avoid building their own name vector and lookup map.

Let DeclarativeEnvironment keep a local overlay for eval-created
bindings, and keep the packed flag mirror per environment while the asm
interpreter still reads flags directly from the environment. Add runtime
coverage for repeated calls with an eval-created binding.
2026-05-15 14:04:47 +02:00