Skip to content

asm: add closure body signature helper#84

Merged
waywardmonkeys merged 1 commit into
forest-rs:mainfrom
waywardmonkeys:mine/closure-body-function-sig-helper
May 30, 2026
Merged

asm: add closure body signature helper#84
waywardmonkeys merged 1 commit into
forest-rs:mainfrom
waywardmonkeys:mine/closure-body-function-sig-helper

Conversation

@waywardmonkeys
Copy link
Copy Markdown
Contributor

Add FunctionSig::closure_body for compiler frontends that emit closure bodies and call_indirect sites. The helper builds the callee-visible closure body signature by prepending the injected aggregate environment argument to the caller-visible call signature.

Document the relationship in the call_indirect builder docs and add unit/doctest coverage for the helper.

Add FunctionSig::closure_body for compiler frontends that emit closure bodies and call_indirect sites. The helper builds the callee-visible closure body signature by prepending the injected aggregate environment argument to the caller-visible call signature.

Document the relationship in the call_indirect builder docs and add unit/doctest coverage for the helper.
@waywardmonkeys waywardmonkeys merged commit 4f273f0 into forest-rs:main May 30, 2026
15 checks passed
@waywardmonkeys waywardmonkeys deleted the mine/closure-body-function-sig-helper branch May 30, 2026 14:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant