Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 275501dd6e3a9a954482cd0afd71ef898ae62bd8
https://github.com/WebKit/WebKit/commit/275501dd6e3a9a954482cd0afd71ef898ae62bd8
Author: Alexey Shvayka <[email protected]>
Date: 2024-07-22 (Mon, 22 Jul 2024)
Changed paths:
M Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp
Log Message:
-----------
[JSC] Emit up to 2 less bytecodes for `try` statement
https://bugs.webkit.org/show_bug.cgi?id=276876
<rdar://problem/132224237>
Reviewed by Yusuke Suzuki.
This change:
1) given try/finally, removes the jump from the end of `try` block to the
start of `finally`,
which are adjacent basic blocks (execution will just fall through);
2) given try/catch, at the end of `catch` block, removes the load to
`thrownValueRegister`,
which is no longer in use at that point;
3) given try/catch/finally, removes the jump from the end of `catch` block to
the start of `finally`,
which are adjacent basic blocks (execution will just fall through).
No new tests, no behavior change.
* Source/JavaScriptCore/bytecompiler/NodesCodegen.cpp:
(JSC::TryNode::emitBytecode):
Canonical link: https://commits.webkit.org/281203@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