1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-20 14:55:08 +00:00

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
parent 3887b840a3
commit c833885fb5
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) };