summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/jaeger/inline/scripted-09.js
blob: e970b77e43b0528b872bb30439a1e67cd7bbbcc4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
function multiple(a) {
  if (a > 10)
    return a * 20;
  return 0;
}

function deeper(a, b) {
  return multiple(a + b);
}

function foo() {
  var a = 0;
  for (var i = 0; i < 10; i++)
    a += deeper(0x7ffffff0, i);
  return a;
}

var q = foo();
assertEq(q, 429496727300);