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

« back to all changes in this revision

Viewing changes to tools/test-js-optimizer-t2c.js

  • Committer: Package Import Robot
  • Author(s): Sylvestre Ledru
  • Date: 2013-05-02 13:11:51 UTC
  • Revision ID: package-import@ubuntu.com-20130502131151-q8dvteqr1ef2x7xz
Tags: upstream-1.4.1~20130504~adb56cb
ImportĀ upstreamĀ versionĀ 1.4.1~20130504~adb56cb

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
function shifty() {
 
2
  $pPage = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16 << 2) >> 2];
 
3
  var $ead_192394 = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16 << 2) >> 2];
 
4
  $pPage2 = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16 << 2)];
 
5
  var $ead_192394b = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16 << 2)];
 
6
  $pPage2 = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16)];
 
7
  var $ead_192394b = HEAP32[$pCur_addr + 116 + ($26 << 16 >> 16)];
 
8
  // We prefer to do additions then shifts, so the shift happens last, because the shift output is known to be 32-bit. So these should not change
 
9
  q(16 >> 2);
 
10
  q($13 + 8 >> 2);
 
11
  q(28 + $13 >> 2);
 
12
  q(48 + $13 + 12 >> 2);
 
13
  q($13 + $15 + 12 >> 2);
 
14
  q(HEAPF32[$output + ($j37 << 4) + 4 >> 2]);
 
15
  q(5 + $13 + 8 << 2);
 
16
  q(((h() | 0) >> 2) << 2); // removing the shifts is dangerous
 
17
}
 
18
// EMSCRIPTEN_GENERATED_FUNCTIONS: ["shifty"]