summaryrefslogtreecommitdiff
path: root/src/vm/jithelpers.cpp
diff options
context:
space:
mode:
authorSteve MacLean <sdmaclea.qdt@qualcommdatacenter.com>2018-01-30 12:38:31 -0500
committerSteve MacLean <sdmaclea.qdt@qualcommdatacenter.com>2018-01-30 17:26:47 -0500
commit0623a4f6f53c973ecea71db9d12faf193aa0bcd3 (patch)
treefc752eb5583a2283559fb932b83648dcc2ad5887 /src/vm/jithelpers.cpp
parentaae3107fb90725dd99589152e84400a5c70ba3ca (diff)
downloadcoreclr-0623a4f6f53c973ecea71db9d12faf193aa0bcd3.tar.gz
coreclr-0623a4f6f53c973ecea71db9d12faf193aa0bcd3.tar.bz2
coreclr-0623a4f6f53c973ecea71db9d12faf193aa0bcd3.zip
CORINFO_HELP_THROW_TYPE_NOT_SUPPORTED
Diffstat (limited to 'src/vm/jithelpers.cpp')
-rw-r--r--src/vm/jithelpers.cpp18
1 files changed, 18 insertions, 0 deletions
diff --git a/src/vm/jithelpers.cpp b/src/vm/jithelpers.cpp
index 48f5df9ff6..90c96580e3 100644
--- a/src/vm/jithelpers.cpp
+++ b/src/vm/jithelpers.cpp
@@ -4969,6 +4969,24 @@ HCIMPL0(void, JIT_ThrowPlatformNotSupportedException)
HCIMPLEND
/*********************************************************************/
+HCIMPL0(void, JIT_ThrowTypeNotSupportedException)
+{
+ FCALL_CONTRACT;
+
+ /* Make no assumptions about the current machine state */
+ ResetCurrentContext();
+
+ FC_GC_POLL_NOT_NEEDED(); // throws always open up for GC
+
+ HELPER_METHOD_FRAME_BEGIN_ATTRIB_NOPOLL(Frame::FRAME_ATTR_EXCEPTION); // Set up a frame
+
+ COMPlusThrow(kNotSupportedException, W("Arg_TypeNotSupported"));
+
+ HELPER_METHOD_FRAME_END();
+}
+HCIMPLEND
+
+/*********************************************************************/
HCIMPL0(void, JIT_Overflow)
{
FCALL_CONTRACT;