mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibJS/Bytecode: Cache the running execution context in interpreter
This commit is contained in:
parent
8447f6f6da
commit
6ec4d6f668
Notes:
sideshowbarker
2024-07-18 04:38:32 +09:00
Author: https://github.com/awesomekling
Commit: 6ec4d6f668
Pull-request: https://github.com/SerenityOS/serenity/pull/24296
3 changed files with 34 additions and 34 deletions
|
@ -536,7 +536,7 @@ inline ThrowCompletionOr<CalleeAndThis> get_callee_and_this_from_environment(Byt
|
|||
Value this_value = js_undefined();
|
||||
|
||||
if (cache.has_value()) {
|
||||
auto const* environment = vm.running_execution_context().lexical_environment.ptr();
|
||||
auto const* environment = interpreter.running_execution_context().lexical_environment.ptr();
|
||||
for (size_t i = 0; i < cache->hops; ++i)
|
||||
environment = environment->outer_environment();
|
||||
if (!environment->is_permanently_screwed_by_eval()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue