Bug 929730 - IonMonkey: Only report message 'offthread logging is impossible' when trying to log, r=jandem

This commit is contained in:
Hannes Verschore 2013-10-25 12:34:14 +02:00
parent 281bdf55f8
commit 538133d19c

View File

@ -83,15 +83,19 @@ jit::IonSpewNewFunction(MIRGraph *graph, HandleScript func)
{
if (!OffThreadIonCompilationEnabled(GetIonContext()->runtime)) {
ionspewer.beginFunction(graph, func);
return;
}
if (!IonSpewEnabled(IonSpew_Logs))
return;
// Ionspewer isn't threads-safe. Therefore logging is disabled for
// off-thread spewing. Throw informative message when trying.
if (func) {
IonSpew(IonSpew_Logs, "Can't log script %s:%d. (Compiled on background thread.)",
func->filename(), func->lineno);
} else {
if (func) {
IonSpew(IonSpew_Logs,
"Can't log script %s:%d. (Compiled on background thread.)",
func->filename(), func->lineno);
} else {
IonSpew(IonSpew_Logs,
"Can't log asm.js compilation. (Compiled on background thread.)");
}
IonSpew(IonSpew_Logs, "Can't log asm.js compilation. (Compiled on background thread.)");
}
}
@ -342,9 +346,6 @@ jit::CheckLogging()
EnableChannel(IonSpew_BaselineBailouts);
}
if (LoggingBits != 0)
EnableIonDebugLogging();
IonSpewFile = stderr;
}