Skip to content

[RyuJit/WASM] Simple RA#124018

Merged
AndyAyersMS merged 2 commits intodotnet:mainfrom
SingleAccretion:WasmJit-RA
Feb 6, 2026
Merged

[RyuJit/WASM] Simple RA#124018
AndyAyersMS merged 2 commits intodotnet:mainfrom
SingleAccretion:WasmJit-RA

Conversation

@SingleAccretion
Copy link
Contributor

@SingleAccretion SingleAccretion commented Feb 4, 2026

Assign each tracked local its own virtual register then assign each virtual register a physical WASM local.

The intent here is to just get a simple & easily correct by design algorithm going so we can get to things like internal registers for bounds check and such.

@github-actions github-actions bot added the area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI label Feb 4, 2026
@dotnet-policy-service dotnet-policy-service bot added the community-contribution Indicates that the PR has been added by a community member label Feb 4, 2026
Assign each tracked local its own virtual register.

Then assign each virtual register a physical WASM local.
@SingleAccretion SingleAccretion marked this pull request as ready for review February 5, 2026 15:29
@SingleAccretion
Copy link
Contributor Author

@dotnet/jit-contrib

Copy link
Member

@AndyAyersMS AndyAyersMS left a comment

Choose a reason for hiding this comment

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

Changes LGTM.

Do you have any thoughts on how we'll handle things for funclets?

Their args will be something like

  • arg0: SP
  • arg1: parent FP
  • arg2: exception object (for catch and filter)

Co-authored-by: Andy Ayers <andya@microsoft.com>
@am11 am11 added the arch-wasm WebAssembly architecture label Feb 6, 2026
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara
See info in area-owners.md if you want to be subscribed.

@SingleAccretion
Copy link
Contributor Author

SingleAccretion commented Feb 6, 2026

Do you have any thoughts on how we'll handle things for funclets?

I was thinking we'd have a per-function bank of virtual registers. It will require some more metadata tracking, but it is how it is.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

arch-wasm WebAssembly architecture area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI community-contribution Indicates that the PR has been added by a community member

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants