mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-15 16:01:30 +00:00
Update Binaryen to latest; Various fixes
This commit is contained in:
@ -7,17 +7,20 @@
|
||||
(type $FUNCSIG$vii (func (param i32 i32)))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\13\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
|
||||
(data (i32.const 56) "\1c\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
|
||||
(data (i32.const 120) "\12\00\00\00s\00t\00d\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
|
||||
(table 1 anyfunc)
|
||||
(elem (i32.const 0) $null)
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
||||
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
||||
(global $std/arraybuffer/buffer (mut i32) (i32.const 0))
|
||||
(global $~argc (mut i32) (i32.const 0))
|
||||
(global $std/arraybuffer/sliced (mut i32) (i32.const 0))
|
||||
(memory $0 1)
|
||||
(data (i32.const 8) "\13\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
|
||||
(data (i32.const 56) "\1c\00\00\00~\00l\00i\00b\00/\00i\00n\00t\00e\00r\00n\00a\00l\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
|
||||
(data (i32.const 120) "\12\00\00\00s\00t\00d\00/\00a\00r\00r\00a\00y\00b\00u\00f\00f\00e\00r\00.\00t\00s")
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $~lib/internal/arraybuffer/computeSize (; 1 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
||||
(i32.shl
|
||||
@ -2148,7 +2151,7 @@
|
||||
(func $~lib/arraybuffer/ArrayBuffer#slice (; 8 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(set_local $3
|
||||
(set_local $4
|
||||
(i32.load
|
||||
(get_local $0)
|
||||
)
|
||||
@ -2160,84 +2163,82 @@
|
||||
(i32.const 0)
|
||||
)
|
||||
(select
|
||||
(tee_local $4
|
||||
(tee_local $3
|
||||
(i32.add
|
||||
(get_local $3)
|
||||
(get_local $4)
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(i32.const 0)
|
||||
(i32.gt_s
|
||||
(get_local $4)
|
||||
(get_local $3)
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
(select
|
||||
(tee_local $4
|
||||
(tee_local $3
|
||||
(get_local $1)
|
||||
)
|
||||
(get_local $3)
|
||||
(get_local $4)
|
||||
(i32.lt_s
|
||||
(get_local $1)
|
||||
(get_local $3)
|
||||
(get_local $4)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(call $~lib/internal/memory/memmove
|
||||
(tee_local $4
|
||||
(i32.add
|
||||
(tee_local $3
|
||||
(call $~lib/internal/arraybuffer/allocateUnsafe
|
||||
(tee_local $2
|
||||
(select
|
||||
(tee_local $4
|
||||
(i32.sub
|
||||
(tee_local $2
|
||||
(if (result i32)
|
||||
(i32.lt_s
|
||||
(get_local $2)
|
||||
(i32.const 0)
|
||||
)
|
||||
(select
|
||||
(tee_local $4
|
||||
(i32.add
|
||||
(get_local $3)
|
||||
(get_local $2)
|
||||
)
|
||||
)
|
||||
(i32.const 0)
|
||||
(i32.gt_s
|
||||
(i32.add
|
||||
(tee_local $2
|
||||
(call $~lib/internal/arraybuffer/allocateUnsafe
|
||||
(tee_local $3
|
||||
(select
|
||||
(tee_local $3
|
||||
(i32.sub
|
||||
(tee_local $2
|
||||
(if (result i32)
|
||||
(i32.lt_s
|
||||
(get_local $2)
|
||||
(i32.const 0)
|
||||
)
|
||||
(select
|
||||
(tee_local $3
|
||||
(i32.add
|
||||
(get_local $4)
|
||||
(i32.const 0)
|
||||
(get_local $2)
|
||||
)
|
||||
)
|
||||
(select
|
||||
(tee_local $4
|
||||
(get_local $2)
|
||||
)
|
||||
(i32.const 0)
|
||||
(i32.gt_s
|
||||
(get_local $3)
|
||||
(i32.lt_s
|
||||
(get_local $2)
|
||||
(get_local $3)
|
||||
)
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
(select
|
||||
(tee_local $3
|
||||
(get_local $2)
|
||||
)
|
||||
(get_local $4)
|
||||
(i32.lt_s
|
||||
(get_local $3)
|
||||
(get_local $4)
|
||||
)
|
||||
)
|
||||
)
|
||||
(get_local $1)
|
||||
)
|
||||
(get_local $1)
|
||||
)
|
||||
)
|
||||
(i32.const 0)
|
||||
(i32.gt_s
|
||||
(get_local $3)
|
||||
(i32.const 0)
|
||||
(i32.gt_s
|
||||
(get_local $4)
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
(i32.const 8)
|
||||
)
|
||||
(i32.const 8)
|
||||
)
|
||||
(i32.add
|
||||
(i32.add
|
||||
@ -2246,9 +2247,9 @@
|
||||
)
|
||||
(get_local $1)
|
||||
)
|
||||
(get_local $2)
|
||||
(get_local $3)
|
||||
)
|
||||
(get_local $3)
|
||||
(get_local $2)
|
||||
)
|
||||
(func $~lib/arraybuffer/ArrayBuffer#slice|trampoline (; 9 ;) (; has Stack IR ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(local $2 i32)
|
||||
@ -2283,6 +2284,8 @@
|
||||
)
|
||||
)
|
||||
(func $start (; 11 ;) (; has Stack IR ;) (type $v)
|
||||
(local $0 i32)
|
||||
(local $1 i32)
|
||||
(set_global $~lib/allocator/arena/startOffset
|
||||
(i32.const 160)
|
||||
)
|
||||
@ -2335,14 +2338,20 @@
|
||||
(unreachable)
|
||||
)
|
||||
)
|
||||
(set_local $0
|
||||
(call $~lib/arraybuffer/ArrayBuffer#get:data
|
||||
(get_global $std/arraybuffer/sliced)
|
||||
)
|
||||
)
|
||||
(set_local $1
|
||||
(call $~lib/arraybuffer/ArrayBuffer#get:data
|
||||
(get_global $std/arraybuffer/buffer)
|
||||
)
|
||||
)
|
||||
(if
|
||||
(i32.eq
|
||||
(call $~lib/arraybuffer/ArrayBuffer#get:data
|
||||
(get_global $std/arraybuffer/sliced)
|
||||
)
|
||||
(call $~lib/arraybuffer/ArrayBuffer#get:data
|
||||
(get_global $std/arraybuffer/buffer)
|
||||
)
|
||||
(get_local $0)
|
||||
(get_local $1)
|
||||
)
|
||||
(block
|
||||
(call $~lib/env/abort
|
||||
|
Reference in New Issue
Block a user