mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-08 05:27:14 +09:00
LibJS: Mark stack overflow path in run_bytecode() [[unlikely]]
This commit is contained in:
parent
bd9d489370
commit
942ce2162d
Notes:
github-actions[bot]
2025-04-29 00:11:05 +00:00
Author: https://github.com/awesomekling
Commit: 942ce2162d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4513
1 changed files with 1 additions and 1 deletions
|
@ -371,7 +371,7 @@ NEVER_INLINE Interpreter::HandleExceptionResponse Interpreter::handle_exception(
|
|||
|
||||
FLATTEN_ON_CLANG void Interpreter::run_bytecode(size_t entry_point)
|
||||
{
|
||||
if (vm().did_reach_stack_space_limit()) {
|
||||
if (vm().did_reach_stack_space_limit()) [[unlikely]] {
|
||||
reg(Register::exception()) = vm().throw_completion<InternalError>(ErrorType::CallStackSizeExceeded).value();
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue