Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[RISCV64] Add MacroAssemblerRISCV64 operations with patchable elements
https://bugs.webkit.org/show_bug.cgi?id=234635 Patch by Zan Dobersek <zdobersek@igalia.com> on 2021-12-28 Reviewed by Yusuke Suzuki. Add MacroAssemblerRISCV64 implementations for operations that generate patchable code sections. This covers moves, stores and branches. For moves and stores of pointer values, the patchable section is achieved by generating a immediate loader instruction sequence with all the placeholder instructions (nops) included. Some methods that had their noop implementations provided until now have been removed since they are not necessary anymore. * assembler/MacroAssemblerRISCV64.h: (JSC::MacroAssemblerRISCV64::moveWithPatch): (JSC::MacroAssemblerRISCV64::storePtrWithPatch): (JSC::MacroAssemblerRISCV64::branch32WithPatch): (JSC::MacroAssemblerRISCV64::branchPtrWithPatch): (JSC::MacroAssemblerRISCV64::patchableBranch64): Canonical link: https://commits.webkit.org/245601@main git-svn-id: https://svn.webkit.org/repository/webkit/trunk@287466 268f45cc-cd09-0410-ab3c-d52691b4dbfc
- Loading branch information
commit-queue@webkit.org
committed
Dec 28, 2021
1 parent
79bf357
commit a42b9ab
Showing
2 changed files
with
88 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters