summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/basic/bug674776.js
blob: 816cfc5349ad5151922baf7c0e3188fd3f798e13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
// |jit-test| slow

/* Make a lot of functions of the form:
function x1(){x1();}
function x2(){x2();}
function x3(){x3();}
...
*/

var g = newGlobal();
var dbg = new g.Debugger(this);

var s = '';
for (var i = 0; i < 70000; i++) {
    s += 'function x' + i + '() { x' + i + '(); }\n';
}
s += 'pc2line(1);\n'
evaluate(s);