Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c496281388179096571a5bf8d23d89bb74e986ac
https://github.com/WebKit/WebKit/commit/c496281388179096571a5bf8d23d89bb74e986ac
Author: Sosuke Suzuki <[email protected]>
Date: 2025-10-19 (Sun, 19 Oct 2025)
Changed paths:
A JSTests/microbenchmarks/promise-prototype-catch.js
M Source/JavaScriptCore/builtins/PromisePrototype.js
M Source/JavaScriptCore/inspector/InjectedScriptSource.js
M Source/JavaScriptCore/runtime/JSPromisePrototype.cpp
Log Message:
-----------
[JSC] Implement `Promise.prototype.catch` in C++
https://bugs.webkit.org/show_bug.cgi?id=301022
Reviewed by Yusuke Suzuki.
This patch changes to implement `Promise.prototype.catch` in C++ same as
`Promise.prototype.then`.
DFG/FTL enabled:
TipOfTree Patched
promise-prototype-catch 6.8142+-0.5325 ^ 5.4118+-0.4242
^ definitely 1.2591x faster
DFG/FTL disabled:
TipOfTree Patched
promise-prototype-catch 17.1595+-0.6856 ^ 6.0762+-0.3540
^ definitely 2.8241x faster
Test: JSTests/microbenchmarks/promise-prototype-catch.js
* JSTests/microbenchmarks/promise-prototype-catch.js: Added.
(i.Promise.reject.i.catch):
* Source/JavaScriptCore/builtins/PromisePrototype.js:
(catch): Deleted.
* Source/JavaScriptCore/inspector/InjectedScriptSource.js:
(let.InjectedScript.prototype._forEachPropertyDescriptor.createFakeValueDescriptor):
* Source/JavaScriptCore/runtime/JSPromisePrototype.cpp:
(JSC::JSPromisePrototype::finishCreation):
(JSC::JSC_DEFINE_HOST_FUNCTION):
Canonical link: https://commits.webkit.org/301784@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes