aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer-asm-regs-output.js
blob: ba2316ea1cb34b8ba9ca762b9c4a857111765b53 (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
function asm(d1, i2) {
  d1 = +d1;
  i2 = i2 | 0;
  var i3 = 0, d4 = +0;
  i2 = d1 + d1 | 0;
  d1 = d(Math_max(10, Math_min(5, f())));
  i3 = i2 + 2 | 0;
  print(i3);
  d4 = d1 * 5;
  return d4;
}
function _doit(i1, i2, i3) {
  i1 = i1 | 0;
  i2 = i2 | 0;
  i3 = i3 | 0;
  i1 = STACKTOP;
  _printf(__str | 0, (tempInt = STACKTOP, STACKTOP = STACKTOP + 8 | 0, HEAP32[(tempInt & 16777215) >> 2] = i2, HEAP32[(tempInt + 4 & 16777215) >> 2] = i3, tempInt));
  STACKTOP = i1;
  return 0 | 0;
}
function stackRestore(i1) {
  i1 = i1 | 0;
  STACKTOP = i1;
}
function switchey(d1, i2) {
  d1 = +d1;
  i2 = i2 | 0;
  var i3 = 0, d4 = +0;
  switch (d1 | 0) {
   case 0:
    i2 = d1 + d1 | 0;
    d1 = d(Math_max(10, Math_min(5, f())));
    i3 = i2 + 2 | 0;
    print(i3);
    d4 = d1 * 5;
    return d4;
   case 1:
    return 20;
  }
}