[webkit-changes] [WebKit/WebKit] 85de6d: [JSC] Implement Atomics.pause
Yusuke Suzuki
noreply at github.com
Wed Oct 9 13:14:47 PDT 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 85de6d11bebc5c44e11ddbab5e7129de3b457c69
https://github.com/WebKit/WebKit/commit/85de6d11bebc5c44e11ddbab5e7129de3b457c69
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2024-10-09 (Wed, 09 Oct 2024)
Changed paths:
M JSTests/test262/config.yaml
M Source/JavaScriptCore/runtime/AtomicsObject.cpp
M Source/JavaScriptCore/runtime/Intrinsic.h
M Source/JavaScriptCore/runtime/OptionsList.h
Log Message:
-----------
[JSC] Implement Atomics.pause
https://bugs.webkit.org/show_bug.cgi?id=281121
rdar://137571229
Reviewed by Keith Miller.
This patch implements Atomics.pause[1] (currently it is stage-3).
We use,
1. On x64, using "pause"
2. On ARM64, using "isb sy" as it turned out that "yield" is effectively "nop"
[1]: https://tc39.es/proposal-atomics-microwait/
* JSTests/test262/config.yaml:
* Source/JavaScriptCore/runtime/AtomicsObject.cpp:
(JSC::AtomicsObject::finishCreation):
(JSC::JSC_DEFINE_HOST_FUNCTION):
* Source/JavaScriptCore/runtime/Intrinsic.h:
* Source/JavaScriptCore/runtime/OptionsList.h:
Canonical link: https://commits.webkit.org/284917@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list