Skip to content

[Wasm RyuJit] Ind write barriers, direct helper calls, more#124113

Open
AndyAyersMS wants to merge 3 commits intodotnet:mainfrom
AndyAyersMS:WasmMoreCodegen2
Open

[Wasm RyuJit] Ind write barriers, direct helper calls, more#124113
AndyAyersMS wants to merge 3 commits intodotnet:mainfrom
AndyAyersMS:WasmMoreCodegen2

Conversation

@AndyAyersMS
Copy link
Member

  • implement codegen for write barrier helper calls
  • support direct calls to helpers
  • decorate call targets with their symbolic names in dumps/disasm

* implement codegen for write barrier helper calls
* support direct calls to helpers
* decorate call targets with their symbolic names in dumps/disasm
Copilot AI review requested due to automatic review settings February 6, 2026 23:40
@AndyAyersMS
Copy link
Member Author

fyi @dotnet/jit-contrib

@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 6, 2026
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch
See info in area-owners.md if you want to be subscribed.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the CoreCLR WASM JIT backend to better support runtime helper calls and GC write barriers, and improves dump/disasm readability by annotating call targets with symbolic names.

Changes:

  • Add disasm/dump decoration for call targets in emitwasm.cpp using recorded method handles.
  • Implement WASM GT_STOREIND write barrier codegen by routing to genGCWriteBarrier.
  • Enable direct helper-call emission in WASM codegen and adjust codegencommon.cpp TARGET_WASM guards to keep non-WASM-only code excluded while sharing write-barrier helpers.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 1 comment.

File Description
src/coreclr/jit/emitwasm.cpp Prints call target method names in verbose dumps/disasm when debug info is present.
src/coreclr/jit/codegenwasm.cpp Adds write-barrier handling for STOREIND and emits helper calls via genEmitHelperCall.
src/coreclr/jit/codegencommon.cpp Refactors TARGET_WASM preprocessor guards to share write-barrier helper selection while excluding non-WASM-only sections.

Copilot AI review requested due to automatic review settings February 7, 2026 16:52
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 4 out of 4 changed files in this pull request and generated 2 comments.

@AndyAyersMS AndyAyersMS enabled auto-merge (squash) February 7, 2026 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area-CodeGen-coreclr CLR JIT compiler in src/coreclr/src/jit and related components such as SuperPMI

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants