if (InterpretationStubToMethodInfo(stub) == md)
{
-#ifdef _DEBUG
+#if INTERP_TRACING
if (s_TraceInterpreterJITTransitionFlag.val(CLRConfig::INTERNAL_TraceInterpreterJITTransition))
{
fprintf(GetLogFile(), "JITting method %s:%s.\n", md->m_pszDebugClassName, md->m_pszDebugMethodName);
}
-#endif // _DEBUG
+#endif // INTERP_TRACING
CORJIT_FLAGS jitFlags(CORJIT_FLAGS::CORJIT_FLAG_MAKEFINALCODE);
NewHolder<COR_ILMETHOD_DECODER> pDecoder(NULL);
// Dynamic methods (e.g., IL stubs) do not have an IL decoder but may
case CEE_CALL:
DoCall(/*virtualCall*/false);
-#ifdef _DEBUG
+#if INTERP_TRACING
if (s_TraceInterpreterILFlag.val(CLRConfig::INTERNAL_TraceInterpreterIL))
{
fprintf(GetLogFile(), " Returning to method %s, stub num %d.\n", methName, m_methInfo->m_stubNum);
}
-#endif // _DEBUG
+#endif // INTERP_TRACING
continue;
case CEE_CALLVIRT:
DoCall(/*virtualCall*/true);
-#ifdef _DEBUG
+#if INTERP_TRACING
if (s_TraceInterpreterILFlag.val(CLRConfig::INTERNAL_TraceInterpreterIL))
{
fprintf(GetLogFile(), " Returning to method %s, stub num %d.\n", methName, m_methInfo->m_stubNum);
}
-#endif // _DEBUG
+#endif // INTERP_TRACING
continue;
// HARD
continue;
case CEE_NEWOBJ:
NewObj();
-#ifdef _DEBUG
+#if INTERP_TRACING
if (s_TraceInterpreterILFlag.val(CLRConfig::INTERNAL_TraceInterpreterIL))
{
fprintf(GetLogFile(), " Returning to method %s, stub num %d.\n", methName, m_methInfo->m_stubNum);
}
-#endif // _DEBUG
+#endif // INTERP_TRACING
continue;
case CEE_CASTCLASS:
CastClass();
*ptr = val;
m_curStackHt -= 2;
-#ifdef _DEBUG
+#if INTERP_TRACING
if (s_TraceInterpreterILFlag.val(CLRConfig::INTERNAL_TraceInterpreterIL) &&
IsInLocalArea(ptr))
{
PrintLocals();
}
-#endif // _DEBUG
+#endif // INTERP_TRACING
}
void Interpreter::StInd_Ref()
SetObjectReferenceUnchecked(ptr, val);
m_curStackHt -= 2;
-#ifdef _DEBUG
+#if INTERP_TRACING
if (s_TraceInterpreterILFlag.val(CLRConfig::INTERNAL_TraceInterpreterIL) &&
IsInLocalArea(ptr))
{
PrintLocals();
}
-#endif // _DEBUG
+#endif // INTERP_TRACING
}
// Otherwise...
-#ifdef _DEBUG
+#if INTERP_TRACING
// Let's print two things: the number of methods that are 0-10, or more, and
// For each 10% of methods, cumulative % of invocations they represent. By 1% for last 10%.
#error INTERP_ILCYCLE_PROFILE may only be set if INTERP_ILINSTR_PROFILE is also set.
#endif
#endif
-#if defined(_DEBUG)
-#define INTERPLOG(...) if (s_TraceInterpreterVerboseFlag.val(CLRConfig::INTERNAL_TraceInterpreterVerbose)) { fprintf(GetLogFile(), __VA_ARGS__); }
-#else
-#define INTERPLOG(...)
-#endif
+
#if defined(_DEBUG) || INTERP_ILINSTR_PROFILE
// I define "INTERP_TRACING", rather than just using _DEBUG, so that I can easily make a build
// in which tracing is enabled in retail.
#endif // defined(_DEBUG) || defined(INTERP_ILINSTR_PROFILE)
#if INTERP_TRACING
+#define INTERPLOG(...) if (s_TraceInterpreterVerboseFlag.val(CLRConfig::INTERNAL_TraceInterpreterVerbose)) { fprintf(GetLogFile(), __VA_ARGS__); }
+#else
+#define INTERPLOG(...)
+#endif
+
+#if INTERP_TRACING
#define InterpTracingArg(x) ,x
#else
#define InterpTracingArg(x)