aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer-t2-output.js
blob: 334d7999acbea83a4a742da79a7646dbd32798c9 (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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
function shifty($id2) {
 var $tp$s2;
 var $parameters_addr$s2;
 var $wavelet38$s2;
 var _dwt_norms_real$s2;
 var $a_addr$s2;
 var _idents$s2;
 var $id3$s3;
 var $id2$s1 = $id2 >> 1;
 q(HEAP32[$id >> 2]);
 q(HEAP32[$id + 40 >> 2]);
 q(HEAP32[$id + 80 >> 2]);
 q(HEAP32[unknown1 + unknown2 + $id >> 2]);
 q(HEAP32[unknown1 + $id + unknown2 >> 2]);
 var localUnchanged1 = get(1), localUnchanged2 = get(1);
 q(HEAP32[localUnchanged1 + $id + localUnchanged2 >> 2]);
 q($id >> _something_);
 $id = q("..");
 q($id << _somethingElse_);
 pause(-1);
 q(HEAP32[$id2$s1]);
 q(HEAP32[$id2$s1]);
 q(HEAP32[$id2$s1]);
 q(HEAP32[$id2$s1]);
 q(HEAP32[$id2$s1 + 20]);
 q(HEAP32[$id2$s1 + 40]);
 var $id3 = get(74), $id3$s3 = $id3 >> 3;
 q(HEAP32[$id3$s3]);
 q(HEAP32[$id3$s3 + 5]);
 q(HEAP32[$id3$s3 + 10]);
 q($id3);
 pause(0);
 var _idents = get("abc"), _idents$s2 = _idents >> 2;
 q(HEAP32[HEAP32[_idents$s2] + 8 >> 2]);
 q(HEAP32[HEAP32[_idents$s2] + 8 >> 2]);
 q(HEAP32[HEAP32[_idents$s2] + 8 >> 2]);
 pause(1);
 var $sn_addr = get(12), $a_addr = get(999), $a_addr$s2 = $a_addr >> 2;
 var $i = get(112233);
 q(HEAP32[(($sn_addr - 1 << 1) + 1 << 2 >> 2) + $a_addr$s2]);
 q(HEAP32[(($i - 1 << 1) + 1 << 2 >> 2) + $a_addr$s2]);
 q(HEAP32[($i << 3 >> 2) + $a_addr$s2]);
 q(HEAP32[($i << 2 >> 2) + $a_addr$s2]);
 q($a_addr$s2, z($a_addr$s2));
 pause(2);
 var $level = HEAP[get(322) >> 2];
 var _dwt_norms_real = get("a"), _dwt_norms_real$s2 = _dwt_norms_real >> 2, $orient = get("cheez");
 q(HEAP32[($level << 3 >> 2) + _dwt_norms_real$s2 + ($orient * 20 | 0)]);
 q(HEAP32[(($level << 3) + 4 >> 2) + _dwt_norms_real$s2 + ($orient * 20 | 0)]);
 q(HEAP32[(($level << 3) + 8 >> 2) + _dwt_norms_real$s2 + ($orient * 20 | 0)]);
 pause(3);
 var $wavelet38 = get(38), $wavelet38$s2 = $wavelet38 >> 2;
 $k = $a_addr;
 q(HEAPF32[HEAP32[$wavelet38$s2] + ($k << 4) + 8 >> 2]);
 q(HEAPF32[HEAP32[$wavelet38$s2] + ($k << 4) + 12 >> 2]);
 q(HEAPF32[HEAP32[$wavelet38$s2] + ($k << 4) + 400 >> 2]);
 pause(4);
 var $p = $k, $parameters_addr = get("burger"), $parameters_addr$s2 = $parameters_addr >> 2;
 q(HEAP32[(($p << 2) + 5624 >> 2) + $parameters_addr$s2]);
 q(HEAP32[(($p << 2) + 5644 >> 2) + $parameters_addr$s2]);
 q(HEAP32[(($p << 2) + 5664 >> 2) + $parameters_addr$s2]);
 pause(5);
 var $res_spec242 = get($real), $cp = get("b"), $tileno = arguments[2];
 q(HEAP32[(($res_spec242 - 1 << 2) + 5624 >> 2) + $parameters_addr$s2]);
 q(HEAP32[(HEAP32[$cp + 108 >> 2] + 420 >> 2) + ($tileno * 1397 | 0)]);
 pause(6);
 q($idx << 3);
 q(1 << $idx << 1);
 print(INDENT + "Entering: _main" + "hi");
 pause(7);
 var $tp = get("tp"), $tp$s2 = $tp >> 2;
 q($tp$s2);
 q($tp$s2);
 q($tp$s2);
 HEAP32[$H400] = $tp;
 HEAP32[$tp] = 5;
 HEAP32[$tp$s2] = 5;
 HEAP32[HEAP[$tp$s2]] = 5;
 HEAP32[HEAP[$tp$s2] >> 2] = 5;
 pause(7);
 q(go() >> 1 << 1);
 q(go() << 1 >> 1);
 q(go() >> 2);
 q(go() << 2);
 q(go() >> 8 << 8);
 q(go() << 8 >> 8);
 q(go() >> 16);
 q(go() << 16);
 q(go() + 2 >> 2);
}