Update Binaryen to latest and rebuild dist files

This commit is contained in:
dcode
2019-02-05 17:12:10 +01:00
parent c95c0f5fbe
commit cd1cfe6957
194 changed files with 68272 additions and 68272 deletions

View File

@ -13,7 +13,7 @@
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
(data (i32.const 8) "\n\00\00\00s\00t\00d\00/\00m\00o\00d\00.\00t\00s\00")
(table $0 1 anyfunc)
(table $0 1 funcref)
(elem (i32.const 0) $null)
(global $std/mod/js i32 (i32.const 1))
(global $NaN f64 (f64.const nan:0x8000000000000))
@ -34,305 +34,305 @@
(local $9 f64)
(local $10 i64)
(local $11 i64)
get_local $0
i64.reinterpret/f64
set_local $2
get_local $1
i64.reinterpret/f64
set_local $3
get_local $2
local.get $0
i64.reinterpret_f64
local.set $2
local.get $1
i64.reinterpret_f64
local.set $3
local.get $2
i64.const 52
i64.shr_u
i64.const 2047
i64.and
set_local $4
get_local $3
local.set $4
local.get $3
i64.const 52
i64.shr_u
i64.const 2047
i64.and
set_local $5
get_local $2
local.set $5
local.get $2
i64.const 63
i64.shr_u
set_local $6
get_local $3
local.set $6
local.get $3
i64.const 1
i64.shl
set_local $7
get_local $7
local.set $7
local.get $7
i64.const 0
i64.eq
tee_local $8
local.tee $8
if (result i32)
get_local $8
local.get $8
else
get_local $4
local.get $4
i64.const 2047
i64.eq
end
tee_local $8
local.tee $8
if (result i32)
get_local $8
local.get $8
else
get_local $1
get_local $1
local.get $1
local.get $1
f64.ne
end
i32.const 0
i32.ne
if
get_local $0
get_local $1
local.get $0
local.get $1
f64.mul
set_local $9
get_local $9
get_local $9
local.set $9
local.get $9
local.get $9
f64.div
return
end
get_local $2
local.get $2
i64.const 1
i64.shl
set_local $10
get_local $10
get_local $7
local.set $10
local.get $10
local.get $7
i64.le_u
if
get_local $10
get_local $7
local.get $10
local.get $7
i64.eq
if
f64.const 0
get_local $0
local.get $0
f64.mul
return
end
get_local $0
local.get $0
return
end
get_local $4
local.get $4
i64.eqz
if
get_local $4
get_local $2
local.get $4
local.get $2
i64.const 12
i64.shl
i64.clz
i64.sub
set_local $4
get_local $2
local.set $4
local.get $2
i64.const 0
get_local $4
local.get $4
i64.sub
i64.const 1
i64.add
i64.shl
set_local $2
local.set $2
else
get_local $2
local.get $2
i64.const -1
i64.const 12
i64.shr_u
i64.and
set_local $2
get_local $2
local.set $2
local.get $2
i64.const 1
i64.const 52
i64.shl
i64.or
set_local $2
local.set $2
end
get_local $5
local.get $5
i64.eqz
if
get_local $5
get_local $3
local.get $5
local.get $3
i64.const 12
i64.shl
i64.clz
i64.sub
set_local $5
get_local $3
local.set $5
local.get $3
i64.const 0
get_local $5
local.get $5
i64.sub
i64.const 1
i64.add
i64.shl
set_local $3
local.set $3
else
get_local $3
local.get $3
i64.const -1
i64.const 12
i64.shr_u
i64.and
set_local $3
get_local $3
local.set $3
local.get $3
i64.const 1
i64.const 52
i64.shl
i64.or
set_local $3
local.set $3
end
block $break|0
loop $continue|0
get_local $4
get_local $5
local.get $4
local.get $5
i64.gt_s
if
block
get_local $2
get_local $3
local.get $2
local.get $3
i64.ge_u
if
get_local $2
get_local $3
local.get $2
local.get $3
i64.eq
if
f64.const 0
get_local $0
local.get $0
f64.mul
return
end
get_local $2
get_local $3
local.get $2
local.get $3
i64.sub
set_local $2
local.set $2
end
get_local $2
local.get $2
i64.const 1
i64.shl
set_local $2
get_local $4
local.set $2
local.get $4
i64.const 1
i64.sub
set_local $4
local.set $4
end
br $continue|0
end
end
end
get_local $2
get_local $3
local.get $2
local.get $3
i64.ge_u
if
get_local $2
get_local $3
local.get $2
local.get $3
i64.eq
if
f64.const 0
get_local $0
local.get $0
f64.mul
return
end
get_local $2
get_local $3
local.get $2
local.get $3
i64.sub
set_local $2
local.set $2
end
get_local $2
local.get $2
i64.const 11
i64.shl
i64.clz
set_local $11
get_local $4
get_local $11
local.set $11
local.get $4
local.get $11
i64.sub
set_local $4
get_local $2
get_local $11
local.set $4
local.get $2
local.get $11
i64.shl
set_local $2
get_local $4
local.set $2
local.get $4
i64.const 0
i64.gt_s
if
get_local $2
local.get $2
i64.const 1
i64.const 52
i64.shl
i64.sub
set_local $2
get_local $2
get_local $4
local.set $2
local.get $2
local.get $4
i64.const 52
i64.shl
i64.or
set_local $2
local.set $2
else
get_local $2
local.get $2
i64.const 0
get_local $4
local.get $4
i64.sub
i64.const 1
i64.add
i64.shr_u
set_local $2
local.set $2
end
get_local $2
get_local $6
local.get $2
local.get $6
i64.const 63
i64.shl
i64.or
set_local $2
get_local $2
f64.reinterpret/i64
local.set $2
local.get $2
f64.reinterpret_i64
)
(func $~lib/builtins/isNaN<f64> (; 3 ;) (type $Fi) (param $0 f64) (result i32)
get_local $0
get_local $0
local.get $0
local.get $0
f64.ne
)
(func $std/mod/check<f64> (; 4 ;) (type $FFi) (param $0 f64) (param $1 f64) (result i32)
get_local $1
local.get $1
call $~lib/builtins/isNaN<f64>
if
get_local $0
local.get $0
call $~lib/builtins/isNaN<f64>
return
end
get_local $1
local.get $1
f64.const 0
f64.eq
if
i32.const 1
f64.convert_u/i32
get_local $1
f64.convert_i32_u
local.get $1
f64.div
f64.const 1
get_local $0
local.get $0
f64.div
f64.eq
return
end
get_local $0
get_local $1
local.get $0
local.get $1
f64.eq
)
(func $std/mod/test_fmod (; 5 ;) (type $FFFi) (param $0 f64) (param $1 f64) (param $2 f64) (result i32)
(local $3 i32)
get_local $0
get_local $1
local.get $0
local.get $1
call $~lib/math/NativeMath.mod
get_local $2
local.get $2
call $std/mod/check<f64>
tee_local $3
local.tee $3
if (result i32)
get_global $std/mod/js
global.get $std/mod/js
i32.eqz
tee_local $3
local.tee $3
if (result i32)
get_local $3
local.get $3
else
get_local $0
get_local $1
local.get $0
local.get $1
call $std/mod/mod
get_local $2
local.get $2
call $std/mod/check<f64>
end
else
get_local $3
local.get $3
end
)
(func $~lib/math/NativeMathf.mod (; 6 ;) (type $fff) (param $0 f32) (param $1 f32) (result f32)
@ -346,285 +346,285 @@
(local $9 f32)
(local $10 i32)
(local $11 i32)
get_local $0
i32.reinterpret/f32
set_local $2
get_local $1
i32.reinterpret/f32
set_local $3
get_local $2
local.get $0
i32.reinterpret_f32
local.set $2
local.get $1
i32.reinterpret_f32
local.set $3
local.get $2
i32.const 23
i32.shr_u
i32.const 255
i32.and
set_local $4
get_local $3
local.set $4
local.get $3
i32.const 23
i32.shr_u
i32.const 255
i32.and
set_local $5
get_local $2
local.set $5
local.get $2
i32.const -2147483648
i32.and
set_local $6
get_local $3
local.set $6
local.get $3
i32.const 1
i32.shl
set_local $7
get_local $7
local.set $7
local.get $7
i32.const 0
i32.eq
tee_local $8
local.tee $8
if (result i32)
get_local $8
local.get $8
else
get_local $4
local.get $4
i32.const 255
i32.eq
end
tee_local $8
local.tee $8
if (result i32)
get_local $8
local.get $8
else
get_local $1
get_local $1
local.get $1
local.get $1
f32.ne
end
i32.const 0
i32.ne
if
get_local $0
get_local $1
local.get $0
local.get $1
f32.mul
set_local $9
get_local $9
get_local $9
local.set $9
local.get $9
local.get $9
f32.div
return
end
get_local $2
local.get $2
i32.const 1
i32.shl
set_local $10
get_local $10
get_local $7
local.set $10
local.get $10
local.get $7
i32.le_u
if
get_local $10
get_local $7
local.get $10
local.get $7
i32.eq
if
f32.const 0
get_local $0
local.get $0
f32.mul
return
end
get_local $0
local.get $0
return
end
get_local $4
local.get $4
i32.eqz
if
get_local $4
get_local $2
local.get $4
local.get $2
i32.const 9
i32.shl
i32.clz
i32.sub
set_local $4
get_local $2
local.set $4
local.get $2
i32.const 0
get_local $4
local.get $4
i32.sub
i32.const 1
i32.add
i32.shl
set_local $2
local.set $2
else
get_local $2
local.get $2
i32.const -1
i32.const 9
i32.shr_u
i32.and
set_local $2
get_local $2
local.set $2
local.get $2
i32.const 1
i32.const 23
i32.shl
i32.or
set_local $2
local.set $2
end
get_local $5
local.get $5
i32.eqz
if
get_local $5
get_local $3
local.get $5
local.get $3
i32.const 9
i32.shl
i32.clz
i32.sub
set_local $5
get_local $3
local.set $5
local.get $3
i32.const 0
get_local $5
local.get $5
i32.sub
i32.const 1
i32.add
i32.shl
set_local $3
local.set $3
else
get_local $3
local.get $3
i32.const -1
i32.const 9
i32.shr_u
i32.and
set_local $3
get_local $3
local.set $3
local.get $3
i32.const 1
i32.const 23
i32.shl
i32.or
set_local $3
local.set $3
end
block $break|0
loop $continue|0
get_local $4
get_local $5
local.get $4
local.get $5
i32.gt_s
if
block
get_local $2
get_local $3
local.get $2
local.get $3
i32.ge_u
if
get_local $2
get_local $3
local.get $2
local.get $3
i32.eq
if
f32.const 0
get_local $0
local.get $0
f32.mul
return
end
get_local $2
get_local $3
local.get $2
local.get $3
i32.sub
set_local $2
local.set $2
end
get_local $2
local.get $2
i32.const 1
i32.shl
set_local $2
get_local $4
local.set $2
local.get $4
i32.const 1
i32.sub
set_local $4
local.set $4
end
br $continue|0
end
end
end
get_local $2
get_local $3
local.get $2
local.get $3
i32.ge_u
if
get_local $2
get_local $3
local.get $2
local.get $3
i32.eq
if
f32.const 0
get_local $0
local.get $0
f32.mul
return
end
get_local $2
get_local $3
local.get $2
local.get $3
i32.sub
set_local $2
local.set $2
end
get_local $2
local.get $2
i32.const 8
i32.shl
i32.clz
set_local $11
get_local $4
get_local $11
local.set $11
local.get $4
local.get $11
i32.sub
set_local $4
get_local $2
get_local $11
local.set $4
local.get $2
local.get $11
i32.shl
set_local $2
get_local $4
local.set $2
local.get $4
i32.const 0
i32.gt_s
if
get_local $2
local.get $2
i32.const 1
i32.const 23
i32.shl
i32.sub
set_local $2
get_local $2
get_local $4
local.set $2
local.get $2
local.get $4
i32.const 23
i32.shl
i32.or
set_local $2
local.set $2
else
get_local $2
local.get $2
i32.const 0
get_local $4
local.get $4
i32.sub
i32.const 1
i32.add
i32.shr_u
set_local $2
local.set $2
end
get_local $2
get_local $6
local.get $2
local.get $6
i32.or
set_local $2
get_local $2
f32.reinterpret/i32
local.set $2
local.get $2
f32.reinterpret_i32
)
(func $~lib/builtins/isNaN<f32> (; 7 ;) (type $fi) (param $0 f32) (result i32)
get_local $0
get_local $0
local.get $0
local.get $0
f32.ne
)
(func $std/mod/check<f32> (; 8 ;) (type $ffi) (param $0 f32) (param $1 f32) (result i32)
get_local $1
local.get $1
call $~lib/builtins/isNaN<f32>
if
get_local $0
local.get $0
call $~lib/builtins/isNaN<f32>
return
end
get_local $1
local.get $1
f32.const 0
f32.eq
if
i32.const 1
f32.convert_u/i32
get_local $1
f32.convert_i32_u
local.get $1
f32.div
f32.const 1
get_local $0
local.get $0
f32.div
f32.eq
return
end
get_local $0
get_local $1
local.get $0
local.get $1
f32.eq
)
(func $std/mod/test_fmodf (; 9 ;) (type $fffi) (param $0 f32) (param $1 f32) (param $2 f32) (result i32)
get_local $0
get_local $1
local.get $0
local.get $1
call $~lib/math/NativeMathf.mod
get_local $2
local.get $2
call $std/mod/check<f32>
)
(func $start (; 10 ;) (type $v)