LibJS: Don't cache a pointer to accumulator register in run_bytecode()

The old accumulator register is really only used to pass the end
completion to the caller of run_bytecode() nowadays. As such, we don't
need to cache a pointer to it for fast access. One less thing to do
on run_bytecode() entry.
This commit is contained in:
Andreas Kling 2025-04-28 20:40:20 +02:00 committed by Andreas Kling
parent 942ce2162d
commit 6de1a0aeaf
Notes: github-actions[bot] 2025-04-29 00:11:00 +00:00

View file

@ -377,7 +377,6 @@ FLATTEN_ON_CLANG void Interpreter::run_bytecode(size_t entry_point)
}
auto& running_execution_context = this->running_execution_context();
auto& accumulator = this->accumulator();
auto& executable = current_executable();
auto const* bytecode = executable.bytecode.data();
@ -417,7 +416,7 @@ FLATTEN_ON_CLANG void Interpreter::run_bytecode(size_t entry_point)
handle_End: {
auto& instruction = *reinterpret_cast<Op::End const*>(&bytecode[program_counter]);
accumulator = get(instruction.value());
accumulator() = get(instruction.value());
return;
}