summaryrefslogtreecommitdiff
path: root/src/jit/compiler.hpp
diff options
context:
space:
mode:
authorBrian Sullivan <briansul@microsoft.com>2017-10-19 11:14:58 -0700
committerGitHub <noreply@github.com>2017-10-19 11:14:58 -0700
commitfbeb7be2b39ec562d190b726e9974d48d00d84cb (patch)
treea92189fc1fc119360f0b73e03e1f838ba239a791 /src/jit/compiler.hpp
parent4981c3af46806db830c3d69851794b96adb8912c (diff)
parent99e6a6b20c57038472b99ffd107c12dc08aa4e09 (diff)
downloadcoreclr-fbeb7be2b39ec562d190b726e9974d48d00d84cb.tar.gz
coreclr-fbeb7be2b39ec562d190b726e9974d48d00d84cb.tar.bz2
coreclr-fbeb7be2b39ec562d190b726e9974d48d00d84cb.zip
Merge pull request #14582 from briansull/cleanup-iconhdl
Cleanup IconHandle nodes
Diffstat (limited to 'src/jit/compiler.hpp')
-rw-r--r--src/jit/compiler.hpp22
1 files changed, 9 insertions, 13 deletions
diff --git a/src/jit/compiler.hpp b/src/jit/compiler.hpp
index ef6e955668..9743173f5a 100644
--- a/src/jit/compiler.hpp
+++ b/src/jit/compiler.hpp
@@ -1038,8 +1038,7 @@ inline GenTreePtr Compiler::gtNewLargeOperNode(genTreeOps oper, var_types type,
* that may need to be fixed up).
*/
-inline GenTreePtr Compiler::gtNewIconHandleNode(
- size_t value, unsigned flags, FieldSeqNode* fields, unsigned handle1, void* handle2)
+inline GenTreePtr Compiler::gtNewIconHandleNode(size_t value, unsigned flags, FieldSeqNode* fields)
{
GenTreePtr node;
assert((flags & (GTF_ICON_HDL_MASK | GTF_ICON_FIELD_OFF)) != 0);
@@ -1052,9 +1051,6 @@ inline GenTreePtr Compiler::gtNewIconHandleNode(
#if defined(LATE_DISASM)
node = new (this, LargeOpOpcode()) GenTreeIntCon(TYP_I_IMPL, value, fields DEBUGARG(/*largeNode*/ true));
-
- node->gtIntCon.gtIconHdl.gtIconHdl1 = handle1;
- node->gtIntCon.gtIconHdl.gtIconHdl2 = handle2;
#else
node = new (this, GT_CNS_INT) GenTreeIntCon(TYP_I_IMPL, value, fields);
#endif
@@ -1069,7 +1065,7 @@ inline GenTreePtr Compiler::gtNewIconHandleNode(
* These are versions for each specific type of HANDLE
*/
-inline GenTreePtr Compiler::gtNewIconEmbScpHndNode(CORINFO_MODULE_HANDLE scpHnd, unsigned hnd1, void* hnd2)
+inline GenTreePtr Compiler::gtNewIconEmbScpHndNode(CORINFO_MODULE_HANDLE scpHnd)
{
void *embedScpHnd, *pEmbedScpHnd;
@@ -1077,12 +1073,12 @@ inline GenTreePtr Compiler::gtNewIconEmbScpHndNode(CORINFO_MODULE_HANDLE scpHnd,
assert((!embedScpHnd) != (!pEmbedScpHnd));
- return gtNewIconEmbHndNode(embedScpHnd, pEmbedScpHnd, GTF_ICON_SCOPE_HDL, hnd1, hnd2, scpHnd);
+ return gtNewIconEmbHndNode(embedScpHnd, pEmbedScpHnd, GTF_ICON_SCOPE_HDL, scpHnd);
}
//-----------------------------------------------------------------------------
-inline GenTreePtr Compiler::gtNewIconEmbClsHndNode(CORINFO_CLASS_HANDLE clsHnd, unsigned hnd1, void* hnd2)
+inline GenTreePtr Compiler::gtNewIconEmbClsHndNode(CORINFO_CLASS_HANDLE clsHnd)
{
void *embedClsHnd, *pEmbedClsHnd;
@@ -1090,12 +1086,12 @@ inline GenTreePtr Compiler::gtNewIconEmbClsHndNode(CORINFO_CLASS_HANDLE clsHnd,
assert((!embedClsHnd) != (!pEmbedClsHnd));
- return gtNewIconEmbHndNode(embedClsHnd, pEmbedClsHnd, GTF_ICON_CLASS_HDL, hnd1, hnd2, clsHnd);
+ return gtNewIconEmbHndNode(embedClsHnd, pEmbedClsHnd, GTF_ICON_CLASS_HDL, clsHnd);
}
//-----------------------------------------------------------------------------
-inline GenTreePtr Compiler::gtNewIconEmbMethHndNode(CORINFO_METHOD_HANDLE methHnd, unsigned hnd1, void* hnd2)
+inline GenTreePtr Compiler::gtNewIconEmbMethHndNode(CORINFO_METHOD_HANDLE methHnd)
{
void *embedMethHnd, *pEmbedMethHnd;
@@ -1103,12 +1099,12 @@ inline GenTreePtr Compiler::gtNewIconEmbMethHndNode(CORINFO_METHOD_HANDLE methHn
assert((!embedMethHnd) != (!pEmbedMethHnd));
- return gtNewIconEmbHndNode(embedMethHnd, pEmbedMethHnd, GTF_ICON_METHOD_HDL, hnd1, hnd2, methHnd);
+ return gtNewIconEmbHndNode(embedMethHnd, pEmbedMethHnd, GTF_ICON_METHOD_HDL, methHnd);
}
//-----------------------------------------------------------------------------
-inline GenTreePtr Compiler::gtNewIconEmbFldHndNode(CORINFO_FIELD_HANDLE fldHnd, unsigned hnd1, void* hnd2)
+inline GenTreePtr Compiler::gtNewIconEmbFldHndNode(CORINFO_FIELD_HANDLE fldHnd)
{
void *embedFldHnd, *pEmbedFldHnd;
@@ -1116,7 +1112,7 @@ inline GenTreePtr Compiler::gtNewIconEmbFldHndNode(CORINFO_FIELD_HANDLE fldHnd,
assert((!embedFldHnd) != (!pEmbedFldHnd));
- return gtNewIconEmbHndNode(embedFldHnd, pEmbedFldHnd, GTF_ICON_FIELD_HDL, hnd1, hnd2, fldHnd);
+ return gtNewIconEmbHndNode(embedFldHnd, pEmbedFldHnd, GTF_ICON_FIELD_HDL, fldHnd);
}
/*****************************************************************************/