Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions src/coreclr/jit/emit.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -10372,9 +10372,10 @@ void emitter::emitStackPopLargeStk(BYTE* addr, bool isCall, unsigned char callIn
assert(regMaskTP::FromIntRegSet(SingleTypeRegSet(byrefRegs << REG_INT_FIRST)) == emitThisByrefRegs);

#ifdef JIT32_GCENCODER
// x86 does not report GC refs/byrefs in return registers at call sites
gcrefRegs &= ~(1u << (REG_INTRET - REG_INT_FIRST));
byrefRegs &= ~(1u << (REG_INTRET - REG_INT_FIRST));
// x86 only reports GC refs/byrefs in callee saves at call sites -- no return registers.
unsigned reportedRegs = (RBM_INT_CALLEE_SAVED | RBM_EBP).GetIntRegSet() >> REG_INT_FIRST;
gcrefRegs &= reportedRegs;
byrefRegs &= reportedRegs;

// For the general encoder, we always have to record calls, so we don't take this early return. /* Are there any
// args to pop at this call site?
Expand Down
Loading