2018-03-23 01:47:01 +01:00
|
|
|
(module
|
2018-06-20 15:51:47 +02:00
|
|
|
(type $iiii (func (param i32 i32 i32) (result i32)))
|
2018-03-23 01:47:01 +01:00
|
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
2018-04-11 23:35:19 +02:00
|
|
|
(type $ii (func (param i32) (result i32)))
|
2018-03-23 01:47:01 +01:00
|
|
|
(type $iiiv (func (param i32 i32 i32)))
|
|
|
|
(type $v (func))
|
2018-09-13 23:10:49 +02:00
|
|
|
(type $FUNCSIG$vii (func (param i32 i32)))
|
|
|
|
(type $FUNCSIG$i (func (result i32)))
|
|
|
|
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
2018-10-11 08:49:08 +02:00
|
|
|
(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)
|
2018-05-21 18:48:29 +02:00
|
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
2018-04-02 19:05:26 +02:00
|
|
|
(global $~lib/allocator/arena/startOffset (mut i32) (i32.const 0))
|
|
|
|
(global $~lib/allocator/arena/offset (mut i32) (i32.const 0))
|
2018-03-23 01:47:01 +01:00
|
|
|
(global $std/arraybuffer/buffer (mut i32) (i32.const 0))
|
2018-04-17 16:04:29 +02:00
|
|
|
(global $~argc (mut i32) (i32.const 0))
|
2018-03-23 01:47:01 +01:00
|
|
|
(global $std/arraybuffer/sliced (mut i32) (i32.const 0))
|
|
|
|
(export "memory" (memory $0))
|
2018-10-11 08:49:08 +02:00
|
|
|
(export "table" (table $0))
|
2018-03-23 01:47:01 +01:00
|
|
|
(start $start)
|
2018-08-02 18:23:02 +02:00
|
|
|
(func $~lib/internal/arraybuffer/computeSize (; 1 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.shl
|
|
|
|
(i32.const 1)
|
|
|
|
(i32.sub
|
|
|
|
(i32.const 32)
|
|
|
|
(i32.clz
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 7)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(func $~lib/allocator/arena/__memory_allocate (; 2 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
2018-03-23 01:47:01 +01:00
|
|
|
(local $1 i32)
|
|
|
|
(local $2 i32)
|
|
|
|
(local $3 i32)
|
|
|
|
(if
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.gt_u
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1073741824)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.gt_u
|
|
|
|
(tee_local $2
|
|
|
|
(i32.and
|
|
|
|
(i32.add
|
|
|
|
(i32.add
|
|
|
|
(tee_local $1
|
|
|
|
(get_global $~lib/allocator/arena/offset)
|
|
|
|
)
|
|
|
|
(select
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
(i32.gt_u
|
2018-04-03 23:56:48 +02:00
|
|
|
(get_local $0)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 1)
|
2018-04-03 23:56:48 +02:00
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 7)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const -8)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(current_memory)
|
|
|
|
)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.lt_s
|
|
|
|
(grow_memory
|
|
|
|
(select
|
|
|
|
(get_local $3)
|
|
|
|
(tee_local $0
|
|
|
|
(i32.shr_u
|
|
|
|
(i32.and
|
|
|
|
(i32.add
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 65535)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const -65536)
|
2018-04-03 23:56:48 +02:00
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 16)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.gt_s
|
|
|
|
(get_local $3)
|
|
|
|
(get_local $0)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 0)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
(if
|
|
|
|
(i32.lt_s
|
|
|
|
(grow_memory
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-08-04 00:36:59 +02:00
|
|
|
(set_global $~lib/allocator/arena/offset
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(func $~lib/internal/arraybuffer/allocateUnsafe (; 3 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
2018-04-07 03:27:22 +02:00
|
|
|
(local $1 i32)
|
2018-03-23 01:47:01 +01:00
|
|
|
(if
|
|
|
|
(i32.gt_u
|
2018-04-07 03:27:22 +02:00
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1073741816)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.const 0)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 56)
|
2018-08-02 18:23:02 +02:00
|
|
|
(i32.const 23)
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(unreachable)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
2018-04-07 03:27:22 +02:00
|
|
|
(tee_local $1
|
2018-08-02 18:23:02 +02:00
|
|
|
(call $~lib/allocator/arena/__memory_allocate
|
2018-04-07 03:27:22 +02:00
|
|
|
(call $~lib/internal/arraybuffer/computeSize
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(func $~lib/internal/memory/memset (; 4 ;) (; has Stack IR ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
|
|
|
(local $2 i32)
|
2018-04-07 03:27:22 +02:00
|
|
|
(if
|
|
|
|
(i32.eqz
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $1)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $1)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.le_u
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $1)
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.sub
|
2018-09-13 23:10:49 +02:00
|
|
|
(tee_local $2
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $1)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.sub
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $2)
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.const 3)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.le_u
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $1)
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.const 6)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $1)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.le_u
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $1)
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(tee_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-09-13 23:10:49 +02:00
|
|
|
(tee_local $2
|
|
|
|
(i32.and
|
|
|
|
(i32.sub
|
|
|
|
(i32.const 0)
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
2018-05-06 00:00:54 +02:00
|
|
|
)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-09-13 23:10:49 +02:00
|
|
|
(tee_local $1
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.and
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.sub
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.const -4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.le_u
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $1)
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-09-13 23:10:49 +02:00
|
|
|
(tee_local $2
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $1)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.const 12)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $2)
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.le_u
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $1)
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 12)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 20)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-09-13 23:10:49 +02:00
|
|
|
(tee_local $2
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $1)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.const 28)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $2)
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $2)
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.const 20)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.sub
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $2)
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-09-13 23:10:49 +02:00
|
|
|
(tee_local $2
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.and
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(set_local $1
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.sub
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $1)
|
2018-04-07 03:27:22 +02:00
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $1)
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.const 32)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i64.store
|
|
|
|
(get_local $0)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i64.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i64.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i64.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i64.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i64.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
(i64.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i64.const 0)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(set_local $1
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.sub
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $1)
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.const 32)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 32)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-07 03:27:22 +02:00
|
|
|
)
|
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(func $~lib/arraybuffer/ArrayBuffer#constructor (; 5 ;) (; has Stack IR ;) (type $FUNCSIG$i) (result i32)
|
|
|
|
(local $0 i32)
|
|
|
|
(call $~lib/internal/memory/memset
|
|
|
|
(i32.add
|
|
|
|
(tee_local $0
|
|
|
|
(call $~lib/internal/arraybuffer/allocateUnsafe
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
2018-06-20 15:51:47 +02:00
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 8)
|
2018-06-20 15:51:47 +02:00
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(i32.const 8)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(get_local $0)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(func $~lib/internal/memory/memcpy (; 6 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-03-23 01:47:01 +01:00
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(local $5 i32)
|
2018-03-23 01:47:01 +01:00
|
|
|
(loop $continue|0
|
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(if (result i32)
|
|
|
|
(get_local $2)
|
|
|
|
(i32.and
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
(get_local $2)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(i32.and
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(loop $continue|1
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store16
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load16_u
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 32)
|
|
|
|
)
|
|
|
|
(block $break|2
|
|
|
|
(block $case2|2
|
|
|
|
(block $case1|2
|
2018-06-09 14:05:33 +02:00
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(tee_local $3
|
|
|
|
(i32.and
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(br_if $case1|2
|
|
|
|
(i32.eq
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br_if $case2|2
|
|
|
|
(i32.eq
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 3)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(br $break|2)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $5
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
2018-03-23 01:47:01 +01:00
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(tee_local $1
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|3
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 17)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 5)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 9)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 13)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $break|2)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $5
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|4
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 18)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 6)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 10)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 14)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $break|2)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $5
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|5
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 19)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store
|
|
|
|
(get_local $0)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 7)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $5)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
|
|
|
(tee_local $3
|
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 11)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 12)
|
|
|
|
)
|
|
|
|
(i32.or
|
|
|
|
(i32.shr_u
|
|
|
|
(get_local $3)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(i32.shl
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $5
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 15)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 24)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|5)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 16)
|
|
|
|
)
|
|
|
|
(block
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
2018-03-23 01:47:01 +01:00
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(tee_local $1
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $3
|
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $1
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(block
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
2018-03-23 01:47:01 +01:00
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(tee_local $1
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $3)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $3
|
|
|
|
(i32.add
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.load8_u
|
|
|
|
(tee_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(block
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.store8
|
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(tee_local $4
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(set_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
(i32.store8
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $0)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(func $~lib/internal/memory/memmove (; 7 ;) (; has Stack IR ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
2018-03-23 01:47:01 +01:00
|
|
|
(local $3 i32)
|
2018-06-09 14:05:33 +02:00
|
|
|
(local $4 i32)
|
2018-03-23 01:47:01 +01:00
|
|
|
(if
|
|
|
|
(i32.eq
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(if
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.eqz
|
2018-05-06 00:00:54 +02:00
|
|
|
(tee_local $3
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.le_u
|
|
|
|
(i32.add
|
2018-05-06 00:00:54 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-05-06 00:00:54 +02:00
|
|
|
(get_local $0)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(set_local $3
|
2018-05-06 00:00:54 +02:00
|
|
|
(i32.le_u
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(get_local $3)
|
2018-03-23 01:47:01 +01:00
|
|
|
(block
|
2018-08-02 18:23:02 +02:00
|
|
|
(call $~lib/internal/memory/memcpy
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.lt_u
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eq
|
|
|
|
(i32.and
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 7)
|
|
|
|
)
|
|
|
|
(i32.and
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 7)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(loop $continue|0
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 7)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|1
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i64.store
|
|
|
|
(get_local $0)
|
|
|
|
(i64.load
|
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|2
|
|
|
|
(if
|
|
|
|
(get_local $2)
|
|
|
|
(block
|
|
|
|
(set_local $0
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(tee_local $4
|
|
|
|
(get_local $0)
|
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_local $1
|
|
|
|
(i32.add
|
|
|
|
(tee_local $3
|
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(get_local $4)
|
|
|
|
(i32.load8_u
|
|
|
|
(get_local $3)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eq
|
|
|
|
(i32.and
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 7)
|
|
|
|
)
|
|
|
|
(i32.and
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 7)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(loop $continue|3
|
|
|
|
(if
|
|
|
|
(i32.and
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(i32.const 7)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(return)
|
|
|
|
)
|
|
|
|
(i32.store8
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(tee_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.load8_u
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|4
|
|
|
|
(if
|
|
|
|
(i32.ge_u
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(block
|
|
|
|
(i64.store
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(tee_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i64.load
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|4)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(loop $continue|5
|
|
|
|
(if
|
|
|
|
(get_local $2)
|
|
|
|
(block
|
|
|
|
(i32.store8
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(tee_local $2
|
|
|
|
(i32.sub
|
|
|
|
(get_local $2)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.load8_u
|
|
|
|
(i32.add
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(br $continue|5)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(func $~lib/arraybuffer/ArrayBuffer#slice (; 8 ;) (; has Stack IR ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
2018-03-23 01:47:01 +01:00
|
|
|
(local $3 i32)
|
|
|
|
(local $4 i32)
|
2018-10-11 08:49:08 +02:00
|
|
|
(set_local $4
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.load
|
|
|
|
(get_local $0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(if (result i32)
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $1)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(select
|
2018-10-11 08:49:08 +02:00
|
|
|
(tee_local $3
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.add
|
2018-10-11 08:49:08 +02:00
|
|
|
(get_local $4)
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.gt_s
|
2018-10-11 08:49:08 +02:00
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 0)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(select
|
2018-10-11 08:49:08 +02:00
|
|
|
(tee_local $3
|
2018-06-09 14:05:33 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(get_local $4)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.lt_s
|
|
|
|
(get_local $3)
|
2018-10-11 08:49:08 +02:00
|
|
|
(get_local $4)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-08-02 18:23:02 +02:00
|
|
|
(call $~lib/internal/memory/memmove
|
2018-10-11 08:49:08 +02:00
|
|
|
(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
|
2018-08-02 18:23:02 +02:00
|
|
|
(get_local $4)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.gt_s
|
2018-04-02 19:05:26 +02:00
|
|
|
(get_local $3)
|
2018-10-11 08:49:08 +02:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(select
|
|
|
|
(tee_local $3
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
(get_local $4)
|
|
|
|
(i32.lt_s
|
|
|
|
(get_local $3)
|
|
|
|
(get_local $4)
|
2018-04-02 19:05:26 +02:00
|
|
|
)
|
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
)
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.gt_s
|
|
|
|
(get_local $3)
|
2018-06-09 14:05:33 +02:00
|
|
|
(i32.const 0)
|
2018-04-02 19:05:26 +02:00
|
|
|
)
|
2018-03-23 12:45:29 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(i32.const 8)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-04-02 19:05:26 +02:00
|
|
|
(i32.add
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.const 8)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-04-02 19:05:26 +02:00
|
|
|
(get_local $1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(get_local $3)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(get_local $2)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-09-13 23:10:49 +02:00
|
|
|
(func $~lib/arraybuffer/ArrayBuffer#slice|trampoline (; 9 ;) (; has Stack IR ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
|
|
|
(local $2 i32)
|
2018-03-24 09:46:22 +01:00
|
|
|
(block $2of2
|
|
|
|
(block $1of2
|
|
|
|
(block $0of2
|
2018-07-18 23:49:32 +02:00
|
|
|
(block $outOfRange
|
|
|
|
(br_table $0of2 $1of2 $2of2 $outOfRange
|
2018-04-17 16:04:29 +02:00
|
|
|
(get_global $~argc)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
(set_local $1
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_local $2
|
2018-04-07 03:27:22 +02:00
|
|
|
(i32.const 1073741816)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#slice
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
|
|
|
(get_local $2)
|
|
|
|
)
|
|
|
|
)
|
2018-10-03 01:06:48 +02:00
|
|
|
(func $~lib/arraybuffer/ArrayBuffer#get:data (; 10 ;) (; has Stack IR ;) (type $ii) (param $0 i32) (result i32)
|
|
|
|
(i32.add
|
|
|
|
(get_local $0)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(func $start (; 11 ;) (; has Stack IR ;) (type $v)
|
2018-10-11 08:49:08 +02:00
|
|
|
(local $0 i32)
|
|
|
|
(local $1 i32)
|
2018-04-02 19:05:26 +02:00
|
|
|
(set_global $~lib/allocator/arena/startOffset
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 160)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
2018-04-02 19:05:26 +02:00
|
|
|
(set_global $~lib/allocator/arena/offset
|
|
|
|
(get_global $~lib/allocator/arena/startOffset)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
(set_global $std/arraybuffer/buffer
|
2018-09-13 23:10:49 +02:00
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#constructor)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(i32.load
|
|
|
|
(get_global $std/arraybuffer/buffer)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 120)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 5)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
(set_global $std/arraybuffer/sliced
|
2018-06-09 14:05:33 +02:00
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#slice|trampoline
|
|
|
|
(get_global $std/arraybuffer/buffer)
|
|
|
|
(i32.const 0)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(i32.load
|
|
|
|
(get_global $std/arraybuffer/sliced)
|
|
|
|
)
|
|
|
|
(i32.const 8)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 120)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 9)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-10-11 08:49:08 +02:00
|
|
|
(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)
|
|
|
|
)
|
|
|
|
)
|
2018-10-03 01:06:48 +02:00
|
|
|
(if
|
|
|
|
(i32.eq
|
2018-10-11 08:49:08 +02:00
|
|
|
(get_local $0)
|
|
|
|
(get_local $1)
|
2018-10-03 01:06:48 +02:00
|
|
|
)
|
|
|
|
(block
|
|
|
|
(call $~lib/env/abort
|
|
|
|
(i32.const 0)
|
|
|
|
(i32.const 120)
|
|
|
|
(i32.const 10)
|
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
(if
|
|
|
|
(i32.eq
|
|
|
|
(get_global $std/arraybuffer/sliced)
|
|
|
|
(get_global $std/arraybuffer/buffer)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 120)
|
2018-10-03 01:06:48 +02:00
|
|
|
(i32.const 11)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
(set_global $std/arraybuffer/sliced
|
2018-06-09 14:05:33 +02:00
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#slice|trampoline
|
|
|
|
(get_global $std/arraybuffer/buffer)
|
|
|
|
(i32.const 1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(i32.load
|
|
|
|
(get_global $std/arraybuffer/sliced)
|
|
|
|
)
|
|
|
|
(i32.const 7)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 120)
|
2018-10-03 01:06:48 +02:00
|
|
|
(i32.const 15)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
(set_global $std/arraybuffer/sliced
|
2018-06-09 14:05:33 +02:00
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#slice|trampoline
|
|
|
|
(get_global $std/arraybuffer/buffer)
|
|
|
|
(i32.const -1)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(i32.load
|
|
|
|
(get_global $std/arraybuffer/sliced)
|
|
|
|
)
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 120)
|
2018-10-03 01:06:48 +02:00
|
|
|
(i32.const 19)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $std/arraybuffer/sliced
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#slice
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_global $std/arraybuffer/buffer)
|
|
|
|
(i32.const 1)
|
|
|
|
(i32.const 3)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(i32.load
|
|
|
|
(get_global $std/arraybuffer/sliced)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 120)
|
2018-10-03 01:06:48 +02:00
|
|
|
(i32.const 23)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $std/arraybuffer/sliced
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#slice
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_global $std/arraybuffer/buffer)
|
|
|
|
(i32.const 1)
|
|
|
|
(i32.const -1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(i32.load
|
|
|
|
(get_global $std/arraybuffer/sliced)
|
|
|
|
)
|
|
|
|
(i32.const 6)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 120)
|
2018-10-03 01:06:48 +02:00
|
|
|
(i32.const 27)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $std/arraybuffer/sliced
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#slice
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_global $std/arraybuffer/buffer)
|
|
|
|
(i32.const -3)
|
|
|
|
(i32.const -1)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(i32.load
|
|
|
|
(get_global $std/arraybuffer/sliced)
|
|
|
|
)
|
|
|
|
(i32.const 2)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 120)
|
2018-10-03 01:06:48 +02:00
|
|
|
(i32.const 31)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(set_global $std/arraybuffer/sliced
|
2018-04-02 19:05:26 +02:00
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#slice
|
2018-03-23 01:47:01 +01:00
|
|
|
(get_global $std/arraybuffer/buffer)
|
|
|
|
(i32.const -4)
|
|
|
|
(i32.const 42)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.ne
|
|
|
|
(i32.load
|
|
|
|
(get_global $std/arraybuffer/sliced)
|
|
|
|
)
|
|
|
|
(i32.const 4)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 120)
|
2018-10-03 01:06:48 +02:00
|
|
|
(i32.const 35)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
2018-06-09 14:05:33 +02:00
|
|
|
(set_global $~argc
|
|
|
|
(i32.const 1)
|
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
(set_global $std/arraybuffer/sliced
|
2018-06-09 14:05:33 +02:00
|
|
|
(call $~lib/arraybuffer/ArrayBuffer#slice|trampoline
|
|
|
|
(get_global $std/arraybuffer/buffer)
|
|
|
|
(i32.const 42)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.load
|
|
|
|
(get_global $std/arraybuffer/sliced)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 120)
|
2018-10-03 01:06:48 +02:00
|
|
|
(i32.const 39)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
(if
|
|
|
|
(i32.eqz
|
|
|
|
(get_global $std/arraybuffer/sliced)
|
|
|
|
)
|
|
|
|
(block
|
2018-05-21 18:48:29 +02:00
|
|
|
(call $~lib/env/abort
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
2018-08-04 00:36:59 +02:00
|
|
|
(i32.const 120)
|
2018-10-03 01:06:48 +02:00
|
|
|
(i32.const 40)
|
2018-03-23 01:47:01 +01:00
|
|
|
(i32.const 0)
|
|
|
|
)
|
|
|
|
(unreachable)
|
|
|
|
)
|
|
|
|
)
|
|
|
|
)
|
2018-10-03 01:06:48 +02:00
|
|
|
(func $null (; 12 ;) (; has Stack IR ;) (type $v)
|
2018-09-17 01:48:35 +02:00
|
|
|
(nop)
|
|
|
|
)
|
2018-03-23 01:47:01 +01:00
|
|
|
)
|