diff options
author | sandreenko <seandree@microsoft.com> | 2017-01-10 17:12:52 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-10 17:12:52 -0800 |
commit | 8adfff094df36eaf0a62f506f63d75ff6cf3527f (patch) | |
tree | 56bad9c3497d7810b64f9279aaa638db6c095416 /src | |
parent | decdf7d5a2ad1b8163d5d6756a1c43a6a028f438 (diff) | |
parent | d4e754281ada1167a493dcdc943b80db2381e344 (diff) | |
download | coreclr-8adfff094df36eaf0a62f506f63d75ff6cf3527f.tar.gz coreclr-8adfff094df36eaf0a62f506f63d75ff6cf3527f.tar.bz2 coreclr-8adfff094df36eaf0a62f506f63d75ff6cf3527f.zip |
Merge pull request #8862 from sandreenko/ReversePInvoke-encoding-in-gc
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 99285062c4..827000b920 100644 --- a/src/jit/codegenxarch.cpp +++ b/src/jit/codegenxarch.cpp @@ -8376,6 +8376,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) |