LibJS: Remove effectively unused value span from ExecutionContext

Instead of using this span, we can just use the getter that calculates
the base of the register/constant/local/argument array based on the
ExecutionContext's own address.
This commit is contained in:
Andreas Kling 2025-10-31 19:39:56 +01:00 committed by Andreas Kling
parent e1344afff3
commit 75d49c4b55
Notes: github-actions[bot] 2025-11-01 07:42:03 +00:00
3 changed files with 4 additions and 7 deletions

View file

@ -45,11 +45,11 @@ public:
ALWAYS_INLINE Value& saved_return_value() { return reg(Register::saved_return_value()); }
Value& reg(Register const& r)
{
return m_running_execution_context->registers_and_constants_and_locals_arguments.data()[r.index()];
return m_running_execution_context->registers_and_constants_and_locals_and_arguments()[r.index()];
}
Value reg(Register const& r) const
{
return m_running_execution_context->registers_and_constants_and_locals_arguments.data()[r.index()];
return m_running_execution_context->registers_and_constants_and_locals_and_arguments()[r.index()];
}
[[nodiscard]] Value get(Operand) const;