This does not seem to be used for anything meaningful.
Fix #83052
unsigned lvaInlinedPInvokeFrameVar; // variable representing the InlinedCallFrame
unsigned lvaReversePInvokeFrameVar; // variable representing the reverse PInvoke frame
-#if FEATURE_FIXED_OUT_ARGS
- unsigned lvaPInvokeFrameRegSaveVar; // variable representing the RegSave for PInvoke inlining.
-#endif
unsigned lvaMonAcquired; // boolean variable introduced into in synchronized methods
// that tracks whether the lock has been taken
(varNum == lvaInlinedPInvokeFrameVar) || (varNum == lvaStubArgumentVar) || (varNum == lvaRetAddrVar);
#if FEATURE_FIXED_OUT_ARGS
- result = result || (varNum == lvaPInvokeFrameRegSaveVar) || (varNum == lvaOutgoingArgSpaceVar);
+ result = result || (varNum == lvaOutgoingArgSpaceVar);
#endif
#if defined(FEATURE_EH_FUNCLETS)
LclVarDsc* varDsc = lvaGetDesc(lvaInlinedPInvokeFrameVar);
// Make room for the inlined frame.
lvaSetStruct(lvaInlinedPInvokeFrameVar, typGetBlkLayout(eeGetEEInfo()->inlinedCallFrameInfo.size), false);
-#if FEATURE_FIXED_OUT_ARGS
- // Grab and reserve space for TCB, Frame regs used in PInvoke epilog to pop the inlined frame.
- // See genPInvokeMethodEpilog() for use of the grabbed var. This is only necessary if we are
- // not using the P/Invoke helpers.
- if (!opts.ShouldUsePInvokeHelpers() && compJmpOpUsed)
- {
- lvaPInvokeFrameRegSaveVar = lvaGrabTempWithImplicitUse(false DEBUGARG("PInvokeFrameRegSave Var"));
- varDsc = lvaGetDesc(lvaPInvokeFrameRegSaveVar);
- lvaSetStruct(lvaPInvokeFrameRegSaveVar, typGetBlkLayout(2 * REGSIZE_BYTES), false);
- }
-#endif
}
// Do we need to insert a "JustMyCode" callback?
ilName = "ReturnAddress";
}
#if FEATURE_FIXED_OUT_ARGS
- else if (lclNum == lvaPInvokeFrameRegSaveVar)
- {
- ilName = "PInvokeFrameRegSave";
- }
else if (lclNum == lvaOutgoingArgSpaceVar)
{
ilName = "OutArgs";
lvaInlinedPInvokeFrameVar = BAD_VAR_NUM;
lvaReversePInvokeFrameVar = BAD_VAR_NUM;
#if FEATURE_FIXED_OUT_ARGS
- lvaPInvokeFrameRegSaveVar = BAD_VAR_NUM;
- lvaOutgoingArgSpaceVar = BAD_VAR_NUM;
- lvaOutgoingArgSpaceSize = PhasedVar<unsigned>();
+ lvaOutgoingArgSpaceVar = BAD_VAR_NUM;
+ lvaOutgoingArgSpaceSize = PhasedVar<unsigned>();
#endif // FEATURE_FIXED_OUT_ARGS
#ifdef JIT32_GCENCODER
lvaLocAllocSPvar = BAD_VAR_NUM;