LibJS: Keep cached this value in a call frame register

Just moving more things to call frame registers..
This commit is contained in:
Andreas Kling 2023-09-26 14:42:30 +02:00
commit c833885fb5
Notes: sideshowbarker 2024-07-17 03:30:41 +09:00
5 changed files with 13 additions and 9 deletions

View file

@ -179,8 +179,6 @@ Interpreter::ValueAndFrame Interpreter::run_and_return_frame(Executable& executa
else
push_call_frame(make<CallFrame>(), executable.number_of_registers);
TemporaryChange restore_this_value { m_this_value, {} };
for (;;) {
auto pc = InstructionStreamIterator { m_current_block->instruction_stream(), m_current_executable };
TemporaryChange temp_change { m_pc, Optional<InstructionStreamIterator&>(pc) };