From 951a85992b46cfad5a270827835e5ae1436e4f7b Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 26 Sep 2023 16:05:22 +0200 Subject: [PATCH] LibJS: Mark the exception path as [[unlikely]] in the interpreter loop --- Userland/Libraries/LibJS/Bytecode/Interpreter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp b/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp index 2001d556e6..848659a5ad 100644 --- a/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp +++ b/Userland/Libraries/LibJS/Bytecode/Interpreter.cpp @@ -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;