aboutsummaryrefslogtreecommitdiff
path: root/tools/test-js-optimizer-asm-outline1-output.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/test-js-optimizer-asm-outline1-output.js')
-rw-r--r--tools/test-js-optimizer-asm-outline1-output.js113
1 files changed, 63 insertions, 50 deletions
diff --git a/tools/test-js-optimizer-asm-outline1-output.js b/tools/test-js-optimizer-asm-outline1-output.js
index d63e4e5e..9c6aa7c8 100644
--- a/tools/test-js-optimizer-asm-outline1-output.js
+++ b/tools/test-js-optimizer-asm-outline1-output.js
@@ -1,7 +1,7 @@
function lin() {
var sp = 0;
sp = STACKTOP;
- STACKTOP = STACKTOP + 72 | 0;
+ STACKTOP = STACKTOP + 136 | 0;
c(1);
c(2);
c(3);
@@ -17,7 +17,7 @@ function lin() {
function lin2() {
var sp = 0;
sp = STACKTOP;
- STACKTOP = STACKTOP + 72 | 0;
+ STACKTOP = STACKTOP + 136 | 0;
while (1) {
c(1);
c(2);
@@ -35,7 +35,7 @@ function lin2() {
function lin3() {
var sp = 0;
sp = STACKTOP;
- STACKTOP = STACKTOP + 72 | 0;
+ STACKTOP = STACKTOP + 152 | 0;
while (1) {
c(1);
c(2);
@@ -64,7 +64,7 @@ function lin3() {
function lin4() {
var sp = 0;
sp = STACKTOP;
- STACKTOP = STACKTOP + 72 | 0;
+ STACKTOP = STACKTOP + 152 | 0;
while (1) {
c(1);
c(2);
@@ -91,7 +91,7 @@ function lin4() {
function lin5() {
var sp = 0;
sp = STACKTOP;
- STACKTOP = STACKTOP + 72 | 0;
+ STACKTOP = STACKTOP + 152 | 0;
while (1) {
c(1);
c(2);
@@ -118,7 +118,7 @@ function lin5() {
function mix() {
var sp = 0;
sp = STACKTOP;
- STACKTOP = STACKTOP + 88 | 0;
+ STACKTOP = STACKTOP + 168 | 0;
main : while (1) {
c(1);
c(2);
@@ -167,18 +167,22 @@ function mix() {
function vars(x, y) {
x = x | 0;
y = +y;
- var sp = 0;
+ var a = 0, b = +0, sp = 0;
sp = STACKTOP;
- STACKTOP = STACKTOP + 88 | 0;
- HEAP32[sp + 32 >> 2] = 0;
- HEAP32[sp + 36 >> 2] = 0;
+ STACKTOP = STACKTOP + 152 | 0;
+ HEAP32[sp + 48 >> 2] = 0;
+ HEAP32[sp + 52 >> 2] = 0;
+ HEAP32[sp + 24 >> 2] = a;
HEAP32[sp + 8 >> 2] = x;
HEAPF32[sp + 16 >> 2] = y;
+ HEAPF32[sp + 32 >> 2] = b;
vars$1(sp);
- HEAP32[sp + 24 >> 2] = 0;
- HEAP32[sp + 28 >> 2] = 0;
- HEAP32[sp + 8 >> 2] = x;
- HEAPF32[sp + 16 >> 2] = y;
+ a = HEAP32[sp + 24 >> 2] | 0;
+ b = +HEAPF32[sp + 32 >> 2];
+ HEAP32[sp + 40 >> 2] = 0;
+ HEAP32[sp + 44 >> 2] = 0;
+ HEAPF32[sp + 32 >> 2] = b;
+ HEAP32[sp + 24 >> 2] = a;
vars$0(sp);
STACKTOP = sp;
}
@@ -187,7 +191,7 @@ function vars2(x, y) {
y = +y;
var a = 0, b = +0, sp = 0;
sp = STACKTOP;
- STACKTOP = STACKTOP + 88 | 0;
+ STACKTOP = STACKTOP + 152 | 0;
a = x + y;
b = y * x;
a = c(1 + a);
@@ -204,21 +208,23 @@ function vars2(x, y) {
function vars3(x, y) {
x = x | 0;
y = +y;
- var a = 0, sp = 0;
+ var a = 0, b = +0, sp = 0;
sp = STACKTOP;
- STACKTOP = STACKTOP + 96 | 0;
- HEAP32[sp + 40 >> 2] = 0;
- HEAP32[sp + 44 >> 2] = 0;
- HEAP32[sp + 24 >> 2] = a;
- HEAP32[sp + 8 >> 2] = x;
+ STACKTOP = STACKTOP + 168 | 0;
+ a = x + y;
+ HEAP32[sp + 48 >> 2] = 0;
+ HEAP32[sp + 52 >> 2] = 0;
+ HEAPF32[sp + 32 >> 2] = b;
HEAPF32[sp + 16 >> 2] = y;
+ HEAP32[sp + 8 >> 2] = x;
+ HEAP32[sp + 24 >> 2] = a;
vars3$1(sp);
+ b = +HEAPF32[sp + 32 >> 2];
a = HEAP32[sp + 24 >> 2] | 0;
- HEAP32[sp + 32 >> 2] = 0;
- HEAP32[sp + 36 >> 2] = 0;
+ HEAP32[sp + 40 >> 2] = 0;
+ HEAP32[sp + 44 >> 2] = 0;
HEAP32[sp + 24 >> 2] = a;
- HEAPF32[sp + 16 >> 2] = y;
- HEAP32[sp + 8 >> 2] = x;
+ HEAPF32[sp + 32 >> 2] = b;
vars3$0(sp);
a = HEAP32[sp + 24 >> 2] | 0;
STACKTOP = sp;
@@ -228,7 +234,7 @@ function vars4(x, y) {
y = +y;
var a = 0, b = +0, sp = 0;
sp = STACKTOP;
- STACKTOP = STACKTOP + 104 | 0;
+ STACKTOP = STACKTOP + 168 | 0;
a = x + y;
HEAP32[sp + 48 >> 2] = 0;
HEAP32[sp + 52 >> 2] = 0;
@@ -254,7 +260,7 @@ function vars_w_stack(x, y) {
y = +y;
var a = 0, b = +0, sp = 0;
sp = STACKTOP;
- STACKTOP = STACKTOP + 144 | 0;
+ STACKTOP = STACKTOP + 208 | 0;
a = x + y;
HEAP32[sp + 72 >> 2] = 0;
HEAP32[sp + 76 >> 2] = 0;
@@ -276,7 +282,7 @@ function vars_w_stack(x, y) {
function chain() {
var helper$0 = 0, sp = 0;
sp = STACKTOP;
- STACKTOP = STACKTOP + 176 | 0;
+ STACKTOP = STACKTOP + 352 | 0;
helper$0 = 1;
HEAP32[sp + 56 >> 2] = 0;
HEAP32[sp + 60 >> 2] = 0;
@@ -471,23 +477,29 @@ function mix$1(sp) {
}
function vars$0(sp) {
sp = sp | 0;
- var x = 0, y = +0;
- y = +HEAPF32[sp + 16 >> 2];
- x = HEAP32[sp + 8 >> 2] | 0;
- c(5 + (x + y));
- c(6 + y * x);
- c(7 + (x + y));
- c(8 + y * x);
+ var b = +0, a = 0;
+ a = HEAP32[sp + 24 >> 2] | 0;
+ b = +HEAPF32[sp + 32 >> 2];
+ c(4 + b);
+ c(5 + a);
+ c(6 + b);
+ c(7 + a);
+ c(8 + b);
}
function vars$1(sp) {
sp = sp | 0;
- var x = 0, y = +0;
+ var a = 0, x = 0, y = +0, b = +0;
+ b = +HEAPF32[sp + 32 >> 2];
y = +HEAPF32[sp + 16 >> 2];
x = HEAP32[sp + 8 >> 2] | 0;
- c(1 + (x + y));
- c(2 + y * x);
- c(3 + (x + y));
- c(4 + y * x);
+ a = HEAP32[sp + 24 >> 2] | 0;
+ a = x + y;
+ b = y * x;
+ c(1 + a);
+ c(2 + b);
+ c(3 + a);
+ HEAP32[sp + 24 >> 2] = a;
+ HEAPF32[sp + 32 >> 2] = b;
}
function vars2$0(sp) {
sp = sp | 0;
@@ -503,26 +515,27 @@ function vars2$0(sp) {
}
function vars3$0(sp) {
sp = sp | 0;
- var a = 0, y = +0, x = 0;
- x = HEAP32[sp + 8 >> 2] | 0;
- y = +HEAPF32[sp + 16 >> 2];
+ var a = 0, b = +0;
+ b = +HEAPF32[sp + 32 >> 2];
a = HEAP32[sp + 24 >> 2] | 0;
- a = c(4 + y * x);
+ a = c(4 + b);
a = c(5 + a);
- a = c(6 + y * x);
+ a = c(6 + b);
a = c(7 + a);
HEAP32[sp + 24 >> 2] = a;
}
function vars3$1(sp) {
sp = sp | 0;
- var a = 0, x = 0, y = +0;
- y = +HEAPF32[sp + 16 >> 2];
- x = HEAP32[sp + 8 >> 2] | 0;
+ var b = +0, y = +0, x = 0, a = 0;
a = HEAP32[sp + 24 >> 2] | 0;
- a = x + y;
+ x = HEAP32[sp + 8 >> 2] | 0;
+ y = +HEAPF32[sp + 16 >> 2];
+ b = +HEAPF32[sp + 32 >> 2];
+ b = y * x;
a = c(1 + a);
- a = c(2 + y * x);
+ a = c(2 + b);
a = c(3 + a);
+ HEAPF32[sp + 32 >> 2] = b;
HEAP32[sp + 24 >> 2] = a;
}
function vars4$0(sp) {