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

Wed, 31 Dec 2014 06:09:35 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:09:35 +0100
changeset 0
6474c204b198
permissions
-rw-r--r--

Cloned upstream origin tor-browser at tor-browser-31.3.0esr-4.5-1-build1
revision ID fc1c9ff7c1b2defdbc039f12214767608f46423f for hacking purpose.

     1 // Binary: cache/js-dbg-64-6f1a38b94754-linux
     2 // Flags: -j
     3 //
     4 /* vim: set ts=8 sts=4 et sw=4 tw=99: */
     6 var x = 0;
     7 var y = 0;
     9 function h() {
    10     if (x == 1)
    11         y++;
    12     else
    13         y--;
    14 }
    16 function F() {
    17     var m = null;
    19     function g(i) {
    20         /* Force outgoing typemaps to have a string. */
    21         m = "badness";
    23         /* Loop a bit. */
    24         for (var i = 0; i < 10; i++) {
    25             h();
    26         }
    27     }
    29     /* Spin for a while so trees build. */
    30     for (var i = 0; i < 100; i++) {
    31         /* Capture m == TT_NULL in outgoing fi for rp[0] */
    32         g();
    34         /* Flip the switch to bail out with deep nested frames. */
    35         if (i > 50)
    36             x = 1;
    38         /* Set m = null on the loop tail to get better traces. */
    39         m = null;
    40     }
    41 }
    43 F();

mercurial