1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/basic/bug674776.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,15 @@ 1.4 +// |jit-test| slow; debug 1.5 + 1.6 +/* Make a lot of functions of the form: 1.7 +function x1(){x1();} 1.8 +function x2(){x2();} 1.9 +function x3(){x3();} 1.10 +... 1.11 +*/ 1.12 + 1.13 +var s = ''; 1.14 +for (var i = 0; i < 70000; i++) { 1.15 + s += 'function x' + i + '() { x' + i + '(); }\n'; 1.16 +} 1.17 +s += 'trap(0); pc2line(1);\n' 1.18 +evaluate(s);