diff --git a/js/src/ion/IonBuilder.cpp b/js/src/ion/IonBuilder.cpp index fa1eb575959..23ae3c4040e 100644 --- a/js/src/ion/IonBuilder.cpp +++ b/js/src/ion/IonBuilder.cpp @@ -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; diff --git a/js/src/ion/IonSpewer.cpp b/js/src/ion/IonSpewer.cpp index b7ece3d2b64..1d7d88c02c3 100644 --- a/js/src/ion/IonSpewer.cpp +++ b/js/src/ion/IonSpewer.cpp @@ -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")) diff --git a/js/src/ion/IonSpewer.h b/js/src/ion/IonSpewer.h index d80e3707792..8c78e319beb 100644 --- a/js/src/ion/IonSpewer.h +++ b/js/src/ion/IonSpewer.h @@ -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 */ \