diff options
author | Sergey Andreenko <seandree@microsoft.com> | 2017-01-09 15:29:05 -0800 |
---|---|---|
committer | Sergey Andreenko <seandree@microsoft.com> | 2017-01-10 11:10:38 -0800 |
commit | 414c60066cb3b247bd9085124f162bd183530236 (patch) | |
tree | ad93c0f51137417fecf7f8dd81ea3cbd4851c65e /src | |
parent | 48298d2e2d31fd80528cc401f96705175e25ee8d (diff) | |
download | coreclr-414c60066cb3b247bd9085124f162bd183530236.tar.gz coreclr-414c60066cb3b247bd9085124f162bd183530236.tar.bz2 coreclr-414c60066cb3b247bd9085124f162bd183530236.zip |
SetReversePInvokeFrameSlot into gcInfo for reversePInvoke
Diffstat (limited to 'src')
-rw-r--r-- | src/jit/codegenxarch.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/jit/codegenxarch.cpp b/src/jit/codegenxarch.cpp index 8e0af48799..caf990c3d2 100644 --- a/src/jit/codegenxarch.cpp +++ b/src/jit/codegenxarch.cpp @@ -8381,6 +8381,14 @@ void CodeGen::genCreateAndStoreGCInfoX64(unsigned codeSize, unsigned prologSize gcInfoEncoder->SetSizeOfEditAndContinuePreservedArea(preservedAreaSize); } + if (compiler->opts.IsReversePInvoke()) + { + unsigned reversePInvokeFrameVarNumber = compiler->lvaReversePInvokeFrameVar; + assert(reversePInvokeFrameVarNumber != BAD_VAR_NUM && reversePInvokeFrameVarNumber < compiler->lvaRefCount); + LclVarDsc reversePInvokeFrameVar = compiler->lvaTable[reversePInvokeFrameVarNumber]; + gcInfoEncoder->SetReversePInvokeFrameSlot(reversePInvokeFrameVar.lvStkOffs); + } + gcInfoEncoder->Build(); // GC Encoder automatically puts the GC info in the right spot using ICorJitInfo::allocGCInfo(size_t) |