Skip to content

[WIP] Interpreter boxing/unboxing #115549

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 12 commits into from
May 15, 2025
Merged

[WIP] Interpreter boxing/unboxing #115549

merged 12 commits into from
May 15, 2025

Conversation

kg
Copy link
Member

@kg kg commented May 14, 2025

Adds interp opcodes for box, unbox, and unbox_any. The interpreter compiler looks up the appropriate helper ftn for the operation in question at compile time and then we invoke the helper to perform the actual box/unbox operation.

Also refactors a couple inconsistent names in the interpreter (MethodDesc/MethodToken -> MethodHandle)

Copy link
Contributor

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

@kg kg mentioned this pull request May 14, 2025
60 tasks
@kg kg marked this pull request as ready for review May 15, 2025 15:58
@kg kg requested a review from janvorli as a code owner May 15, 2025 15:58
Copy link
Member

@janvorli janvorli left a comment

Choose a reason for hiding this comment

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

LGTM, thank you

@kg kg merged commit 707831e into dotnet:main May 15, 2025
99 of 102 checks passed
kg added a commit to kg/runtime that referenced this pull request May 16, 2025
* Introduce box/unbox/unbox_any opcodes into the interpreter
* Interpreter name normalization
@github-actions github-actions bot locked and limited conversation to collaborators Jun 15, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants