js/src/jit-test/tests/auto-regress/bug782129.js

Thu, 15 Jan 2015 21:03:48 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 15 Jan 2015 21:03:48 +0100
branch
TOR_BUG_9701
changeset 11
deefc01c0e14
permissions
-rw-r--r--

Integrate friendly tips from Tor colleagues to make (or not) 4.5 alpha 3;
This includes removal of overloaded (but unused) methods, and addition of
a overlooked call to DataStruct::SetData(nsISupports, uint32_t, bool.)

     1 // Binary: cache/js-dbg-32-f1764bf06b29-linux
     2 // Flags: --ion-eager
     3 //
     5 var callStack = new Array();
     6 function enterFunc (funcName) {
     7   funcName += "()";
     8   callStack.push(funcName);
     9 }
    10 function exitFunc (funcName) {
    11   var lastFunc = callStack.pop();
    12   funcName += "()";
    13   if (lastFunc != funcName)
    14     print();
    15 }
    16 try {
    17   test();
    18 } catch(exc1) {}
    19 function test() {
    20   enterFunc ('test');
    21   test();
    22 }
    23 for (var l = 0; l < 50000; l++)
    24   exitFunc ('test');

mercurial