~ubuntu-branches/ubuntu/vivid/emscripten/vivid

« back to all changes in this revision

Viewing changes to tools/test-js-optimizer-asm-last.js

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-09-20 22:44:35 UTC
  • mfrom: (4.1.1 sid)
  • Revision ID: package-import@ubuntu.com-20130920224435-apuwj4fsl3fqv1a6
Tags: 1.5.6~20130920~6010666-1
* New snapshot release
* Update the list of supported architectures to the same as libv8
  (Closes: #723129)
* emlibtool has been removed from upstream.
* Fix warning syntax-error-in-dep5-copyright
* Refresh of the patches

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
function finall(x) {
2
 
  x = +x;
3
 
  var a = +5;
4
 
  a = +x;
5
 
  a = 17;
6
 
  a = +44;
7
 
  a = +44.0;
8
 
  a = +44.9;
9
 
  a = +12.78e5;
10
 
  a = +12e10;
11
 
  a = -x;
12
 
  a = -17;
13
 
  a = -44;
14
 
  a = -44.0;
15
 
  a = -44.9;
16
 
  a = -12.78e5;
17
 
  a = -12e10;
18
 
  a = +-x;
19
 
  a = +-17;
20
 
  a = +-44;
21
 
  a = +-44.0;
22
 
  a = +-44.9;
23
 
  a = +-12.78e5;
24
 
  a = +-12e10;
25
 
  a = +0x8000000000000000;
26
 
  a = +-0x8000000000000000;
27
 
  a = -+0x8000000000000000;
28
 
  a = -0x8000000000000000;
29
 
  a = +0xde0b6b000000000;
30
 
  a = +-0xde0b6b000000000;
31
 
  a = -+0xde0b6b000000000;
32
 
  a = -0xde0b6b000000000;
33
 
  return +12e10;
 
2
 x = +x;
 
3
 var a = +5;
 
4
 a = +x;
 
5
 a = 17;
 
6
 a = +44;
 
7
 a = +44.0;
 
8
 a = +44.9;
 
9
 a = +12.78e5;
 
10
 a = +12e10;
 
11
 a = -x;
 
12
 a = -17;
 
13
 a = -44;
 
14
 a = -44.0;
 
15
 a = -44.9;
 
16
 a = -12.78e5;
 
17
 a = -12e10;
 
18
 a = +-x;
 
19
 a = +-17;
 
20
 a = +-44;
 
21
 a = +-44.0;
 
22
 a = +-44.9;
 
23
 a = +-12.78e5;
 
24
 a = +-12e10;
 
25
 a = +0x8000000000000000;
 
26
 a = +-0x8000000000000000;
 
27
 a = -+0x8000000000000000;
 
28
 a = -0x8000000000000000;
 
29
 a = +0xde0b6b000000000;
 
30
 a = +-0xde0b6b000000000;
 
31
 a = -+0xde0b6b000000000;
 
32
 a = -0xde0b6b000000000;
 
33
 f(g() & -1);
 
34
 return +12e10;
34
35
}
35
36
function looop() {
36
 
  while (1) {
37
 
    do_it();
38
 
    if (condition()) {
39
 
      break;
40
 
    }
41
 
  }
42
 
  while (1) {
43
 
    do_it();
44
 
    if (a > b) {
45
 
      break;
46
 
    }
47
 
  }
48
 
  while (1) {
49
 
    do_it();
50
 
    if (!x()) {
51
 
      break;
52
 
    }
53
 
  }
 
37
 while (1) {
 
38
  do_it();
 
39
  if (condition()) {
 
40
   break;
 
41
  }
 
42
 }
 
43
 while (1) {
 
44
  do_it();
 
45
  if (a > b) {
 
46
   break;
 
47
  }
 
48
 }
 
49
 while (1) {
 
50
  do_it();
 
51
  if (!x()) {
 
52
   break;
 
53
  }
 
54
 }
 
55
 while (1) {
 
56
  do_it();
 
57
  if (a()) continue; // we cannot move to do-while, continue will hit the while check
 
58
  if (!x()) {
 
59
   break;
 
60
  }
 
61
 }
 
62
 while (1) {
 
63
  do_it();
 
64
  do {
 
65
    if (a()) continue; // ok to optimize, continue is not for us
 
66
  } while (b());
 
67
  if (!x()) {
 
68
   break;
 
69
  }
 
70
 }
 
71
 while (1) {
 
72
  do_it();
 
73
  while (b()) {
 
74
    if (a()) continue; // also ok to optimize, continue is not for us
 
75
  }
 
76
  if (!x()) {
 
77
   break;
 
78
  }
 
79
 }
 
80
 X: while (1) {
 
81
  do_it();
 
82
  while (b()) {
 
83
    if (a()) continue X; // not ok to optimize
 
84
  }
 
85
  if (!x()) {
 
86
   break;
 
87
  }
 
88
 }
54
89
}
55
90
// EMSCRIPTEN_GENERATED_FUNCTIONS: ["finall", "looop"]
56
91