summaryrefslogtreecommitdiff
path: root/test/wasm2js/func.2asm.js
diff options
context:
space:
mode:
Diffstat (limited to 'test/wasm2js/func.2asm.js')
-rw-r--r--test/wasm2js/func.2asm.js633
1 files changed, 465 insertions, 168 deletions
diff --git a/test/wasm2js/func.2asm.js b/test/wasm2js/func.2asm.js
index a0b4eb39a..81a4682bc 100644
--- a/test/wasm2js/func.2asm.js
+++ b/test/wasm2js/func.2asm.js
@@ -1,3 +1,4 @@
+import { setTempRet0 } from 'env';
function asmFunc(global, env, buffer) {
"almost asm";
@@ -21,113 +22,20 @@ function asmFunc(global, env, buffer) {
var abort = env.abort;
var nan = global.NaN;
var infinity = global.Infinity;
+ var setTempRet0 = env.setTempRet0;
var i64toi32_i32$HIGH_BITS = 0;
function dummy() {
}
- function $1() {
-
- }
-
function $2() {
}
- function f() {
-
- }
-
function h() {
}
- function $5() {
-
- }
-
- function $6() {
-
- }
-
- function $7() {
-
- }
-
- function $8() {
-
- }
-
- function $9() {
-
- }
-
- function $10() {
-
- }
-
- function $11() {
-
- }
-
- function $12() {
-
- }
-
- function $13() {
-
- }
-
- function $14($0) {
- $0 = $0 | 0;
- }
-
- function $15(x) {
- x = x | 0;
- }
-
- function $16($0, $1_1, $2_1, $2$hi) {
- $0 = $0 | 0;
- $1_1 = +$1_1;
- $2_1 = $2_1 | 0;
- $2$hi = $2$hi | 0;
- }
-
- function $17($0, $1_1) {
- $0 = $0 | 0;
- $1_1 = +$1_1;
- }
-
- function $18($0, $1_1, x, x$hi, $3, $4) {
- $0 = $0 | 0;
- $1_1 = Math_fround($1_1);
- x = x | 0;
- x$hi = x$hi | 0;
- $3 = $3 | 0;
- $4 = +$4;
- }
-
- function $19() {
- return abort() | 0;
- }
-
- function $20() {
-
- }
-
- function complex($0, $1_1, x, x$hi, $3) {
- $0 = $0 | 0;
- $1_1 = Math_fround($1_1);
- x = x | 0;
- x$hi = x$hi | 0;
- $3 = $3 | 0;
- return abort() | 0;
- }
-
- function complex_sig() {
- abort();
- }
-
function $23() {
var $0 = 0;
return $0 | 0;
@@ -151,43 +59,43 @@ function asmFunc(global, env, buffer) {
}
function $27() {
- var $1_1 = 0;
- return $1_1 | 0;
+ var $1 = 0;
+ return $1 | 0;
}
function $28() {
- var i64toi32_i32$0 = 0, $1$hi = 0, $1_1 = 0;
+ var i64toi32_i32$0 = 0, $1$hi = 0, $1 = 0;
i64toi32_i32$0 = $1$hi;
i64toi32_i32$HIGH_BITS = i64toi32_i32$0;
- return $1_1 | 0;
+ return $1 | 0;
}
function $29() {
- var $1_1 = Math_fround(0);
- return Math_fround($1_1);
+ var $1 = Math_fround(0);
+ return Math_fround($1);
}
function $30() {
- var $1_1 = 0.0;
- return +$1_1;
+ var $1 = 0.0;
+ return +$1;
}
function $31() {
- var i64toi32_i32$0 = 0, $4 = 0.0, $0 = Math_fround(0), x = 0, $2$hi = 0, $2_1 = 0, $3 = 0, $5_1 = 0;
+ var i64toi32_i32$0 = 0, $4 = 0.0, $0 = Math_fround(0), x = 0, $2$hi = 0, $2_1 = 0, $3 = 0, $5 = 0;
i64toi32_i32$0 = $2$hi;
return +$4;
}
- function $32($0, $1_1) {
+ function $32($0, $1) {
$0 = $0 | 0;
- $1_1 = $1_1 | 0;
+ $1 = $1 | 0;
return $0 | 0;
}
- function $33($0, $0$hi, $1_1, $1$hi) {
+ function $33($0, $0$hi, $1, $1$hi) {
$0 = $0 | 0;
$0$hi = $0$hi | 0;
- $1_1 = $1_1 | 0;
+ $1 = $1 | 0;
$1$hi = $1$hi | 0;
var i64toi32_i32$0 = 0;
i64toi32_i32$0 = $0$hi;
@@ -195,55 +103,55 @@ function asmFunc(global, env, buffer) {
return $0 | 0;
}
- function $34($0, $1_1) {
+ function $34($0, $1) {
$0 = Math_fround($0);
- $1_1 = Math_fround($1_1);
+ $1 = Math_fround($1);
return Math_fround($0);
}
- function $35($0, $1_1) {
+ function $35($0, $1) {
$0 = +$0;
- $1_1 = +$1_1;
+ $1 = +$1;
return +$0;
}
- function $36($0, $1_1) {
+ function $36($0, $1) {
$0 = $0 | 0;
- $1_1 = $1_1 | 0;
- return $1_1 | 0;
+ $1 = $1 | 0;
+ return $1 | 0;
}
- function $37($0, $0$hi, $1_1, $1$hi) {
+ function $37($0, $0$hi, $1, $1$hi) {
$0 = $0 | 0;
$0$hi = $0$hi | 0;
- $1_1 = $1_1 | 0;
+ $1 = $1 | 0;
$1$hi = $1$hi | 0;
var i64toi32_i32$0 = 0;
i64toi32_i32$0 = $1$hi;
i64toi32_i32$HIGH_BITS = i64toi32_i32$0;
- return $1_1 | 0;
+ return $1 | 0;
}
- function $38($0, $1_1) {
+ function $38($0, $1) {
$0 = Math_fround($0);
- $1_1 = Math_fround($1_1);
- return Math_fround($1_1);
+ $1 = Math_fround($1);
+ return Math_fround($1);
}
- function $39($0, $1_1) {
+ function $39($0, $1) {
$0 = +$0;
- $1_1 = +$1_1;
- return +$1_1;
+ $1 = +$1;
+ return +$1;
}
- function $40($0, $1_1, x, x$hi, $3, $4, $5_1) {
+ function $40($0, $1, x, x$hi, $3, $4, $5) {
$0 = Math_fround($0);
- $1_1 = $1_1 | 0;
+ $1 = $1 | 0;
x = x | 0;
x$hi = x$hi | 0;
$3 = $3 | 0;
$4 = +$4;
- $5_1 = $5_1 | 0;
+ $5 = $5 | 0;
var i64toi32_i32$0 = 0;
i64toi32_i32$0 = x$hi;
return +$4;
@@ -454,50 +362,36 @@ function asmFunc(global, env, buffer) {
}
- function complex_sig_1($0, $1_1, $1$hi, $2_1, $3, $3$hi, $4, $5_1, $5$hi, $6_1, $7_1) {
+ function complex_sig_1($0, $1, $1$hi, $2_1, $3, $3$hi, $4, $5, $5$hi, $6, $7) {
$0 = +$0;
- $1_1 = $1_1 | 0;
+ $1 = $1 | 0;
$1$hi = $1$hi | 0;
$2_1 = +$2_1;
$3 = $3 | 0;
$3$hi = $3$hi | 0;
$4 = +$4;
- $5_1 = $5_1 | 0;
+ $5 = $5 | 0;
$5$hi = $5$hi | 0;
- $6_1 = Math_fround($6_1);
- $7_1 = $7_1 | 0;
+ $6 = Math_fround($6);
+ $7 = $7 | 0;
}
function empty_sig_2() {
}
- function complex_sig_2($0, $1_1, $1$hi, $2_1, $3, $3$hi, $4, $5_1, $5$hi, $6_1, $7_1) {
- $0 = +$0;
- $1_1 = $1_1 | 0;
- $1$hi = $1$hi | 0;
- $2_1 = +$2_1;
- $3 = $3 | 0;
- $3$hi = $3$hi | 0;
- $4 = +$4;
- $5_1 = $5_1 | 0;
- $5$hi = $5$hi | 0;
- $6_1 = Math_fround($6_1);
- $7_1 = $7_1 | 0;
- }
-
- function complex_sig_3($0, $1_1, $1$hi, $2_1, $3, $3$hi, $4, $5_1, $5$hi, $6_1, $7_1) {
+ function complex_sig_3($0, $1, $1$hi, $2_1, $3, $3$hi, $4, $5, $5$hi, $6, $7) {
$0 = +$0;
- $1_1 = $1_1 | 0;
+ $1 = $1 | 0;
$1$hi = $1$hi | 0;
$2_1 = +$2_1;
$3 = $3 | 0;
$3$hi = $3$hi | 0;
$4 = +$4;
- $5_1 = $5_1 | 0;
+ $5 = $5 | 0;
$5$hi = $5$hi | 0;
- $6_1 = Math_fround($6_1);
- $7_1 = $7_1 | 0;
+ $6 = Math_fround($6);
+ $7 = $7 | 0;
}
function $76() {
@@ -583,46 +477,449 @@ function asmFunc(global, env, buffer) {
FUNCTION_TABLE[wasm2js_i32$0](+wasm2js_f64$0, wasm2js_i32$1 | 0, wasm2js_i32$2 | 0, +wasm2js_f64$1, wasm2js_i32$3 | 0, wasm2js_i32$4 | 0, +wasm2js_f64$2, wasm2js_i32$5 | 0, wasm2js_i32$6 | 0, Math_fround(wasm2js_f32$0), wasm2js_i32$7 | 0);
}
+ function legalstub$24() {
+ var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0;
+ i64toi32_i32$0 = $24() | 0;
+ i64toi32_i32$1 = i64toi32_i32$HIGH_BITS;
+ $0 = i64toi32_i32$0;
+ $0$hi = i64toi32_i32$1;
+ i64toi32_i32$2 = i64toi32_i32$0;
+ i64toi32_i32$0 = 0;
+ i64toi32_i32$3 = 32;
+ i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0;
+ if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) {
+ {
+ i64toi32_i32$0 = 0;
+ $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0;
+ }
+ } else {
+ {
+ i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0;
+ $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0;
+ }
+ }
+ setTempRet0($7 | 0);
+ i64toi32_i32$0 = $0$hi;
+ return $0 | 0;
+ }
+
+ function legalstub$25() {
+ return +(+Math_fround($25()));
+ }
+
+ function legalstub$28() {
+ var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0;
+ i64toi32_i32$0 = $28() | 0;
+ i64toi32_i32$1 = i64toi32_i32$HIGH_BITS;
+ $0 = i64toi32_i32$0;
+ $0$hi = i64toi32_i32$1;
+ i64toi32_i32$2 = i64toi32_i32$0;
+ i64toi32_i32$0 = 0;
+ i64toi32_i32$3 = 32;
+ i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0;
+ if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) {
+ {
+ i64toi32_i32$0 = 0;
+ $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0;
+ }
+ } else {
+ {
+ i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0;
+ $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0;
+ }
+ }
+ setTempRet0($7 | 0);
+ i64toi32_i32$0 = $0$hi;
+ return $0 | 0;
+ }
+
+ function legalstub$29() {
+ return +(+Math_fround($29()));
+ }
+
+ function legalstub$33($0, $1, $2_1, $3) {
+ $0 = $0 | 0;
+ $1 = $1 | 0;
+ $2_1 = $2_1 | 0;
+ $3 = $3 | 0;
+ var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21 = 0, $22 = 0, $23_1 = 0, $6 = 0, $6$hi = 0, $9$hi = 0, $10 = 0, $10$hi = 0, $12 = 0, $12$hi = 0, $15$hi = 0, $16 = 0, $16$hi = 0, $4 = 0, $4$hi = 0;
+ i64toi32_i32$0 = 0;
+ $6 = $0;
+ $6$hi = i64toi32_i32$0;
+ i64toi32_i32$0 = 0;
+ i64toi32_i32$2 = $1;
+ i64toi32_i32$1 = 0;
+ i64toi32_i32$3 = 32;
+ i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0;
+ if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) {
+ {
+ i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0;
+ $21 = 0;
+ }
+ } else {
+ {
+ i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0;
+ $21 = i64toi32_i32$2 << i64toi32_i32$4 | 0;
+ }
+ }
+ $9$hi = i64toi32_i32$1;
+ i64toi32_i32$1 = $6$hi;
+ i64toi32_i32$0 = $6;
+ i64toi32_i32$2 = $9$hi;
+ i64toi32_i32$3 = $21;
+ i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0;
+ $10 = i64toi32_i32$0 | i64toi32_i32$3 | 0;
+ $10$hi = i64toi32_i32$2;
+ i64toi32_i32$2 = 0;
+ $12 = $2_1;
+ $12$hi = i64toi32_i32$2;
+ i64toi32_i32$2 = 0;
+ i64toi32_i32$1 = $3;
+ i64toi32_i32$0 = 0;
+ i64toi32_i32$3 = 32;
+ i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0;
+ if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) {
+ {
+ i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0;
+ $22 = 0;
+ }
+ } else {
+ {
+ i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0;
+ $22 = i64toi32_i32$1 << i64toi32_i32$4 | 0;
+ }
+ }
+ $15$hi = i64toi32_i32$0;
+ i64toi32_i32$0 = $12$hi;
+ i64toi32_i32$2 = $12;
+ i64toi32_i32$1 = $15$hi;
+ i64toi32_i32$3 = $22;
+ i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0;
+ $16 = i64toi32_i32$2 | i64toi32_i32$3 | 0;
+ $16$hi = i64toi32_i32$1;
+ i64toi32_i32$1 = $10$hi;
+ i64toi32_i32$2 = $16$hi;
+ i64toi32_i32$2 = $33($10 | 0, i64toi32_i32$1 | 0, $16 | 0, i64toi32_i32$2 | 0) | 0;
+ i64toi32_i32$1 = i64toi32_i32$HIGH_BITS;
+ $4 = i64toi32_i32$2;
+ $4$hi = i64toi32_i32$1;
+ i64toi32_i32$0 = i64toi32_i32$2;
+ i64toi32_i32$2 = 0;
+ i64toi32_i32$3 = 32;
+ i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0;
+ if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) {
+ {
+ i64toi32_i32$2 = 0;
+ $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0;
+ }
+ } else {
+ {
+ i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0;
+ $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0;
+ }
+ }
+ setTempRet0($23_1 | 0);
+ i64toi32_i32$2 = $4$hi;
+ return $4 | 0;
+ }
+
+ function legalstub$34($0, $1) {
+ $0 = +$0;
+ $1 = +$1;
+ return +(+Math_fround($34(Math_fround(Math_fround($0)), Math_fround(Math_fround($1)))));
+ }
+
+ function legalstub$37($0, $1, $2_1, $3) {
+ $0 = $0 | 0;
+ $1 = $1 | 0;
+ $2_1 = $2_1 | 0;
+ $3 = $3 | 0;
+ var i64toi32_i32$2 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$0 = 0, i64toi32_i32$3 = 0, $21 = 0, $22 = 0, $23_1 = 0, $6 = 0, $6$hi = 0, $9$hi = 0, $10 = 0, $10$hi = 0, $12 = 0, $12$hi = 0, $15$hi = 0, $16 = 0, $16$hi = 0, $4 = 0, $4$hi = 0;
+ i64toi32_i32$0 = 0;
+ $6 = $0;
+ $6$hi = i64toi32_i32$0;
+ i64toi32_i32$0 = 0;
+ i64toi32_i32$2 = $1;
+ i64toi32_i32$1 = 0;
+ i64toi32_i32$3 = 32;
+ i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0;
+ if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) {
+ {
+ i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0;
+ $21 = 0;
+ }
+ } else {
+ {
+ i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0;
+ $21 = i64toi32_i32$2 << i64toi32_i32$4 | 0;
+ }
+ }
+ $9$hi = i64toi32_i32$1;
+ i64toi32_i32$1 = $6$hi;
+ i64toi32_i32$0 = $6;
+ i64toi32_i32$2 = $9$hi;
+ i64toi32_i32$3 = $21;
+ i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0;
+ $10 = i64toi32_i32$0 | i64toi32_i32$3 | 0;
+ $10$hi = i64toi32_i32$2;
+ i64toi32_i32$2 = 0;
+ $12 = $2_1;
+ $12$hi = i64toi32_i32$2;
+ i64toi32_i32$2 = 0;
+ i64toi32_i32$1 = $3;
+ i64toi32_i32$0 = 0;
+ i64toi32_i32$3 = 32;
+ i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0;
+ if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) {
+ {
+ i64toi32_i32$0 = i64toi32_i32$1 << i64toi32_i32$4 | 0;
+ $22 = 0;
+ }
+ } else {
+ {
+ i64toi32_i32$0 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$1 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$2 << i64toi32_i32$4 | 0) | 0;
+ $22 = i64toi32_i32$1 << i64toi32_i32$4 | 0;
+ }
+ }
+ $15$hi = i64toi32_i32$0;
+ i64toi32_i32$0 = $12$hi;
+ i64toi32_i32$2 = $12;
+ i64toi32_i32$1 = $15$hi;
+ i64toi32_i32$3 = $22;
+ i64toi32_i32$1 = i64toi32_i32$0 | i64toi32_i32$1 | 0;
+ $16 = i64toi32_i32$2 | i64toi32_i32$3 | 0;
+ $16$hi = i64toi32_i32$1;
+ i64toi32_i32$1 = $10$hi;
+ i64toi32_i32$2 = $16$hi;
+ i64toi32_i32$2 = $37($10 | 0, i64toi32_i32$1 | 0, $16 | 0, i64toi32_i32$2 | 0) | 0;
+ i64toi32_i32$1 = i64toi32_i32$HIGH_BITS;
+ $4 = i64toi32_i32$2;
+ $4$hi = i64toi32_i32$1;
+ i64toi32_i32$0 = i64toi32_i32$2;
+ i64toi32_i32$2 = 0;
+ i64toi32_i32$3 = 32;
+ i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0;
+ if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) {
+ {
+ i64toi32_i32$2 = 0;
+ $23_1 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0;
+ }
+ } else {
+ {
+ i64toi32_i32$2 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0;
+ $23_1 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$0 >>> i64toi32_i32$4 | 0) | 0;
+ }
+ }
+ setTempRet0($23_1 | 0);
+ i64toi32_i32$2 = $4$hi;
+ return $4 | 0;
+ }
+
+ function legalstub$38($0, $1) {
+ $0 = +$0;
+ $1 = +$1;
+ return +(+Math_fround($38(Math_fround(Math_fround($0)), Math_fround(Math_fround($1)))));
+ }
+
+ function legalstub$40($0, $1, $2_1, $3, $4, $5, $6) {
+ $0 = +$0;
+ $1 = $1 | 0;
+ $2_1 = $2_1 | 0;
+ $3 = $3 | 0;
+ $4 = $4 | 0;
+ $5 = +$5;
+ $6 = $6 | 0;
+ var i64toi32_i32$2 = 0, i64toi32_i32$0 = 0, i64toi32_i32$1 = 0, i64toi32_i32$4 = 0, i64toi32_i32$3 = 0, $17 = 0, $8 = Math_fround(0), $9 = 0, $11 = 0, $11$hi = 0, $14$hi = 0;
+ $8 = Math_fround($0);
+ $9 = $1;
+ i64toi32_i32$0 = 0;
+ $11 = $2_1;
+ $11$hi = i64toi32_i32$0;
+ i64toi32_i32$0 = 0;
+ i64toi32_i32$2 = $3;
+ i64toi32_i32$1 = 0;
+ i64toi32_i32$3 = 32;
+ i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0;
+ if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) {
+ {
+ i64toi32_i32$1 = i64toi32_i32$2 << i64toi32_i32$4 | 0;
+ $17 = 0;
+ }
+ } else {
+ {
+ i64toi32_i32$1 = ((1 << i64toi32_i32$4 | 0) - 1 | 0) & (i64toi32_i32$2 >>> (32 - i64toi32_i32$4 | 0) | 0) | 0 | (i64toi32_i32$0 << i64toi32_i32$4 | 0) | 0;
+ $17 = i64toi32_i32$2 << i64toi32_i32$4 | 0;
+ }
+ }
+ $14$hi = i64toi32_i32$1;
+ i64toi32_i32$1 = $11$hi;
+ i64toi32_i32$0 = $11;
+ i64toi32_i32$2 = $14$hi;
+ i64toi32_i32$3 = $17;
+ i64toi32_i32$2 = i64toi32_i32$1 | i64toi32_i32$2 | 0;
+ return +(+$40(Math_fround($8), $9 | 0, i64toi32_i32$0 | i64toi32_i32$3 | 0 | 0, i64toi32_i32$2 | 0, $4 | 0, +$5, $6 | 0));
+ }
+
+ function legalstub$44() {
+ var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0;
+ i64toi32_i32$0 = $44() | 0;
+ i64toi32_i32$1 = i64toi32_i32$HIGH_BITS;
+ $0 = i64toi32_i32$0;
+ $0$hi = i64toi32_i32$1;
+ i64toi32_i32$2 = i64toi32_i32$0;
+ i64toi32_i32$0 = 0;
+ i64toi32_i32$3 = 32;
+ i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0;
+ if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) {
+ {
+ i64toi32_i32$0 = 0;
+ $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0;
+ }
+ } else {
+ {
+ i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0;
+ $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0;
+ }
+ }
+ setTempRet0($7 | 0);
+ i64toi32_i32$0 = $0$hi;
+ return $0 | 0;
+ }
+
+ function legalstub$45() {
+ return +(+Math_fround($45()));
+ }
+
+ function legalstub$51() {
+ var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0;
+ i64toi32_i32$0 = $51() | 0;
+ i64toi32_i32$1 = i64toi32_i32$HIGH_BITS;
+ $0 = i64toi32_i32$0;
+ $0$hi = i64toi32_i32$1;
+ i64toi32_i32$2 = i64toi32_i32$0;
+ i64toi32_i32$0 = 0;
+ i64toi32_i32$3 = 32;
+ i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0;
+ if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) {
+ {
+ i64toi32_i32$0 = 0;
+ $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0;
+ }
+ } else {
+ {
+ i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0;
+ $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0;
+ }
+ }
+ setTempRet0($7 | 0);
+ i64toi32_i32$0 = $0$hi;
+ return $0 | 0;
+ }
+
+ function legalstub$52() {
+ return +(+Math_fround($52()));
+ }
+
+ function legalstub$57() {
+ var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0;
+ i64toi32_i32$0 = $57() | 0;
+ i64toi32_i32$1 = i64toi32_i32$HIGH_BITS;
+ $0 = i64toi32_i32$0;
+ $0$hi = i64toi32_i32$1;
+ i64toi32_i32$2 = i64toi32_i32$0;
+ i64toi32_i32$0 = 0;
+ i64toi32_i32$3 = 32;
+ i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0;
+ if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) {
+ {
+ i64toi32_i32$0 = 0;
+ $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0;
+ }
+ } else {
+ {
+ i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0;
+ $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0;
+ }
+ }
+ setTempRet0($7 | 0);
+ i64toi32_i32$0 = $0$hi;
+ return $0 | 0;
+ }
+
+ function legalstub$58() {
+ return +(+Math_fround($58()));
+ }
+
+ function legalstub$68() {
+ var i64toi32_i32$0 = 0, i64toi32_i32$4 = 0, i64toi32_i32$1 = 0, i64toi32_i32$3 = 0, $7 = 0, $0 = 0, $0$hi = 0, i64toi32_i32$2 = 0;
+ i64toi32_i32$0 = $68() | 0;
+ i64toi32_i32$1 = i64toi32_i32$HIGH_BITS;
+ $0 = i64toi32_i32$0;
+ $0$hi = i64toi32_i32$1;
+ i64toi32_i32$2 = i64toi32_i32$0;
+ i64toi32_i32$0 = 0;
+ i64toi32_i32$3 = 32;
+ i64toi32_i32$4 = i64toi32_i32$3 & 31 | 0;
+ if (32 >>> 0 <= (i64toi32_i32$3 & 63 | 0) >>> 0) {
+ {
+ i64toi32_i32$0 = 0;
+ $7 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0;
+ }
+ } else {
+ {
+ i64toi32_i32$0 = i64toi32_i32$1 >>> i64toi32_i32$4 | 0;
+ $7 = (((1 << i64toi32_i32$4 | 0) - 1 | 0) & i64toi32_i32$1 | 0) << (32 - i64toi32_i32$4 | 0) | 0 | (i64toi32_i32$2 >>> i64toi32_i32$4 | 0) | 0;
+ }
+ }
+ setTempRet0($7 | 0);
+ i64toi32_i32$0 = $0$hi;
+ return $0 | 0;
+ }
+
+ function legalstub$69() {
+ return +(+Math_fround($69()));
+ }
+
var FUNCTION_TABLE = [complex_sig_3, empty_sig_2, complex_sig_1, complex_sig_3, empty_sig_1];
return {
f: $2,
g: h,
local_first_i32: $23,
- local_first_i64: $24,
- local_first_f32: $25,
+ local_first_i64: legalstub$24,
+ local_first_f32: legalstub$25,
local_first_f64: $26,
local_second_i32: $27,
- local_second_i64: $28,
- local_second_f32: $29,
+ local_second_i64: legalstub$28,
+ local_second_f32: legalstub$29,
local_second_f64: $30,
local_mixed: $31,
param_first_i32: $32,
- param_first_i64: $33,
- param_first_f32: $34,
+ param_first_i64: legalstub$33,
+ param_first_f32: legalstub$34,
param_first_f64: $35,
param_second_i32: $36,
- param_second_i64: $37,
- param_second_f32: $38,
+ param_second_i64: legalstub$37,
+ param_second_f32: legalstub$38,
param_second_f64: $39,
- param_mixed: $40,
+ param_mixed: legalstub$40,
empty: $41,
value_void: $42,
value_i32: $43,
- value_i64: $44,
- value_f32: $45,
+ value_i64: legalstub$44,
+ value_f32: legalstub$45,
value_f64: $46,
value_block_void: $47,
value_block_i32: $48,
return_empty: $49,
return_i32: $50,
- return_i64: $51,
- return_f32: $52,
+ return_i64: legalstub$51,
+ return_f32: legalstub$52,
return_f64: $53,
return_block_i32: $54,
break_empty: $55,
break_i32: $56,
- break_i64: $57,
- break_f32: $58,
+ break_i64: legalstub$57,
+ break_f32: legalstub$58,
break_f64: $59,
break_block_i32: $60,
break_br_if_empty: $61,
@@ -632,8 +929,8 @@ function asmFunc(global, env, buffer) {
break_br_table_nested_empty: $65,
break_br_table_nested_num: $66,
init_local_i32: $67,
- init_local_i64: $68,
- init_local_f32: $69,
+ init_local_i64: legalstub$68,
+ init_local_f32: legalstub$69,
init_local_f64: $70,
signature_explicit_reused: $76,
signature_implicit_reused: $77,
@@ -643,7 +940,7 @@ function asmFunc(global, env, buffer) {
}
const memasmFunc = new ArrayBuffer(65536);
-const retasmFunc = asmFunc({Math,Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,NaN,Infinity}, {abort:function() { throw new Error('abort'); }},memasmFunc);
+const retasmFunc = asmFunc({Math,Int8Array,Uint8Array,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array,NaN,Infinity}, {abort:function() { throw new Error('abort'); },setTempRet0},memasmFunc);
export const f = retasmFunc.f;
export const g = retasmFunc.g;
export const local_first_i32 = retasmFunc.local_first_i32;