mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 05:39:11 +00:00
LibJS/JIT: Resolve the GetCalleeAndThisFromEnvironment cache at JIT time
This commit is contained in:
parent
8f4966fc5c
commit
2520c46224
Notes:
sideshowbarker
2024-07-17 05:23:40 +09:00
Author: https://github.com/awesomekling
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