LibJS/Bytecode: Cache the running execution context in interpreter

This commit is contained in:
Andreas Kling 2024-05-11 18:16:27 +02:00
commit 6ec4d6f668
Notes: sideshowbarker 2024-07-18 04:38:32 +09:00
3 changed files with 34 additions and 34 deletions

View file

@ -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()) {