Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7b3dbc197b140fa6c1b7383e6770bb3f1cb9be7b
https://github.com/WebKit/WebKit/commit/7b3dbc197b140fa6c1b7383e6770bb3f1cb9be7b
Author: Yusuke Suzuki <[email protected]>
Date: 2026-07-05 (Sun, 05 Jul 2026)
Changed paths:
M Source/JavaScriptCore/b3/B3LowerToAir.cpp
M Source/JavaScriptCore/b3/B3Procedure.h
M Source/JavaScriptCore/b3/air/AirGenerate.cpp
M Source/JavaScriptCore/b3/air/AirLowerEntrySwitch.cpp
M Source/JavaScriptCore/b3/air/AirLowerEntrySwitch.h
M Source/JavaScriptCore/b3/air/AirReportUsedRegisters.cpp
M Source/JavaScriptCore/b3/air/AirReportUsedRegisters.h
Log Message:
-----------
[JSC] Skip LowerEntrySwitch and SimplifyCFG if possible
https://bugs.webkit.org/show_bug.cgi?id=318640
rdar://181445350
Reviewed by Yijia Huang.
1. Have usesEntrySwitch flag to avoid scanning the graph in
Air::lowerEntrySwitch.
EntrySwitch is not frequently used, thus we can remember when it is
added.
2. Record whether simplifyCFG can be beneficial and run it only it can
make code changed.
* Source/JavaScriptCore/b3/B3LowerToAir.cpp:
* Source/JavaScriptCore/b3/B3Procedure.h:
(JSC::B3::Procedure::setUsesEntrySwitch):
(JSC::B3::Procedure::usesEntrySwitch const):
* Source/JavaScriptCore/b3/air/AirGenerate.cpp:
(JSC::B3::Air::prepareForGeneration):
* Source/JavaScriptCore/b3/air/AirLowerEntrySwitch.cpp:
(JSC::B3::Air::lowerEntrySwitch):
* Source/JavaScriptCore/b3/air/AirLowerEntrySwitch.h:
* Source/JavaScriptCore/b3/air/AirReportUsedRegisters.cpp:
(JSC::B3::Air::reportUsedRegisters):
* Source/JavaScriptCore/b3/air/AirReportUsedRegisters.h:
Canonical link: https://commits.webkit.org/316535@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications