Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[JSC] Use BinarySwitch on new BBQ BrTable #10436

Conversation

Constellation
Copy link
Member

@Constellation Constellation commented Feb 21, 2023

@Constellation Constellation requested a review from a team as a code owner February 21, 2023 08:47
@Constellation Constellation self-assigned this Feb 21, 2023
@Constellation Constellation added the JavaScriptCore For bugs in JavaScriptCore, the JS engine used by WebKit, other than kxmlcore issues. label Feb 21, 2023
@Constellation Constellation force-pushed the eng/JSC-Use-BinarySwitch-on-new-BBQ-BrTable branch from e6b4690 to 22ff45e Compare February 21, 2023 08:48
Copy link
Member

@tadeuzagallo tadeuzagallo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

r=me

@Constellation Constellation added the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Feb 21, 2023
https://bugs.webkit.org/show_bug.cgi?id=252655
rdar://105716386

Reviewed by Tadeu Zagallo.

As the same to Air BBQ IR generator, let's use BinarySwitch to efficiently jump to the large BrTable.
This improves tsf-wasm performance (only with new BBQ) from 0.845 to 2.904.

* Source/JavaScriptCore/wasm/WasmBBQJIT.cpp:
(JSC::Wasm::BBQJIT::ControlData::addBranch):
(JSC::Wasm::BBQJIT::addSwitch):

Canonical link: https://commits.webkit.org/260614@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/JSC-Use-BinarySwitch-on-new-BBQ-BrTable branch from 22ff45e to 400b0a9 Compare February 21, 2023 17:21
@webkit-commit-queue webkit-commit-queue merged commit 400b0a9 into WebKit:main Feb 21, 2023
@webkit-commit-queue
Copy link
Collaborator

Committed 260614@main (400b0a9): https://commits.webkit.org/260614@main

Reviewed commits have been landed. Closing PR #10436 and removing active labels.

@webkit-commit-queue webkit-commit-queue removed the unsafe-merge-queue Applied to send a pull request to merge-queue, but skip building and testing label Feb 21, 2023
@Constellation Constellation deleted the eng/JSC-Use-BinarySwitch-on-new-BBQ-BrTable branch February 21, 2023 17:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JavaScriptCore For bugs in JavaScriptCore, the JS engine used by WebKit, other than kxmlcore issues.
Projects
None yet
4 participants