Bug 986139 - Purge caches when preserving PJS JIT code. (r=terrence)

This commit is contained in:
Shu-yu Guo 2014-03-20 15:07:57 -07:00
Родитель a375bd024e
Коммит dc2736131b
1 изменённых файлов: 4 добавлений и 2 удалений

Просмотреть файл

@ -198,10 +198,12 @@ Zone::discardJitCode(FreeOp *fop)
// parallel. Note that we mark their baseline scripts as active as
// well to preserve them.
if (script->hasParallelIonScript()) {
if (jit::ShouldPreserveParallelJITCode(runtimeFromMainThread(), script))
if (jit::ShouldPreserveParallelJITCode(runtimeFromMainThread(), script)) {
script->parallelIonScript()->purgeCaches(this);
script->baselineScript()->setActive();
else
} else {
jit::FinishInvalidation<ParallelExecution>(fop, script);
}
}
/*