js/src/jit-test/tests/ion/invalidation/recursive-invalidate.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 var causeOSI = true;
     3 function rec(x, self) {
     4     if (x === 0 || x !== x) {
     5         if (causeOSI) {
     6             causeOSI = false;
     7             self(NaN, self)
     8             causeOSI = true;
     9         }
    10         return;
    11     }
    12     self(x - 1, self);
    13 }
    15 // Use enough iterations to type infer the script.
    16 causeOSI = false;
    17 for (var i = 0; i < 20; ++i)
    18     rec(1, rec);
    19 causeOSI = true;
    21 rec(2, rec)

mercurial