mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-09 19:35:51 +00:00
Bug 929730 - IonMonkey: Only report message 'offthread logging is impossible' when trying to log, r=jandem
This commit is contained in:
parent
281bdf55f8
commit
538133d19c
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user