Bug 452905 - Make js_RecordTree printfs only appear with TRACEMONKEY=verbose. r=gal

This commit is contained in:
Jesse Ruderman 2008-08-30 02:21:00 -07:00
parent c7604aac4c
commit 1b5148d940

View File

@ -1864,7 +1864,7 @@ js_RecordTree(JSContext* cx, JSTraceMonitor* tm, Fragment* f)
/* Make sure the global type map didn't change on us. */
uint32 globalShape = OBJ_SCOPE(JS_GetGlobalForObject(cx, cx->fp->scopeChain))->shape;
if (tm->globalShape != globalShape) {
debug_only(printf("Global shape mismatch (%u vs. %u) in RecordTree, flushing cache.\n",
debug_only_v(printf("Global shape mismatch (%u vs. %u) in RecordTree, flushing cache.\n",
globalShape, tm->globalShape);)
js_FlushJITCache(cx);
return false;
@ -1873,7 +1873,7 @@ js_RecordTree(JSContext* cx, JSTraceMonitor* tm, Fragment* f)
current.captureGlobalTypes(cx, *tm->globalSlots);
if (!current.matches(*tm->globalTypeMap)) {
js_FlushJITCache(cx);
debug_only(printf("Global type map mismatch in RecordTree, flushing cache.\n");)
debug_only_v(printf("Global type map mismatch in RecordTree, flushing cache.\n");)
return false;
}