mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-05 08:31:51 +00:00
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:
parent
942ce2162d
commit
6de1a0aeaf
Notes:
github-actions[bot]
2025-04-29 00:11:00 +00:00
Author: https://github.com/awesomekling
Commit: 6de1a0aeaf
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4513
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue