forked from v8/v8
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[codegen] Re-derive sentries when we modify them.
Similar to cfa1aba, sometimes v8's codegen modifies sentries. In order to preserve them, we need to generate an instruction sequence as follows: adr c1, 0 orr x0, x0, #1 scvalue c1, c1, x0 seal c0, c1, rb However, we also need to check if we are actually operating on a sentry, because we might be working with JITted code that simply has an RX capability. We don't produce sentries for those yet, so we either derive from the PCC, or we don't derive anything. This commit further adds various Morello instructions such as gclen, scbndse, gcseal, seal and build and re-formats some existing parts of the code. It also adds a new abort reason for the codegen to use in case of unexpected sealed capabilities and makes use of it in the Mov immediate instruction, which should help debugging.
- Loading branch information
Showing
11 changed files
with
232 additions
and
35 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
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
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
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
Oops, something went wrong.