mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-20 09:11:53 +00:00
LibJS: Mark the exception path as [[unlikely]] in the interpreter loop
This commit is contained in:
parent
031ec98803
commit
951a85992b
Notes:
sideshowbarker
2024-07-17 18:38:54 +09:00
Author: https://github.com/awesomekling
Commit: 951a85992b
Pull-request: https://github.com/SerenityOS/serenity/pull/21241
1 changed files with 1 additions and 1 deletions
|
@ -188,7 +188,7 @@ Interpreter::ValueAndFrame Interpreter::run_and_return_frame(Executable& executa
|
|||
while (!pc.at_end()) {
|
||||
auto& instruction = *pc;
|
||||
auto ran_or_error = instruction.execute(*this);
|
||||
if (ran_or_error.is_error()) {
|
||||
if (ran_or_error.is_error()) [[unlikely]] {
|
||||
reg(Register::exception()) = *ran_or_error.throw_completion().value();
|
||||
if (unwind_contexts().is_empty())
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue