Bug 775567 - Add separate "scripts" spew channel. r=dvander

This commit is contained in:
Jan de Mooij 2012-07-20 11:02:42 +02:00
parent 69424e0378
commit 2276af4202
3 changed files with 7 additions and 2 deletions

View File

@ -254,7 +254,7 @@ IonBuilder::build()
if (!current)
return false;
IonSpew(IonSpew_MIR, "Analyzing script %s:%d (%p)",
IonSpew(IonSpew_Scripts, "Analyzing script %s:%d (%p)",
script->filename, script->lineno, (void *) script);
if (!initParameters())
@ -374,7 +374,7 @@ bool
IonBuilder::buildInline(IonBuilder *callerBuilder, MResumePoint *callerResumePoint,
MDefinition *thisDefn, MDefinitionVector &argv)
{
IonSpew(IonSpew_MIR, "Inlining script %s:%d (%p)",
IonSpew(IonSpew_Scripts, "Inlining script %s:%d (%p)",
script->filename, script->lineno, (void *)script);
callerBuilder_ = callerBuilder;

View File

@ -171,6 +171,7 @@ ion::CheckLogging()
"usage: IONFLAGS=option,option,option,... where options can be:\n"
"\n"
" aborts Compilation abort messages\n"
" scripts Compiled scripts\n"
" mir MIR information\n"
" alias Alias analysis\n"
" gvn Global Value Numbering\n"
@ -195,6 +196,8 @@ ion::CheckLogging()
EnableChannel(IonSpew_Abort);
if (ContainsFlag(env, "alias"))
EnableChannel(IonSpew_Alias);
if (ContainsFlag(env, "scripts"))
EnableChannel(IonSpew_Scripts);
if (ContainsFlag(env, "mir"))
EnableChannel(IonSpew_MIR);
if (ContainsFlag(env, "gvn"))

View File

@ -20,6 +20,8 @@ namespace ion {
#define IONSPEW_CHANNEL_LIST(_) \
/* Used to abort SSA construction */ \
_(Abort) \
/* Information about compiled scripts */\
_(Scripts) \
/* Information during MIR building */ \
_(MIR) \
/* Information during alias analysis */ \