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.js30
1 files changed, 30 insertions, 0 deletions
diff --git a/tools/test-js-optimizer-asm-outline1-output.js b/tools/test-js-optimizer-asm-outline1-output.js
index 00ba667d..a95fdc72 100644
--- a/tools/test-js-optimizer-asm-outline1-output.js
+++ b/tools/test-js-optimizer-asm-outline1-output.js
@@ -97,6 +97,16 @@ function mix() {
}
return 20;
}
+function vars(x, y) {
+ x = x | 0;
+ y = +y;
+ HEAP32[sp + 0 >> 2] = x;
+ HEAPF32[sp + 8 >> 2] = y;
+ vars$1(sp);
+ HEAP32[sp + 0 >> 2] = x;
+ HEAPF32[sp + 8 >> 2] = y;
+ vars$0(sp);
+}
function lin$0(sp) {
sp = sp | 0;
c(13);
@@ -246,4 +256,24 @@ function mix$1(sp) {
c(14);
c(15);
}
+function vars$0(sp) {
+ sp = sp | 0;
+ var x = 0, y = +0;
+ y = HEAPF32[sp + 8 >> 2];
+ x = HEAP32[sp + 0 >> 2];
+ c(5 + (x + y));
+ c(6 + y * x);
+ c(7 + (x + y));
+ c(8 + y * x);
+}
+function vars$1(sp) {
+ sp = sp | 0;
+ var x = 0, y = +0;
+ y = HEAPF32[sp + 8 >> 2];
+ x = HEAP32[sp + 0 >> 2];
+ c(1 + (x + y));
+ c(2 + y * x);
+ c(3 + (x + y));
+ c(4 + y * x);
+}