Skip to content

bring wasm R2R abi up to date - #130648

Merged
AndyAyersMS merged 2 commits into
dotnet:mainfrom
AndyAyersMS:wasm-abi-doc-update
Jul 14, 2026
Merged

AndyAyersMS merged 2 commits into
dotnet:mainfrom
AndyAyersMS:wasm-abi-doc-update

Conversation

@AndyAyersMS

Copy link
Copy Markdown
Member

Updates clr-abi.md to reflect the current CoreCLR Wasm ReadyToRun ABI implementation, including portable-entrypoint calls, R2R/interpreter transitions, frame layout, funclets, localloc unwinding, and stack-walking pseudocode.

Note

This PR description was generated by GitHub Copilot.

Copilot AI review requested due to automatic review settings July 13, 2026 22:23
@github-actions github-actions Bot added the area-Infrastructure-coreclr Only use for closed issues label Jul 13, 2026
@AndyAyersMS

Copy link
Copy Markdown
Member Author

@adamperlin PTAL
fyi @dotnet/wasm-contrib

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 updates clr-abi.md to document the current CoreCLR WebAssembly ReadyToRun ABI behavior, expanding the existing WASM ABI section with details around portable entrypoints, signature lowering, stack frame layout/unwinding, and interpreter transition thunks.

Changes:

  • Updates the portable entrypoints section to describe Wasm R2R + interpreter usage and the meaning of the first PortableEntryPoint field.
  • Adjusts WASM type lowering docs (notably empty structs) and expands the outbound-call ABI description to include pep_ptr and _pActualCode usage.
  • Adds a detailed “R2R stack frame layout” section including a stack-walking pseudocode sketch and updated interpreter stub descriptions.

Comment thread docs/design/coreclr/botr/clr-abi.md Resolved
Comment thread docs/design/coreclr/botr/clr-abi.md Resolved
Comment thread docs/design/coreclr/botr/clr-abi.md Resolved
Comment thread docs/design/coreclr/botr/clr-abi.md Resolved
Comment thread docs/design/coreclr/botr/clr-abi.md Resolved

@adamperlin adamperlin left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just a few small suggestions

Copilot AI review requested due to automatic review settings July 13, 2026 23:32

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

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 1 out of 1 changed files in this pull request and generated 6 comments.

Comment thread docs/design/coreclr/botr/clr-abi.md Resolved
Comment thread docs/design/coreclr/botr/clr-abi.md Resolved
Comment thread docs/design/coreclr/botr/clr-abi.md Resolved
Comment thread docs/design/coreclr/botr/clr-abi.md Resolved
Comment thread docs/design/coreclr/botr/clr-abi.md Resolved
Comment thread docs/design/coreclr/botr/clr-abi.md Resolved
@AndyAyersMS

Copy link
Copy Markdown
Member Author

(ignoring bot feedback about 32 vs 64 bit for now)

@AndyAyersMS
AndyAyersMS merged commit 08c6b6f into dotnet:main Jul 14, 2026
28 checks passed
@dotnet-milestone-bot dotnet-milestone-bot Bot added this to the 11.0-preview7 milestone Jul 15, 2026
@github-actions github-actions Bot locked and limited conversation to collaborators Aug 15, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

area-Infrastructure-coreclr Only use for closed issues

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

4 participants