Only spew JIT compilation and opcodes when built with JIT_SPEW defined.

This commit is contained in:
Ryan Stecker 2014-07-05 10:57:08 -05:00
parent 3f220bca0d
commit 6864bf0068

View File

@ -287,7 +287,7 @@ CompileFromThunk(BaseRuntime *runtime, cell_t pcode_offs, void **addrp, char *pc
return err; return err;
} }
#if !defined NDEBUG #if defined JIT_SPEW
g_engine1.GetDebugHook()->OnDebugSpew( g_engine1.GetDebugHook()->OnDebugSpew(
"Patching thunk to %s::%s\n", "Patching thunk to %s::%s\n",
runtime->plugin()->name, runtime->plugin()->name,
@ -327,14 +327,12 @@ Compiler::emit(int *errp)
return NULL; return NULL;
} }
#if !defined NDEBUG #if defined JIT_SPEW
g_engine1.GetDebugHook()->OnDebugSpew( g_engine1.GetDebugHook()->OnDebugSpew(
"Compiling function %s::%s\n", "Compiling function %s::%s\n",
plugin_->name, plugin_->name,
GetFunctionName(plugin_, pcode_start_)); GetFunctionName(plugin_, pcode_start_));
#endif
#if defined DEBUG
SpewOpcode(plugin_, code_start_, cip_); SpewOpcode(plugin_, code_start_, cip_);
#endif #endif
@ -352,7 +350,7 @@ Compiler::emit(int *errp)
if (*cip_ == OP_PROC || *cip_ == OP_ENDPROC) if (*cip_ == OP_PROC || *cip_ == OP_ENDPROC)
break; break;
#if defined DEBUG #if defined JIT_SPEW
SpewOpcode(plugin_, code_start_, cip_); SpewOpcode(plugin_, code_start_, cip_);
#endif #endif