aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer-asm-regs-output.js
blob: d9aa5c0cc66acdce3676c3c22e9de21f486a3ba8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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;
}