Skip to content

Commit

Permalink
Add ISMETHOD and ISMETHODHASH macros (#59993)
Browse files Browse the repository at this point in the history
Co-authored-by: Andy Ayers <andya@microsoft.com>
  • Loading branch information
EgorBo and AndyAyersMS authored Oct 9, 2021
1 parent 9fbc728 commit 9381777
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
10 changes: 4 additions & 6 deletions src/coreclr/jit/gentree.h
Original file line number Diff line number Diff line change
Expand Up @@ -4774,12 +4774,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
3 changes: 3 additions & 0 deletions src/coreclr/jit/jit.h
Original file line number Diff line number Diff line change
Expand Up @@ -529,6 +529,9 @@ const bool dspGCtbls = true;
if (JitTls::GetCompiler()->verbose) \
JitTls::GetCompiler()->fgTableDispBasicBlock(b);
#define VERBOSE JitTls::GetCompiler()->verbose
// Development-time only macros, simplify guards for specified IL methods one wants to debug/add log messages for
#define ISMETHOD(name) (strcmp(JitTls::GetCompiler()->impInlineRoot()->info.compMethodName, name) == 0)
#define ISMETHODHASH(hash) (JitTls::GetCompiler()->impInlineRoot()->info.compMethodHash() == hash)
#else // !DEBUG
#define JITDUMP(...)
#define JITDUMPEXEC(x)
Expand Down

0 comments on commit 9381777

Please sign in to comment.