summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSergey Andreenko <seandree@microsoft.com>2017-01-09 15:29:05 -0800
committerSergey Andreenko <seandree@microsoft.com>2017-01-10 11:10:38 -0800
commit414c60066cb3b247bd9085124f162bd183530236 (patch)
treead93c0f51137417fecf7f8dd81ea3cbd4851c65e /src
parent48298d2e2d31fd80528cc401f96705175e25ee8d (diff)
downloadcoreclr-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.cpp8
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)