mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
LibJS/JIT: Resolve the GetGlobal identifier at JIT time
This commit is contained in:
parent
c92954db36
commit
234ed2d466
Notes:
sideshowbarker
2024-07-17 17:49:11 +09:00
Author: https://github.com/awesomekling
Commit: 234ed2d466
Pull-request: https://github.com/SerenityOS/serenity/pull/21817
4 changed files with 12 additions and 13 deletions
|
@ -697,7 +697,7 @@ ThrowCompletionOr<void> GetCalleeAndThisFromEnvironment::execute_impl(Bytecode::
|
|||
|
||||
ThrowCompletionOr<void> GetGlobal::execute_impl(Bytecode::Interpreter& interpreter) const
|
||||
{
|
||||
interpreter.accumulator() = TRY(get_global(interpreter, m_identifier, m_cache_index));
|
||||
interpreter.accumulator() = TRY(get_global(interpreter, interpreter.current_executable().get_identifier(m_identifier), m_cache_index));
|
||||
return {};
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue