Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add ISMETHOD and ISMETHODHASH macros #59993

Merged
merged 5 commits into from
Oct 9, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 4 additions & 6 deletions src/coreclr/jit/gentree.h
Original file line number Diff line number Diff line change
Expand Up @@ -4754,12 +4754,10 @@ struct GenTreeCall final : public GenTree

void ResetArgInfo();

GenTreeCallFlags gtCallMoreFlags; // in addition to gtFlags

unsigned char gtCallType : 3; // value from the gtCallTypes enumeration
unsigned char gtReturnType : 5; // exact return type

CORINFO_CLASS_HANDLE gtRetClsHnd; // The return type handle of the call if it is a struct; always available
GenTreeCallFlags gtCallMoreFlags; // in addition to gtFlags
gtCallTypes gtCallType : 3; // value from the gtCallTypes enumeration
var_types gtReturnType : 5; // exact return type
CORINFO_CLASS_HANDLE gtRetClsHnd; // The return type handle of the call if it is a struct; always available

union {
// only used for CALLI unmanaged calls (CT_INDIRECT)
Expand Down
4 changes: 4 additions & 0 deletions src/coreclr/jit/jit.h
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,8 @@ const bool dspGCtbls = true;
if (JitTls::GetCompiler()->verbose) \
JitTls::GetCompiler()->fgTableDispBasicBlock(b);
#define VERBOSE JitTls::GetCompiler()->verbose
#define ISMETHOD(name) !strcmp(JitTls::GetCompiler()->info.compMethodName, name)
#define ISMETHODHASH(hash) !strcmp(JitTls::GetCompiler()->info.compMethodHash, hash)
EgorBo marked this conversation as resolved.
Show resolved Hide resolved
#else // !DEBUG
#define JITDUMP(...)
#define JITDUMPEXEC(x)
Expand All @@ -542,6 +544,8 @@ const bool dspGCtbls = true;
#define DISPTREERANGE(range, t)
#define DISPBLOCK(b)
#define VERBOSE 0
#define ISMETHOD(name)
#define ISMETHODHASH(hash)
#endif // !DEBUG

/*****************************************************************************
Expand Down