本文整理汇总了C++中IonSpewer类的典型用法代码示例。如果您正苦于以下问题:C++ IonSpewer类的具体用法?C++ IonSpewer怎么用?C++ IonSpewer使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了IonSpewer类的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C++代码示例。
示例1: EnableChannel
void
jit::EnableIonDebugSyncLogging()
{
ionspewer.init();
ionspewer.setAsyncLogging(false);
EnableChannel(JitSpew_IonSyncLogs);
}
示例2:
void
GraphSpewer::endFunction()
{
if (!ionspewer.isEnabled())
return;
if (!isSpewing()) {
MOZ_ASSERT(filteredOutCompilations != 0);
filteredOutCompilations--;
return;
}
c1Spewer_.endFunction();
jsonSpewer_.endFunction();
ionspewer.endFunction(this);
graph_ = nullptr;
}
示例3:
void
GraphSpewer::spewPass(const char* pass)
{
if (!isSpewing())
return;
c1Spewer_.spewPass(pass);
jsonSpewer_.beginPass(pass);
jsonSpewer_.spewMIR(graph_);
jsonSpewer_.spewLIR(graph_);
jsonSpewer_.endPass();
ionspewer.spewPass(this);
}
示例4: IonSpew
void
jit::IonSpewNewFunction(MIRGraph *graph, HandleScript func)
{
if (GetIonContext()->runtime->onMainThread()) {
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 {
IonSpew(IonSpew_Logs, "Can't log asm.js compilation. (Compiled on background thread.)");
}
}
示例5:
void
jit::IonSpewNewFunction(MIRGraph *graph, HandleScript func)
{
if (GetIonContext()->runtime->onMainThread())
ionspewer.beginFunction(graph, func);
}
示例6: EnableChannel
void
jit::EnableIonDebugLogging()
{
EnableChannel(IonSpew_Logs);
ionspewer.init();
}
示例7:
void
ion::IonSpewEndFunction()
{
if (!js_IonOptions.parallelCompilation)
ionspewer.endFunction();
}