Backed out changeset 56023d83552d (bug 1518377) for bustages at /tests/basic/bug908915.js on a CLOSED TREE

This commit is contained in:
Gurzau Raul 2019-02-01 21:36:39 +02:00
parent 8bc1fdd88f
commit 34253a9d78
2 changed files with 11 additions and 21 deletions

View File

@ -2693,25 +2693,22 @@ static bool testingFunc_inIon(JSContext* cx, unsigned argc, Value* vp) {
return true;
}
JSScript* script = cx->currentScript();
// Check if current script frame is IonJS
ScriptFrameIter iter(cx);
if (!iter.done() && iter.isIon()) {
// Reset the counter of the IonScript's script.
script->resetWarmUpResetCounter();
args.rval().setBoolean(true);
return true;
jit::JSJitFrameIter jitIter(cx->activation()->asJit());
++jitIter;
jitIter.script()->resetWarmUpResetCounter();
} else {
// Check if we missed multiple attempts at compiling the innermost script.
JSScript* script = cx->currentScript();
if (script && script->getWarmUpResetCount() >= 20) {
return ReturnStringCopy(
cx, args, "Compilation is being repeatedly prevented. Giving up.");
}
}
// Check if we missed multiple attempts at compiling the innermost script.
if (script && script->getWarmUpResetCount() >= 20) {
return ReturnStringCopy(
cx, args, "Compilation is being repeatedly prevented. Giving up.");
}
args.rval().setBoolean(false);
args.rval().setBoolean(!iter.done() && iter.isIon());
return true;
}

View File

@ -1,7 +0,0 @@
Object.prototype[Symbol.toPrimitive] = inIon;
which = function() {};
for (var i = 0; i < 10; ++i) {
s = which[which[which]];
a = which;
a += s + "";
}