Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/corert.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Kotas <jkotas@microsoft.com>2016-05-16 23:21:53 +0300
committerJan Kotas <jkotas@microsoft.com>2016-05-16 23:21:53 +0300
commitc5d377cbfebd3c95daa253f32c6457fa4888b8d6 (patch)
tree9e8107566e8d198ab535e2e3948f93f2833fb346 /src/Native/Runtime/portable.cpp
parent692e6fef22e9bff0c46ee01c92367e657c404e91 (diff)
Add support for PInvoke helpers to the IL compiler. (#1274)
Diffstat (limited to 'src/Native/Runtime/portable.cpp')
-rw-r--r--src/Native/Runtime/portable.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/src/Native/Runtime/portable.cpp b/src/Native/Runtime/portable.cpp
index 077af8423..1b035d7cb 100644
--- a/src/Native/Runtime/portable.cpp
+++ b/src/Native/Runtime/portable.cpp
@@ -55,9 +55,20 @@ struct alloc_context
int alloc_count;
};
+#if defined(USE_PORTABLE_HELPERS) || !defined(_WIN32)
//
// PInvoke
//
+COOP_PINVOKE_HELPER(void, RhpPInvoke, (void* pFrame))
+{
+ // TODO: RhpPInvoke
+}
+
+COOP_PINVOKE_HELPER(void, RhpPInvokeReturn, (void* pFrame))
+{
+ // TODO: RhpReversePInvokeReturn
+}
+
COOP_PINVOKE_HELPER(void, RhpReversePInvoke2, (ReversePInvokeFrame* pFrame))
{
Thread* pCurThread = ThreadStore::RawGetCurrentThread();
@@ -73,7 +84,6 @@ COOP_PINVOKE_HELPER(void, RhpReversePInvokeReturn, (ReversePInvokeFrame* pFrame)
pFrame->m_savedThread->ReversePInvokeReturn(pFrame);
}
-#if defined(USE_PORTABLE_HELPERS) || !defined(_WIN32)
//
// Allocations
//