blob: ad011f6aee88175864a10a05029d83bb2330279f [file] [log] [blame]
//@ runDefault("--maximumInliningRecursion=10", "--maximumInliningDepth=10", "--maximumFunctionForConstructInlineCandidateBytecoodeCost=1000", "--maximumFunctionForClosureCallInlineCandidateBytecodeCost=1000", "--maximumFunctionForCallInlineCandidateBytecodeCost=1000", "--useConcurrentJIT=0")
let depth;
const limit = 5;
function foo() {
if (depth >= limit) {
OSRExit();
dropAllLocks();
return 0;
}
++depth;
foo.apply(null, a);
}
let a = {
get length() {
return 0;
}
};
for (let i = 0; i < 1e5; ++i) {
depth = 0;
foo.apply(null, a);
}