Skip to content

Reuse UnsafeIntrinsicCompiler inside TrampolineCompiler#13601

Open
fitzgen wants to merge 3 commits into
bytecodealliance:mainfrom
fitzgen:dedupe-intrinsics-compilation
Open

Reuse UnsafeIntrinsicCompiler inside TrampolineCompiler#13601
fitzgen wants to merge 3 commits into
bytecodealliance:mainfrom
fitzgen:dedupe-intrinsics-compilation

Conversation

@fitzgen

@fitzgen fitzgen commented Jun 9, 2026

Copy link
Copy Markdown
Member

Rather than duplicating all the compilation of unsafe intrinsics.

Follow up to #13597; depends on that PR.

fitzgen added 3 commits June 9, 2026 09:01
These intrinsics are similar to the unchecked versions, but instead of taking a
raw address, take a base, offset, and length. They do a bounds check first, and
trap on out-of-bounds accesses or perform the actual in-bounds access. When
Spectre mitigations are enabled, their bounds check has Spectre mitigations
applied.
Rather than duplicating all the compilation of unsafe intrinsics.
@fitzgen fitzgen requested review from a team as code owners June 9, 2026 18:28
@fitzgen fitzgen requested review from alexcrichton and removed request for a team June 9, 2026 18:28

@cfallin cfallin left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM on last commit (thanks!).

@github-actions github-actions Bot added the wasmtime:api Related to the API of the `wasmtime` crate itself label Jun 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

wasmtime:api Related to the API of the `wasmtime` crate itself

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants