aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer-asm-last.js
blob: e83822f82038fbef6b82a11daa7d28ec39c7f28d (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
46
47
48
49
50
51
52
53
54
55
56
function finall(x) {
  x = +x;
  var a = +5;
  a = +x;
  a = 17;
  a = +44;
  a = +44.0;
  a = +44.9;
  a = +12.78e5;
  a = +12e10;
  a = -x;
  a = -17;
  a = -44;
  a = -44.0;
  a = -44.9;
  a = -12.78e5;
  a = -12e10;
  a = +-x;
  a = +-17;
  a = +-44;
  a = +-44.0;
  a = +-44.9;
  a = +-12.78e5;
  a = +-12e10;
  a = +0x8000000000000000;
  a = +-0x8000000000000000;
  a = -+0x8000000000000000;
  a = -0x8000000000000000;
  a = +0xde0b6b000000000;
  a = +-0xde0b6b000000000;
  a = -+0xde0b6b000000000;
  a = -0xde0b6b000000000;
  return +12e10;
}
function looop() {
  while (1) {
    do_it();
    if (condition()) {
      break;
    }
  }
  while (1) {
    do_it();
    if (a > b) {
      break;
    }
  }
  while (1) {
    do_it();
    if (!x()) {
      break;
    }
  }
}
// EMSCRIPTEN_GENERATED_FUNCTIONS: ["finall", "looop"]