1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/js/src/jit-test/tests/auto-regress/bug782129.js Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,24 @@ 1.4 +// Binary: cache/js-dbg-32-f1764bf06b29-linux 1.5 +// Flags: --ion-eager 1.6 +// 1.7 + 1.8 +var callStack = new Array(); 1.9 +function enterFunc (funcName) { 1.10 + funcName += "()"; 1.11 + callStack.push(funcName); 1.12 +} 1.13 +function exitFunc (funcName) { 1.14 + var lastFunc = callStack.pop(); 1.15 + funcName += "()"; 1.16 + if (lastFunc != funcName) 1.17 + print(); 1.18 +} 1.19 +try { 1.20 + test(); 1.21 +} catch(exc1) {} 1.22 +function test() { 1.23 + enterFunc ('test'); 1.24 + test(); 1.25 +} 1.26 +for (var l = 0; l < 50000; l++) 1.27 + exitFunc ('test');