mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:38:12 +00:00
LibJS/JIT: Resolve the GetCalleeAndThisFromEnvironment cache at JIT time
This commit is contained in:
parent
8f4966fc5c
commit
2520c46224
4 changed files with 17 additions and 15 deletions
|
@ -692,7 +692,10 @@ ThrowCompletionOr<void> GetVariable::execute_impl(Bytecode::Interpreter& interpr
|
|||
|
||||
ThrowCompletionOr<void> GetCalleeAndThisFromEnvironment::execute_impl(Bytecode::Interpreter& interpreter) const
|
||||
{
|
||||
auto callee_and_this = TRY(get_callee_and_this_from_environment(interpreter, interpreter.current_executable().get_identifier(m_identifier), m_cache_index));
|
||||
auto callee_and_this = TRY(get_callee_and_this_from_environment(
|
||||
interpreter,
|
||||
interpreter.current_executable().get_identifier(m_identifier),
|
||||
interpreter.current_executable().environment_variable_caches[m_cache_index]));
|
||||
interpreter.reg(m_callee_reg) = callee_and_this.callee;
|
||||
interpreter.reg(m_this_reg) = callee_and_this.this_value;
|
||||
return {};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue