Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 74cc52330394d1cad391692a951228eb6db5e8d4
https://github.com/WebKit/WebKit/commit/74cc52330394d1cad391692a951228eb6db5e8d4
Author: Yusuke Suzuki <[email protected]>
Date: 2026-07-14 (Tue, 14 Jul 2026)
Changed paths:
M Source/JavaScriptCore/runtime/JSAsyncGenerator.cpp
M Source/JavaScriptCore/runtime/JSPromiseReaction.cpp
M Source/JavaScriptCore/runtime/JSPromiseReaction.h
Log Message:
-----------
[JSC] Use JSSlimPromiseReaction for JSAsyncGenerator queue
https://bugs.webkit.org/show_bug.cgi?id=319393
rdar://182224083
Reviewed by Keith Miller.
We can stop using JSFullPromiseReaction and use JSSlimPromiseReaction if
we apply the following changes in JSAsyncGenerator.
1. We can just use circular singly-linked-list for queueing. Since
queueing is always just enqueue and dequeue, we do not need to have
doubly-linked-list.
2. Pack resumeMode into JSSlimPromiseReaction's payload.
* Source/JavaScriptCore/runtime/JSAsyncGenerator.cpp:
(JSC::JSAsyncGenerator::enqueue):
(JSC::JSAsyncGenerator::dequeue):
* Source/JavaScriptCore/runtime/JSPromiseReaction.cpp:
(JSC::JSSlimPromiseReaction::create):
(JSC::JSSlimPromiseReaction::createAsyncGeneratorRequest):
* Source/JavaScriptCore/runtime/JSPromiseReaction.h:
(JSC::JSPromiseReaction::JSPromiseReaction):
Canonical link: https://commits.webkit.org/317181@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications