summaryrefslogtreecommitdiff
path: root/src/vm/jithelpers.cpp
diff options
context:
space:
mode:
authorTanner Gooding <tagoo@outlook.com>2018-11-05 15:37:14 -0800
committerGitHub <noreply@github.com>2018-11-05 15:37:14 -0800
commitd3a7c973723bf2610c7dcdcd00318c06a72a36f8 (patch)
treef38f09f96a6078f4bbd812e5c0029af42cc792f0 /src/vm/jithelpers.cpp
parent0eb2dbbc3cd45b2a118aa44ac05bac9b8ca1eec4 (diff)
downloadcoreclr-d3a7c973723bf2610c7dcdcd00318c06a72a36f8.tar.gz
coreclr-d3a7c973723bf2610c7dcdcd00318c06a72a36f8.tar.bz2
coreclr-d3a7c973723bf2610c7dcdcd00318c06a72a36f8.zip
Updating the importer to throw a NotImplementedException if it finds a mustExpand intrinsic that it can't expand (#20792)
* Updating the importer to throw a NotImplementedException if it finds a mustExpand hwintrinsic that it can't expand * Updating the JITEEVersionIdentifier
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 f92e52b479..624c62273a 100644
--- a/src/vm/jithelpers.cpp
+++ b/src/vm/jithelpers.cpp
@@ -4971,6 +4971,24 @@ HCIMPL0(void, JIT_ThrowArgumentOutOfRangeException)
HCIMPLEND
/*********************************************************************/
+HCIMPL0(void, JIT_ThrowNotImplementedException)
+{
+ 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(kNotImplementedException);
+
+ HELPER_METHOD_FRAME_END();
+}
+HCIMPLEND
+
+/*********************************************************************/
HCIMPL0(void, JIT_ThrowPlatformNotSupportedException)
{
FCALL_CONTRACT;