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

« back to all changes in this revision

Viewing changes to tools/test-js-optimizer-asm-pre-output.js

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-06-11 15:45:24 UTC
  • mfrom: (1.2.1) (2.1.1 experimental)
  • Revision ID: package-import@ubuntu.com-20130611154524-rppb3w6tixlegv4n
Tags: 1.4.7~20130611~a1eb425-1
* New snapshot release
* Upload to unstable

Show diffs side-by-side

added added

removed removed

Lines of Context:
18
18
  }
19
19
  $4 = $this;
20
20
  $5 = HEAP8[$4 & 16777215] | 0;
21
 
  if (($5 & 1) << 24 >> 24 == 0) {
 
21
  if (($5 & 1) == 0) {
22
22
    $14 = 10;
23
23
    $13 = $5;
24
24
  } else {
38
38
  } else {
39
39
    $30 = $13;
40
40
  }
41
 
  if (($30 & 1) << 24 >> 24 == 0) {
 
41
  if (($30 & 1) == 0) {
42
42
    $38 = $this + 1 | 0;
43
43
  } else {
44
44
    $38 = HEAP32[($this + 8 & 16777215) >> 2] | 0;
45
45
  }
46
46
  _memset($38 + $23 | 0, 0, $__n | 0, 1, 1213141516);
47
47
  $40 = $23 + $__n | 0;
48
 
  if ((HEAP8[$4 & 16777215] & 1) << 24 >> 24 == 0) {
 
48
  if ((HEAP8[$4 & 16777215] & 1) == 0) {
49
49
    HEAP8[$4 & 16777215] = $40 << 1 & 255;
50
50
  } else {
51
51
    HEAP32[($this + 4 & 16777215) >> 2] = $40;
93
93
    print(5);
94
94
  }
95
95
}
 
96
function sign_extension_simplification() {
 
97
  if ((HEAP8[$4 & 16777215] & 127) == 0) {
 
98
    print(5);
 
99
  }
 
100
  if ((HEAP8[$4 & 16777215] & 128) << 24 >> 24 == 0) {
 
101
    print(5);
 
102
  }
 
103
  if ((HEAP32[$5 & 16777215] & 32767) == 0) {
 
104
    print(5);
 
105
  }
 
106
  if ((HEAP32[$5 & 16777215] & 32768) << 16 >> 16 == 0) {
 
107
    print(5);
 
108
  }
 
109
}
96
110