Skip to content

Conversation

@Constellation
Copy link
Member

@Constellation Constellation commented Feb 16, 2024

be51d07

[JSC] Use offlineasm globl to ensure that all entries have alt_entry
https://bugs.webkit.org/show_bug.cgi?id=269534
rdar://122525586

Reviewed by Justin Michaud.

We found that vmEntryToCSSJIT and vmEntryToCSSJITAfter are not having alt_entry properly since it is not using offlineasm globl.
This allowed LLInt code shuffled by linkers when alt_entry is used, which breaks many assumptions. This patch fixes it.

* Source/JavaScriptCore/llint/LowLevelInterpreter.asm:

Canonical link: https://commits.webkit.org/274796@main

5bc9553

Misc iOS, tvOS & watchOS macOS Linux Windows
✅ 🧪 style ✅ 🛠 ios ✅ 🛠 mac ✅ 🛠 wpe 🛠 wincairo
✅ 🛠 ios-sim ✅ 🛠 mac-AS-debug 🧪 wpe-wk2
✅ 🧪 webkitperl ✅ 🧪 ios-wk2 ✅ 🧪 api-mac 🧪 api-wpe
🧪 ios-wk2-wpt ✅ 🧪 mac-wk1 ✅ 🛠 gtk
🛠 🧪 jsc 🧪 api-ios 🧪 mac-wk2 🧪 gtk-wk2
✅ 🛠 🧪 jsc-arm64 🛠 tv 🧪 mac-AS-debug-wk2 🧪 api-gtk
🛠 tv-sim ✅ 🛠 jsc-armv7
🛠 watch ✅ 🧪 jsc-armv7-tests
✅ 🛠 🧪 unsafe-merge 🛠 watch-sim

@Constellation Constellation requested a review from a team as a code owner February 16, 2024 02:09
@Constellation Constellation self-assigned this Feb 16, 2024
@Constellation Constellation added the JavaScriptCore For bugs in JavaScriptCore, the JS engine used by WebKit, other than kxmlcore issues. label Feb 16, 2024
Copy link
Contributor

@justinmichaud justinmichaud 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 16, 2024
@webkit-commit-queue webkit-commit-queue force-pushed the eng/JSC-Use-offlineasm-globl-to-ensure-that-all-entries-have-alt_entry branch from 5bc9553 to ef70151 Compare February 16, 2024 05:19
https://bugs.webkit.org/show_bug.cgi?id=269534
rdar://122525586

Reviewed by Justin Michaud.

We found that vmEntryToCSSJIT and vmEntryToCSSJITAfter are not having alt_entry properly since it is not using offlineasm globl.
This allowed LLInt code shuffled by linkers when alt_entry is used, which breaks many assumptions. This patch fixes it.

* Source/JavaScriptCore/llint/LowLevelInterpreter.asm:

Canonical link: https://commits.webkit.org/274796@main
@webkit-commit-queue webkit-commit-queue force-pushed the eng/JSC-Use-offlineasm-globl-to-ensure-that-all-entries-have-alt_entry branch from ef70151 to be51d07 Compare February 16, 2024 05:21
@webkit-commit-queue
Copy link
Collaborator

Committed 274796@main (be51d07): https://commits.webkit.org/274796@main

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

@webkit-commit-queue webkit-commit-queue merged commit be51d07 into WebKit:main Feb 16, 2024
@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 16, 2024
@Constellation Constellation deleted the eng/JSC-Use-offlineasm-globl-to-ensure-that-all-entries-have-alt_entry branch February 16, 2024 05:30
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

Development

Successfully merging this pull request may close these issues.

4 participants