Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e7d51d19e065a727bcb67c2a434937ead382f722
https://github.com/WebKit/WebKit/commit/e7d51d19e065a727bcb67c2a434937ead382f722
Author: Shu-yu Guo <[email protected]>
Date: 2026-06-05 (Fri, 05 Jun 2026)
Changed paths:
A JSTests/stress/array-sort-nested-comparator-call-ignore-result.js
A JSTests/stress/array-sort-nested-comparator-tail-call.js
M Source/JavaScriptCore/llint/LLIntSlowPaths.cpp
Log Message:
-----------
[JSC] Fix opcode assert for Array.p.sort OSR exit
https://bugs.webkit.org/show_bug.cgi?id=316296
rdar://178704991
Reviewed by Yusuke Suzuki and Dan Hecht.
Array.prototype.sort, when inlined, bails back out to the callsite of the
entire sort() call. This call can be either op_call, op_call_ignore_result, or
op_tail_call, with identical inlining.
The OSR exit when resuming in LLInt currently narrowly asserts that the opcode
must be op_call. Relax this to also account for op_call_ignore_result and
op_tail_call.
* JSTests/stress/array-sort-nested-comparator-call-ignore-result.js: Added.
(test):
* JSTests/stress/array-sort-nested-comparator-tail-call.js: Added.
(test):
* Source/JavaScriptCore/llint/LLIntSlowPaths.cpp:
(JSC::LLInt::llint_slow_path_array_sort_comparator_return):
Canonical link: https://commits.webkit.org/314643@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications