Repository navigation
Fix virtual vtable call lowering without fixed registers - #136203
MichalStrehovsky merged 1 commit into
Conversation
Co-authored-by: Copilot <[email protected]> Copilot-Session: 814af5e0-f67c-48c6-b408-8c375a899e57
|
Tagging subscribers to 'arch-wasm': @lewing, @pavelsavara |
|
Azure Pipelines: Successfully started running 5 pipeline(s). 11 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
|
Tagging subscribers to this area: @JulieLeeMSFT, @jakobbotsch |
There was a problem hiding this comment.
🔵 Needs a closer look
The affected WebAssembly NativeAOT MinOpts path needs build and runtime validation, which was not performed here.
No open issues 🎉
What changed in this PR
Updates JIT virtual vtable call lowering to handle targets without fixed registers while preserving the existing fixed-register path.
Changes:
- Retains the
CallArgto access its argument node directly. - Selects the appropriate
thispointer use for temporary-local replacement.
| File | Description |
|---|---|
src/coreclr/jit/lower.cpp |
Handles virtual-call arguments without requiring GT_PUTARG_REG on targets without fixed registers. |
Review effort: Balanced
adamperlin
left a comment
There was a problem hiding this comment.
This looks good to me. Yes, ReadyToRun doesn't do virtual calls like this and uses virtual stub dispatch at the moment, so it makes sense that we hadn't hit fixed this assert yet. I believe we'd only expect to see this in MinOpts on other targets too!
Was running into
Assertion failed 'thisArgNode->OperIs(GT_PUTARG_REG)' in 'StackTraces+TestLineNumbers:MethodWithMeta data()' during 'Lowering nodeinfo' (IL size 144; hash 0xc83021f1; MinOpts).I assume ReadyToRun doesn't do virtual calls like this? Native AOT also only hits this on MinOpts.