js/src/jit-test/tests/jaeger/recompile/callic.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.

     2 /* Recompilation while being processed by a call IC. */
     4 var g;
     5 function foo() {
     6   for (g = 0; g < 5; g++) {
     7     bar();
     8   }
     9   function bar() {
    10     with ({}) {
    11       eval("g = undefined;");
    12     }
    13   }
    14 }
    15 foo();
    17 assertEq(g, NaN);
    19 /* Recompilation while being processed by a native call IC. */
    21 function native() {
    22   var x;
    23   x = x;
    24   x = Math.ceil(NaN);
    25   assertEq(x, NaN);
    26 }
    27 native();

mercurial