summaryrefslogtreecommitdiffstats
path: root/js/src/jit-test/tests/ion/bug1074833.js
blob: 992d6cff8fc54644fba8c69bb2833ffc531d5511 (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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
var i = 0;
function cond() {
  return i++ < 20;
}

function inline() {
    ({ b: 1 })
}

function f() {
  do {
    ({ b: 1 })
  } while (cond())  
}

i = 0;
f();

function g() {
  do {
    if (cond()) { }
    ({ b: 1 })
  } while (cond())  
}

i = 0;
g();


function h() {
  do {
    inline();
  } while (cond())  
}

i = 0;
h();


i = 0;
for (i = 0; cond(); i++)
  ({ set: Math.w });