Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: f9d99657ac8919eef0621623151e78184d53779b
https://github.com/WebKit/WebKit/commit/f9d99657ac8919eef0621623151e78184d53779b
Author: Sosuke Suzuki <[email protected]>
Date: 2025-10-31 (Fri, 31 Oct 2025)
Changed paths:
A JSTests/microbenchmarks/promise-prototype-catch-chain.js
A JSTests/stress/promise-prototype-catch-overwrite-then-1.js
A JSTests/stress/promise-prototype-catch-overwrite-then-2.js
M Source/JavaScriptCore/dfg/DFGAbstractInterpreterInlines.h
M Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp
M Source/JavaScriptCore/dfg/DFGGraph.cpp
M Source/JavaScriptCore/dfg/DFGGraph.h
M Source/JavaScriptCore/dfg/DFGJITCode.cpp
M Source/JavaScriptCore/dfg/DFGJITCode.h
M Source/JavaScriptCore/runtime/Intrinsic.h
M Source/JavaScriptCore/runtime/JSPromisePrototype.cpp
Log Message:
-----------
[JSC] Handle `Promise#catch` in DFG/FTL
https://bugs.webkit.org/show_bug.cgi?id=301233
Reviewed by Yusuke Suzuki.
This patch changes to handle `Promise.prototype.catch` in DFG/FTL using
`PromiseThen` node.
TipOfTree Patched
promise-prototype-catch 62.0914+-0.5053 ^ 50.9713+-0.6376
^ definitely 1.2182x faster
* JSTests/microbenchmarks/promise-prototype-catch-chain.js: Added.
(i.p.catch):
(i.catch):
* JSTests/stress/promise-prototype-catch-overwrite-then-1.js: Added.
(shouldBe):
(test):
* JSTests/stress/promise-prototype-catch-overwrite-then-2.js: Added.
(shouldBe):
(test):
* Source/JavaScriptCore/dfg/DFGAbstractInterpreterInlines.h:
(JSC::DFG::AbstractInterpreter<AbstractStateType>::executeEffects):
* Source/JavaScriptCore/dfg/DFGByteCodeParser.cpp:
(JSC::DFG::ByteCodeParser::handleIntrinsicCall):
* Source/JavaScriptCore/dfg/DFGGraph.cpp:
(JSC::DFG::Graph::getPrototypeProperty):
(JSC::DFG::Graph::getRegExpPrototypeProperty): Deleted.
* Source/JavaScriptCore/dfg/DFGGraph.h:
* Source/JavaScriptCore/dfg/DFGJITCode.cpp:
(JSC::DFG::JITData::JITData):
(JSC::DFG::JITData::tryInitialize):
* Source/JavaScriptCore/dfg/DFGJITCode.h:
* Source/JavaScriptCore/runtime/Intrinsic.h:
* Source/JavaScriptCore/runtime/JSPromisePrototype.cpp:
(JSC::JSPromisePrototype::finishCreation):
Canonical link: https://commits.webkit.org/302422@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications