Skip to content

Conversation

@janvorli
Copy link
Member

The interpreter compiler was missing support for getting field address via helper call that is used in EnC scenarios.

This change adds such support for both static and instance fields. It makes all System.Runtime.Loader.Tests libraries tests pass when running interpreted.

The interpreter compiler was missing support for getting field
address via helper call that is used in EnC scenarios.

This change adds such support for both static and instance fields.
It makes all System.Runtime.Loader.Tests libraries tests pass when
running interpreted.
@janvorli janvorli added this to the 11.0.0 milestone Jan 22, 2026
@janvorli janvorli self-assigned this Jan 22, 2026
@janvorli janvorli requested review from BrzVlad and kg as code owners January 22, 2026 01:37
Copilot AI review requested due to automatic review settings January 22, 2026 01:37
@dotnet-policy-service
Copy link
Contributor

Tagging subscribers to this area: @BrzVlad, @janvorli, @kg
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 pull request adds interpreter support for accessing fields via helper calls, which is required for Edit and Continue (EnC) scenarios. The changes enable the interpreter to handle CORINFO_FIELD_STATIC_ADDR_HELPER and CORINFO_FIELD_INSTANCE_ADDR_HELPER field accessors, making System.Runtime.Loader.Tests libraries tests pass when running interpreted.

Changes:

  • Added support for static field address via helper (CORINFO_FIELD_STATIC_ADDR_HELPER) in EmitStaticFieldAddress
  • Added support for instance field address via helper (CORINFO_FIELD_INSTANCE_ADDR_HELPER) in LDFLDA, LDFLD, and STFLD operations
  • All implementations correctly call the appropriate helper and perform indirection when needed for load/store operations

@janvorli janvorli merged commit 4b5d314 into dotnet:main Jan 22, 2026
109 checks passed
@janvorli janvorli deleted the add-support-for-field-addr-via-helper branch January 22, 2026 19:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants