Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e88edb51fd50a269fd9a7300dbad5ccaf0df1248
https://github.com/WebKit/WebKit/commit/e88edb51fd50a269fd9a7300dbad5ccaf0df1248
Author: Yusuke Suzuki <[email protected]>
Date: 2026-05-28 (Thu, 28 May 2026)
Changed paths:
M Source/JavaScriptCore/runtime/JSGlobalObject.cpp
M Source/JavaScriptCore/runtime/JSGlobalObject.h
Log Message:
-----------
[JSC] Fold microtask queueing slow path condition to m_canFastQueueMicrotask
https://bugs.webkit.org/show_bug.cgi?id=315743
rdar://178130672
Reviewed by Mark Lam and Yijia Huang.
Microtask queueing is extremely hot and any random additional load matters.
We add m_canFastQueueMicrotask flag which combines all of slow path
conditions into one, to avoid spreading slow path code from the fast path.
* Source/JavaScriptCore/runtime/JSGlobalObject.cpp:
(JSC::JSGlobalObject::init):
(JSC::JSGlobalObject::queueMicrotask):
(JSC::JSGlobalObject::queueMicrotaskSlow):
(JSC::JSGlobalObject::setDebugger):
* Source/JavaScriptCore/runtime/JSGlobalObject.h:
(JSC::JSGlobalObject::updateCanFastQueueMicrotask):
(JSC::JSGlobalObject::setAssociatedContextIsFullyActive):
Canonical link: https://commits.webkit.org/314067@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications