summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/recompile/staticoverflow.js
blob: 7387772444a1b65940fb7940d4e72f3cdb27be08 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26

// overflows occurring during constant folding

var y = -null - y;
assertEq(y, NaN);

var x = -(void 0);
assertEq(x, NaN);

function overdiv() {
  for(var i=0; i<25; i++) {
    var a, b;
    function f() { 
    }
    a = f();
    b = (123 ^ 1) / 1234;
  }
}
overdiv();

function overadd() {
  var a = 0x7ffffff0;
  var b = 100;
  return a + b;
}
overadd();