diff options
Diffstat (limited to 'test/wasm2js/stack-modified.2asm.js.opt')
-rw-r--r-- | test/wasm2js/stack-modified.2asm.js.opt | 60 |
1 files changed, 15 insertions, 45 deletions
diff --git a/test/wasm2js/stack-modified.2asm.js.opt b/test/wasm2js/stack-modified.2asm.js.opt index baabfe868..c5190792d 100644 --- a/test/wasm2js/stack-modified.2asm.js.opt +++ b/test/wasm2js/stack-modified.2asm.js.opt @@ -45,55 +45,25 @@ function asmFunc(global, env, buffer) { } function legalstub$0($0_1, $1) { - var $2 = 0, $3 = 0; - $3 = $0_1; - $2 = 32; - $0_1 = $2 & 31; - if (32 >>> 0 <= $2 >>> 0) { - $2 = $1 << $0_1; - $0_1 = 0; - } else { - $2 = (1 << $0_1) - 1 & $1 >>> 32 - $0_1; - $0_1 = $1 << $0_1; - } - $0_1 = $0($3 | $0_1, $2); - $1 = i64toi32_i32$HIGH_BITS; - $3 = 32; - $2 = $3 & 31; - setTempRet0((32 >>> 0 <= $3 >>> 0 ? $1 >>> $2 : ((1 << $2) - 1 & $1) << 32 - $2 | $0_1 >>> $2) | 0); + $0_1 = $0($0_1, $1); + setTempRet0(i64toi32_i32$HIGH_BITS | 0); return $0_1; } function _ZN17compiler_builtins3int3mul3Mul3mul17h070e9a1c69faec5bE($0_1, $1, $2, $3) { - var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0, $10 = 0; - $6 = $2 >>> 16; - $10 = $0_1; - $7 = $0_1 >>> 16; - $5 = Math_imul($6, $7); - $4 = $2 & 65535; - $8 = $0_1 & 65535; - $9 = Math_imul($4, $8); - $7 = ($9 >>> 16) + Math_imul($4, $7) | 0; - $6 = ($7 & 65535) + Math_imul($6, $8) | 0; - $8 = $5; - $5 = 32; - $4 = $5 & 31; - $5 = $8 + Math_imul(32 >>> 0 <= $5 >>> 0 ? $1 >>> $4 : ((1 << $4) - 1 & $1) << 32 - $4 | $0_1 >>> $4, $2) | 0; - $1 = $2; - $2 = 32; - $0_1 = $2 & 31; - $1 = (($5 + Math_imul($10, 32 >>> 0 <= $2 >>> 0 ? $3 >>> $0_1 : ((1 << $0_1) - 1 & $3) << 32 - $0_1 | $1 >>> $0_1) | 0) + ($7 >>> 16) | 0) + ($6 >>> 16) | 0; - $0_1 = 32 & 31; - if (32 >>> 0 <= $2 >>> 0) { - $2 = $1 << $0_1; - $0_1 = 0; - } else { - $2 = (1 << $0_1) - 1 & $1 >>> 32 - $0_1; - $0_1 = $1 << $0_1; - } - $0_1 = $0_1 | ($9 & 65535 | $6 << 16); - i64toi32_i32$HIGH_BITS = $2; - return $0_1; + var $4 = 0, $5 = 0, $6 = 0, $7 = 0, $8 = 0, $9 = 0; + $4 = $2 >>> 16; + $5 = $0_1 >>> 16; + $9 = Math_imul($4, $5); + $6 = $2 & 65535; + $7 = $0_1 & 65535; + $8 = Math_imul($6, $7); + $5 = ($8 >>> 16) + Math_imul($5, $6) | 0; + $4 = ($5 & 65535) + Math_imul($4, $7) | 0; + $0_1 = (((Math_imul($1, $2) + $9 | 0) + Math_imul($0_1, $3) | 0) + ($5 >>> 16) | 0) + ($4 >>> 16) | 0; + $1 = $8 & 65535 | $4 << 16; + i64toi32_i32$HIGH_BITS = $0_1; + return $1; } var FUNCTION_TABLE = []; |