~ubuntu-branches/ubuntu/saucy/mozjs17/saucy-proposed

« back to all changes in this revision

Viewing changes to js/src/jit-test/tests/jaeger/recompile/staticoverflow.js

  • Committer: Package Import Robot
  • Author(s): Rico Tzschichholz
  • Date: 2013-05-25 12:24:23 UTC
  • Revision ID: package-import@ubuntu.com-20130525122423-zmxucrhtensw90xy
Tags: upstream-17.0.0
ImportĀ upstreamĀ versionĀ 17.0.0

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
 
 
2
// overflows occurring during constant folding
 
3
 
 
4
var y = -null - y;
 
5
assertEq(y, NaN);
 
6
 
 
7
var x = -(void 0);
 
8
assertEq(x, NaN);
 
9
 
 
10
function overdiv() {
 
11
  for(var i=0; i<25; i++) {
 
12
    var a, b;
 
13
    function f() { 
 
14
    }
 
15
    a = f();
 
16
    b = (123 ^ 1) / 1234;
 
17
  }
 
18
}
 
19
overdiv();
 
20
 
 
21
function overadd() {
 
22
  var a = 0x7ffffff0;
 
23
  var b = 100;
 
24
  return a + b;
 
25
}
 
26
overadd();