aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer-asm-regs-output.js
blob: 8c0bd9705830910e868e09ff027cb919320c6915 (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
45
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 rett() {
  if (f()) {
    g();
    return 5;
  }
  return 0;
}
function ret2t() {
  if (f()) {
    g();
    return;
  }
}
function retf() {
  if (f()) {
    g();
    return +h();
  }
  return +0;
}
function stackRestore(i1) {
  i1 = i1 | 0;
  STACKTOP = i1;
}