js/src/jit-test/tests/jaeger/recompile/flush.js

Wed, 31 Dec 2014 07:53:36 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 07:53:36 +0100
branch
TOR_BUG_3246
changeset 5
4ab42b5ab56c
permissions
-rw-r--r--

Correct small whitespace inconsistency, lost while renaming variables.

     2 /* Handle flushing of scripted call ICs pointing to recompiled functions. */
     4 function add(x, y) {
     5   var z = x + y;
     6   return String(x + y);
     7 }
     9 function foo() {
    10   var x = 0x7ffffff0;
    11   var res = "";
    12   for (var i = 0; i < 20; i++) {
    13     res += add(x, i) + ",";
    14     res += add(x, i) + ",";
    15   }
    16   assertEq(res, "2147483632,2147483632,2147483633,2147483633,2147483634,2147483634,2147483635,2147483635,2147483636,2147483636,2147483637,2147483637,2147483638,2147483638,2147483639,2147483639,2147483640,2147483640,2147483641,2147483641,2147483642,2147483642,2147483643,2147483643,2147483644,2147483644,2147483645,2147483645,2147483646,2147483646,2147483647,2147483647,2147483648,2147483648,2147483649,2147483649,2147483650,2147483650,2147483651,2147483651,");
    17 }
    18 foo();

mercurial