summaryrefslogtreecommitdiff
path: root/src/inc/jithelpers.h
diff options
context:
space:
mode:
authorBruce Forstall <brucefo@microsoft.com>2017-03-18 08:12:52 -0700
committerJan Kotas <jkotas@microsoft.com>2017-03-18 08:12:52 -0700
commitb0d7f96936e4560b02ba4e8d46cb60dfdf086e46 (patch)
tree8820fcf317cafda88f03a2116348132960bc1028 /src/inc/jithelpers.h
parent63bc667a52bc0795b16729bb0e7fddb20395ac4c (diff)
downloadcoreclr-b0d7f96936e4560b02ba4e8d46cb60dfdf086e46.tar.gz
coreclr-b0d7f96936e4560b02ba4e8d46cb60dfdf086e46.tar.bz2
coreclr-b0d7f96936e4560b02ba4e8d46cb60dfdf086e46.zip
Remove JIT-EE version ifdefs (#10273)
* Remove COR_JIT_EE_VERSION define Currently, we maintain two versions of the JIT-EE interface in the source tree: the current version, and .NET 4.6 version. This is managed by the `COR_JIT_EE_VERSION` define. Any new changes to the JIT-EE interface must be put under `#if COR_JIT_EE_VERSION > 460`. As of now, there are quite a few of these `#if` statements in the tree. We started doing this so we could build and ship a CTP (Community Technology Preview) version of the JIT from the current source tree that runs against earlier versions of the runtime that are widely available to customers, so those customers can try out the new JIT and give us early feedback. This was done during the RyuJIT/x64 bring-up before shipping .NET 4.6, to get as much feedback as possible before replacing JIT64. After 4.6 shipped, we re-based the old version of the JIT-EE interface to the 4.6 version, and started adding the above `#if` conditions, with the thought that if we ever shipped another CTP, it would be expected to run on top of 4.6. We have not shipped such a thing, and we currently have no plans to build another CTP in the same way we did before. (Early adopters can try out the "live" JIT in the .NET Core open source project, although that JIT can't be used on the desktop.) So, to simplify the code, and reduce the cost of adding to or changing the JIT-EE interface, we are removing the `COR_JIT_EE_VERSION` define.
Diffstat (limited to 'src/inc/jithelpers.h')
-rw-r--r--src/inc/jithelpers.h15
1 files changed, 0 insertions, 15 deletions
diff --git a/src/inc/jithelpers.h b/src/inc/jithelpers.h
index 5f01a1b464..4e56250b04 100644
--- a/src/inc/jithelpers.h
+++ b/src/inc/jithelpers.h
@@ -75,9 +75,7 @@
DYNAMICJITHELPER(CORINFO_HELP_NEWSFAST, JIT_New, CORINFO_HELP_SIG_REG_ONLY)
DYNAMICJITHELPER(CORINFO_HELP_NEWSFAST_ALIGN8, JIT_New, CORINFO_HELP_SIG_REG_ONLY)
JITHELPER(CORINFO_HELP_NEW_MDARR, JIT_NewMDArr,CORINFO_HELP_SIG_8_VA)
-#if COR_JIT_EE_VERSION > 460
JITHELPER(CORINFO_HELP_NEW_MDARR_NONVARARG, JIT_NewMDArrNonVarArg,CORINFO_HELP_SIG_4_STACK)
-#endif
JITHELPER(CORINFO_HELP_NEWARR_1_DIRECT, JIT_NewArr1,CORINFO_HELP_SIG_REG_ONLY)
DYNAMICJITHELPER(CORINFO_HELP_NEWARR_1_OBJ, JIT_NewArr1,CORINFO_HELP_SIG_REG_ONLY)
DYNAMICJITHELPER(CORINFO_HELP_NEWARR_1_VC, JIT_NewArr1,CORINFO_HELP_SIG_REG_ONLY)
@@ -120,9 +118,7 @@
JITHELPER(CORINFO_HELP_RNGCHKFAIL, JIT_RngChkFail, CORINFO_HELP_SIG_REG_ONLY)
JITHELPER(CORINFO_HELP_OVERFLOW, JIT_Overflow, CORINFO_HELP_SIG_REG_ONLY)
JITHELPER(CORINFO_HELP_THROWDIVZERO, JIT_ThrowDivZero, CORINFO_HELP_SIG_REG_ONLY)
-#if COR_JIT_EE_VERSION > 460
JITHELPER(CORINFO_HELP_THROWNULLREF, JIT_ThrowNullRef, CORINFO_HELP_SIG_REG_ONLY)
-#endif // COR_JIT_EE_VERSION
JITHELPER(CORINFO_HELP_INTERNALTHROW, JIT_InternalThrow, CORINFO_HELP_SIG_REG_ONLY)
JITHELPER(CORINFO_HELP_VERIFICATION, IL_VerificationError,CORINFO_HELP_SIG_REG_ONLY)
JITHELPER(CORINFO_HELP_SEC_UNMGDCODE_EXCPT, JIT_SecurityUnmanagedCodeException, CORINFO_HELP_SIG_REG_ONLY)
@@ -206,12 +202,7 @@
JITHELPER(CORINFO_HELP_GETFIELDADDR, JIT_GetFieldAddr,CORINFO_HELP_SIG_REG_ONLY)
JITHELPER(CORINFO_HELP_GETSTATICFIELDADDR_CONTEXT, NULL, CORINFO_HELP_SIG_CANNOT_USE_ALIGN_STUB)
-
-#if COR_JIT_EE_VERSION > 460
JITHELPER(CORINFO_HELP_GETSTATICFIELDADDR_TLS, NULL, CORINFO_HELP_SIG_CANNOT_USE_ALIGN_STUB)
-#else // COR_JIT_EE_VERSION
- JITHELPER(CORINFO_HELP_GETSTATICFIELDADDR_TLS, JIT_GetStaticFieldAddr_Tls,CORINFO_HELP_SIG_REG_ONLY)
-#endif // COR_JIT_EE_VERSION
JITHELPER(CORINFO_HELP_GETGENERICS_GCSTATIC_BASE, JIT_GetGenericsGCStaticBase,CORINFO_HELP_SIG_REG_ONLY)
JITHELPER(CORINFO_HELP_GETGENERICS_NONGCSTATIC_BASE, JIT_GetGenericsNonGCStaticBase,CORINFO_HELP_SIG_REG_ONLY)
@@ -295,11 +286,9 @@
JITHELPER(CORINFO_HELP_READYTORUN_CHKCAST, NULL, CORINFO_HELP_SIG_NO_ALIGN_STUB)
JITHELPER(CORINFO_HELP_READYTORUN_STATIC_BASE, NULL, CORINFO_HELP_SIG_NO_ALIGN_STUB)
JITHELPER(CORINFO_HELP_READYTORUN_VIRTUAL_FUNC_PTR, NULL, CORINFO_HELP_SIG_NO_ALIGN_STUB)
-#if COR_JIT_EE_VERSION > 460
JITHELPER(CORINFO_HELP_READYTORUN_GENERIC_HANDLE, NULL, CORINFO_HELP_SIG_NO_ALIGN_STUB)
JITHELPER(CORINFO_HELP_READYTORUN_DELEGATE_CTOR, NULL, CORINFO_HELP_SIG_NO_ALIGN_STUB)
JITHELPER(CORINFO_HELP_READYTORUN_GENERIC_STATIC_BASE, NULL, CORINFO_HELP_SIG_NO_ALIGN_STUB)
-#endif // COR_JIT_EE_VERSION
JITHELPER(CORINFO_HELP_EE_PRESTUB, ThePreStub, CORINFO_HELP_SIG_NO_ALIGN_STUB)
@@ -361,8 +350,6 @@
JITHELPER(CORINFO_HELP_LOOP_CLONE_CHOICE_ADDR, JIT_LoopCloneChoiceAddr, CORINFO_HELP_SIG_REG_ONLY)
JITHELPER(CORINFO_HELP_DEBUG_LOG_LOOP_CLONING, JIT_DebugLogLoopCloning, CORINFO_HELP_SIG_REG_ONLY)
-#if COR_JIT_EE_VERSION > 460
-
JITHELPER(CORINFO_HELP_THROW_ARGUMENTEXCEPTION, JIT_ThrowArgumentException, CORINFO_HELP_SIG_REG_ONLY)
JITHELPER(CORINFO_HELP_THROW_ARGUMENTOUTOFRANGEEXCEPTION, JIT_ThrowArgumentOutOfRangeException, CORINFO_HELP_SIG_REG_ONLY)
@@ -374,8 +361,6 @@
JITHELPER(CORINFO_HELP_GVMLOOKUP_FOR_SLOT, NULL, CORINFO_HELP_SIG_NO_ALIGN_STUB)
-#endif // COR_JIT_EE_VERSION
-
#undef JITHELPER
#undef DYNAMICJITHELPER
#undef JITHELPER