Bug 1191576 - Fix JIT invalidation spew to work when called while compacting r=terrence

This commit is contained in:
Jon Coppeard 2015-09-22 14:03:19 +01:00
Родитель 1fb4684bf5
Коммит 528dc79f84
2 изменённых файлов: 22 добавлений и 3 удалений

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

@ -0,0 +1,17 @@
// |jit-test| allow-oom
if (!('gczeal' in this && 'oomAfterAllocations' in this))
quit();
var lfcode = new Array();
gczeal(14);
loadFile(`
for each(let e in newGlobal()) {
if (oomAfterAllocations(100))
continue;
}
`);
function loadFile(lfVarx) {
for (lfLocal in this) {}
evaluate(lfVarx);
}

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

@ -2839,9 +2839,11 @@ InvalidateActivation(FreeOp* fop, const JitActivationIterator& activations, bool
type = "Baseline";
else if (it.isBailoutJS())
type = "Bailing";
JitSpew(JitSpew_IonInvalidate, "#%d %s JS frame @ %p, %s:%" PRIuSIZE " (fun: %p, script: %p, pc %p)",
frameno, type, it.fp(), it.script()->filename(), it.script()->lineno(),
it.maybeCallee(), (JSScript*)it.script(), it.returnAddressToFp());
JitSpew(JitSpew_IonInvalidate,
"#%d %s JS frame @ %p, %s:%" PRIuSIZE " (fun: %p, script: %p, pc %p)",
frameno, type, it.fp(), it.script()->maybeForwardedFilename(),
it.script()->lineno(), it.maybeCallee(), (JSScript*)it.script(),
it.returnAddressToFp());
break;
}
case JitFrame_IonStub: