assemblyscript/tests/compiler/std/array.optimized.wast

5165 lines
97 KiB
Plaintext
Raw Normal View History

2017-12-16 02:27:39 +01:00
(module
(type $ii (func (param i32) (result i32)))
(type $iiiiv (func (param i32 i32 i32 i32)))
2018-01-28 19:14:20 +01:00
(type $iiiv (func (param i32 i32 i32)))
(type $iiv (func (param i32 i32)))
(type $iii (func (param i32 i32) (result i32)))
2018-01-14 21:17:43 +01:00
(type $iiii (func (param i32 i32 i32) (result i32)))
(type $v (func))
(import "env" "abort" (func $abort (param i32 i32 i32 i32)))
(global "$(lib)/allocator/arena/HEAP_OFFSET" (mut i32) (i32.const 0))
(global $std/array/arr (mut i32) (i32.const 0))
(global $std/array/i (mut i32) (i32.const 0))
(global $HEAP_BASE i32 (i32.const 72))
2017-12-16 02:27:39 +01:00
(memory $0 1)
(data (i32.const 8) "\0c\00\00\00s\00t\00d\00/\00a\00r\00r\00a\00y\00.\00t\00s")
(data (i32.const 40) "\0e\00\00\00(\00l\00i\00b\00)\00/\00a\00r\00r\00a\00y\00.\00t\00s")
2017-12-16 02:27:39 +01:00
(export "memory" (memory $0))
(start $start)
(func "$(lib)/allocator/arena/allocate_memory" (; 1 ;) (type $ii) (param $0 i32) (result i32)
2018-01-28 19:14:20 +01:00
(local $1 i32)
(local $2 i32)
(local $3 i32)
;;@ (lib)/allocator/arena.ts:14:2
(if
;;@ (lib)/allocator/arena.ts:14:6
(i32.eqz
;;@ (lib)/allocator/arena.ts:14:7
2018-01-28 19:14:20 +01:00
(get_local $0)
)
;;@ (lib)/allocator/arena.ts:14:20
2018-01-28 19:14:20 +01:00
(return
(i32.const 0)
)
)
;;@ (lib)/allocator/arena.ts:18:2
(if
;;@ (lib)/allocator/arena.ts:18:6
2018-01-28 19:14:20 +01:00
(i32.and
(if (result i32)
(tee_local $0
(i32.gt_u
;;@ (lib)/allocator/arena.ts:16:2
(tee_local $2
;;@ (lib)/allocator/arena.ts:16:12
(i32.and
2018-01-28 19:14:20 +01:00
(i32.add
;;@ (lib)/allocator/arena.ts:16:13
(i32.add
;;@ (lib)/allocator/arena.ts:15:2
(tee_local $3
;;@ (lib)/allocator/arena.ts:15:12
(get_global "$(lib)/allocator/arena/HEAP_OFFSET")
)
;;@ (lib)/allocator/arena.ts:16:19
(get_local $0)
2018-01-28 19:14:20 +01:00
)
;;@ (lib)/allocator/arena.ts:16:26
(i32.const 7)
2018-01-28 19:14:20 +01:00
)
(i32.const -8)
2018-01-28 19:14:20 +01:00
)
)
;;@ (lib)/allocator/arena.ts:17:2
(tee_local $1
;;@ (lib)/allocator/arena.ts:17:14
(i32.shl
(current_memory)
;;@ (lib)/allocator/arena.ts:17:41
(i32.const 16)
)
2018-01-28 19:14:20 +01:00
)
)
)
;;@ (lib)/allocator/arena.ts:18:21
2018-01-28 19:14:20 +01:00
(i32.lt_s
(grow_memory
;;@ (lib)/allocator/arena.ts:19:4
2018-01-28 19:14:20 +01:00
(select
(tee_local $0
;;@ (lib)/allocator/arena.ts:20:6
2018-01-28 19:14:20 +01:00
(i32.shr_u
(i32.sub
;;@ (lib)/allocator/arena.ts:20:7
2018-01-28 19:14:20 +01:00
(i32.and
;;@ (lib)/allocator/arena.ts:20:8
2018-01-28 19:14:20 +01:00
(i32.add
;;@ (lib)/allocator/arena.ts:20:9
(get_local $2)
;;@ (lib)/allocator/arena.ts:20:15
2018-01-28 19:14:20 +01:00
(i32.const 65535)
)
(i32.const -65536)
)
;;@ (lib)/allocator/arena.ts:20:36
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/allocator/arena.ts:20:46
2018-01-28 19:14:20 +01:00
(i32.const 16)
)
)
(tee_local $1
;;@ (lib)/allocator/arena.ts:21:6
2018-01-28 19:14:20 +01:00
(i32.shr_u
(get_local $1)
;;@ (lib)/allocator/arena.ts:21:46
2018-01-28 19:14:20 +01:00
(i32.const 16)
)
)
(i32.gt_u
(get_local $0)
2018-01-28 19:14:20 +01:00
(get_local $1)
)
)
)
;;@ (lib)/allocator/arena.ts:23:6
2018-01-28 19:14:20 +01:00
(i32.const 0)
)
(get_local $0)
2018-01-28 19:14:20 +01:00
)
(i32.const 1)
)
;;@ (lib)/allocator/arena.ts:23:9
2018-01-28 19:14:20 +01:00
(unreachable)
)
;;@ (lib)/allocator/arena.ts:24:2
(set_global "$(lib)/allocator/arena/HEAP_OFFSET"
;;@ (lib)/allocator/arena.ts:24:16
(get_local $2)
)
;;@ (lib)/allocator/arena.ts:25:9
(get_local $3)
2018-01-28 19:14:20 +01:00
)
(func "$(lib)/array/Array#get:length" (; 2 ;) (type $ii) (param $0 i32) (result i32)
;;@ (lib)/array.ts:26:11
2018-01-28 19:14:20 +01:00
(i32.load offset=8
(get_local $0)
)
2018-01-28 19:14:20 +01:00
)
(func "$(lib)/memory/copy_memory" (; 3 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
2018-01-28 19:14:20 +01:00
(local $3 i32)
(local $4 i32)
(loop $continue|0
(if
;;@ (lib)/memory.ts:8:9
2018-01-28 19:14:20 +01:00
(if (result i32)
(get_local $2)
;;@ (lib)/memory.ts:8:14
2018-01-28 19:14:20 +01:00
(i32.rem_u
(get_local $1)
;;@ (lib)/memory.ts:8:20
2018-01-28 19:14:20 +01:00
(i32.const 4)
)
(get_local $2)
)
2018-01-28 19:14:20 +01:00
(block
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:9:14
(get_local $0)
)
2018-01-28 19:14:20 +01:00
(i32.const 1)
)
)
;;@ (lib)/memory.ts:9:4
2018-01-28 19:14:20 +01:00
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:9:31
2018-01-28 19:14:20 +01:00
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:9:22
2018-01-28 19:14:20 +01:00
(i32.load8_u
(get_local $3)
)
)
)
;;@ (lib)/memory.ts:10:4
2018-01-28 19:14:20 +01:00
(set_local $2
(i32.sub
(get_local $2)
(i32.const 1)
)
)
2018-01-28 19:14:20 +01:00
(br $continue|0)
)
)
)
;;@ (lib)/memory.ts:14:2
(if
2018-01-28 19:14:20 +01:00
(i32.eqz
;;@ (lib)/memory.ts:14:6
2018-01-28 19:14:20 +01:00
(i32.rem_u
(get_local $0)
;;@ (lib)/memory.ts:14:13
2018-01-28 19:14:20 +01:00
(i32.const 4)
)
)
;;@ (lib)/memory.ts:14:21
(block
(loop $continue|1
(if
;;@ (lib)/memory.ts:15:11
(i32.ge_u
(get_local $2)
;;@ (lib)/memory.ts:15:16
(i32.const 16)
)
(block
;;@ (lib)/memory.ts:16:6
(i32.store
;;@ (lib)/memory.ts:16:17
(get_local $0)
;;@ (lib)/memory.ts:16:28
(i32.load
;;@ (lib)/memory.ts:16:38
(get_local $1)
)
)
;;@ (lib)/memory.ts:17:6
(i32.store
;;@ (lib)/memory.ts:17:17
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:17:25
(i32.const 4)
)
;;@ (lib)/memory.ts:17:28
(i32.load
;;@ (lib)/memory.ts:17:38
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:17:45
(i32.const 4)
)
)
)
;;@ (lib)/memory.ts:18:6
(i32.store
;;@ (lib)/memory.ts:18:17
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:18:25
(i32.const 8)
)
;;@ (lib)/memory.ts:18:28
(i32.load
;;@ (lib)/memory.ts:18:38
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:18:45
(i32.const 8)
)
)
)
;;@ (lib)/memory.ts:19:6
(i32.store
;;@ (lib)/memory.ts:19:17
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:19:24
(i32.const 12)
)
;;@ (lib)/memory.ts:19:28
(i32.load
;;@ (lib)/memory.ts:19:38
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:19:44
(i32.const 12)
)
)
)
;;@ (lib)/memory.ts:20:6
(set_local $1
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:20:13
(i32.const 16)
)
)
;;@ (lib)/memory.ts:20:17
(set_local $0
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:20:25
(i32.const 16)
)
)
;;@ (lib)/memory.ts:20:29
(set_local $2
(i32.sub
(get_local $2)
;;@ (lib)/memory.ts:20:34
(i32.const 16)
)
)
(br $continue|1)
)
)
)
;;@ (lib)/memory.ts:22:4
(if
;;@ (lib)/memory.ts:22:8
(i32.and
(get_local $2)
;;@ (lib)/memory.ts:22:12
(i32.const 8)
)
;;@ (lib)/memory.ts:22:15
(block
;;@ (lib)/memory.ts:23:6
(i32.store
;;@ (lib)/memory.ts:23:17
(get_local $0)
;;@ (lib)/memory.ts:23:27
(i32.load
;;@ (lib)/memory.ts:23:37
(get_local $1)
)
)
;;@ (lib)/memory.ts:24:6
(i32.store
;;@ (lib)/memory.ts:24:17
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:24:24
(i32.const 4)
)
;;@ (lib)/memory.ts:24:27
(i32.load
;;@ (lib)/memory.ts:24:37
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:24:43
(i32.const 4)
)
)
)
;;@ (lib)/memory.ts:25:6
(set_local $0
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:25:14
(i32.const 8)
)
)
;;@ (lib)/memory.ts:25:17
(set_local $1
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:25:24
(i32.const 8)
)
)
)
)
;;@ (lib)/memory.ts:27:4
(if
;;@ (lib)/memory.ts:27:8
(i32.and
(get_local $2)
;;@ (lib)/memory.ts:27:12
(i32.const 4)
)
;;@ (lib)/memory.ts:27:15
(block
;;@ (lib)/memory.ts:28:6
(i32.store
;;@ (lib)/memory.ts:28:17
(get_local $0)
;;@ (lib)/memory.ts:28:23
(i32.load
;;@ (lib)/memory.ts:28:33
(get_local $1)
)
)
;;@ (lib)/memory.ts:29:6
(set_local $0
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:29:14
(i32.const 4)
)
)
;;@ (lib)/memory.ts:29:17
(set_local $1
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:29:24
(i32.const 4)
)
)
)
)
;;@ (lib)/memory.ts:31:4
(if
;;@ (lib)/memory.ts:31:8
(i32.and
(get_local $2)
;;@ (lib)/memory.ts:31:12
(i32.const 2)
)
;;@ (lib)/memory.ts:31:15
(block
;;@ (lib)/memory.ts:32:6
(i32.store16
;;@ (lib)/memory.ts:32:17
(get_local $0)
;;@ (lib)/memory.ts:32:23
(i32.load16_u
;;@ (lib)/memory.ts:32:33
(get_local $1)
)
)
;;@ (lib)/memory.ts:33:6
(set_local $0
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:33:14
(i32.const 2)
)
)
;;@ (lib)/memory.ts:33:17
(set_local $1
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:33:24
(i32.const 2)
)
)
)
)
;;@ (lib)/memory.ts:35:4
(if
;;@ (lib)/memory.ts:35:8
(i32.and
(get_local $2)
;;@ (lib)/memory.ts:35:12
(i32.const 1)
)
;;@ (lib)/memory.ts:36:16
(block
(set_local $3
(get_local $0)
)
;;@ (lib)/memory.ts:36:6
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:36:33
(block (result i32)
(set_local $3
(get_local $1)
)
;;@ (lib)/memory.ts:36:24
(i32.load8_u
(get_local $3)
)
)
)
)
)
;;@ (lib)/memory.ts:38:4
(return)
)
)
;;@ (lib)/memory.ts:43:2
(if
;;@ (lib)/memory.ts:43:6
(i32.ge_u
(get_local $2)
;;@ (lib)/memory.ts:43:11
(i32.const 32)
)
;;@ (lib)/memory.ts:44:4
(block $break|2
(block $case2|2
(block $case1|2
(block $case0|2
(block $tablify|0
(br_table $case0|2 $case1|2 $case2|2 $tablify|0
(i32.sub
;;@ (lib)/memory.ts:44:12
(i32.rem_u
(get_local $0)
;;@ (lib)/memory.ts:44:19
(i32.const 4)
)
(i32.const 1)
)
)
)
(br $break|2)
)
;;@ (lib)/memory.ts:47:8
(set_local $4
;;@ (lib)/memory.ts:47:12
(i32.load
;;@ (lib)/memory.ts:47:22
(get_local $1)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:48:18
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:48:8
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:48:35
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:48:26
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:49:18
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:49:8
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:49:35
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:49:26
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:50:18
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:50:8
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:50:35
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:50:26
(i32.load8_u
(get_local $3)
)
)
)
;;@ (lib)/memory.ts:51:8
(set_local $2
(i32.sub
(get_local $2)
;;@ (lib)/memory.ts:51:13
(i32.const 3)
)
)
(loop $continue|3
(if
;;@ (lib)/memory.ts:52:15
(i32.ge_u
(get_local $2)
;;@ (lib)/memory.ts:52:20
(i32.const 17)
)
(block
;;@ (lib)/memory.ts:54:10
(i32.store
;;@ (lib)/memory.ts:54:21
(get_local $0)
;;@ (lib)/memory.ts:54:27
(i32.or
(i32.shr_u
(get_local $4)
;;@ (lib)/memory.ts:54:32
(i32.const 24)
)
;;@ (lib)/memory.ts:54:37
(i32.shl
;;@ (lib)/memory.ts:53:10
(tee_local $3
;;@ (lib)/memory.ts:53:14
(i32.load
;;@ (lib)/memory.ts:53:24
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:53:30
(i32.const 1)
)
)
)
;;@ (lib)/memory.ts:54:42
(i32.const 8)
)
)
)
;;@ (lib)/memory.ts:56:10
(i32.store
;;@ (lib)/memory.ts:56:21
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:56:28
(i32.const 4)
)
;;@ (lib)/memory.ts:56:31
(i32.or
(i32.shr_u
(get_local $3)
;;@ (lib)/memory.ts:56:36
(i32.const 24)
)
;;@ (lib)/memory.ts:56:41
(i32.shl
;;@ (lib)/memory.ts:55:10
(tee_local $4
;;@ (lib)/memory.ts:55:14
(i32.load
;;@ (lib)/memory.ts:55:24
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:55:30
(i32.const 5)
)
)
)
;;@ (lib)/memory.ts:56:46
(i32.const 8)
)
)
)
;;@ (lib)/memory.ts:58:10
(i32.store
;;@ (lib)/memory.ts:58:21
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:58:28
(i32.const 8)
)
;;@ (lib)/memory.ts:58:31
(i32.or
(i32.shr_u
(get_local $4)
;;@ (lib)/memory.ts:58:36
(i32.const 24)
)
;;@ (lib)/memory.ts:58:41
(i32.shl
;;@ (lib)/memory.ts:57:10
(tee_local $3
;;@ (lib)/memory.ts:57:14
(i32.load
;;@ (lib)/memory.ts:57:24
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:57:30
(i32.const 9)
)
)
)
;;@ (lib)/memory.ts:58:46
(i32.const 8)
)
)
)
;;@ (lib)/memory.ts:60:10
(i32.store
;;@ (lib)/memory.ts:60:21
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:60:28
(i32.const 12)
)
;;@ (lib)/memory.ts:60:32
(i32.or
(i32.shr_u
(get_local $3)
;;@ (lib)/memory.ts:60:37
(i32.const 24)
)
;;@ (lib)/memory.ts:60:42
(i32.shl
;;@ (lib)/memory.ts:59:10
(tee_local $4
;;@ (lib)/memory.ts:59:14
(i32.load
;;@ (lib)/memory.ts:59:24
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:59:30
(i32.const 13)
)
)
)
;;@ (lib)/memory.ts:60:47
(i32.const 8)
)
)
)
;;@ (lib)/memory.ts:61:10
(set_local $1
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:61:17
(i32.const 16)
)
)
;;@ (lib)/memory.ts:61:21
(set_local $0
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:61:29
(i32.const 16)
)
)
;;@ (lib)/memory.ts:61:33
(set_local $2
(i32.sub
(get_local $2)
;;@ (lib)/memory.ts:61:38
(i32.const 16)
)
)
(br $continue|3)
)
)
)
;;@ (lib)/memory.ts:63:8
(br $break|2)
)
;;@ (lib)/memory.ts:65:8
(set_local $4
;;@ (lib)/memory.ts:65:12
(i32.load
;;@ (lib)/memory.ts:65:22
(get_local $1)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:66:18
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:66:8
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:66:35
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:66:26
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:67:18
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:67:8
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:67:35
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:67:26
(i32.load8_u
(get_local $3)
)
)
)
;;@ (lib)/memory.ts:68:8
(set_local $2
(i32.sub
(get_local $2)
;;@ (lib)/memory.ts:68:13
(i32.const 2)
)
)
(loop $continue|4
(if
;;@ (lib)/memory.ts:69:15
(i32.ge_u
(get_local $2)
;;@ (lib)/memory.ts:69:20
(i32.const 18)
)
(block
;;@ (lib)/memory.ts:71:10
(i32.store
;;@ (lib)/memory.ts:71:21
(get_local $0)
;;@ (lib)/memory.ts:71:27
(i32.or
(i32.shr_u
(get_local $4)
;;@ (lib)/memory.ts:71:32
(i32.const 16)
)
;;@ (lib)/memory.ts:71:37
(i32.shl
;;@ (lib)/memory.ts:70:10
(tee_local $3
;;@ (lib)/memory.ts:70:14
(i32.load
;;@ (lib)/memory.ts:70:24
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:70:30
(i32.const 2)
)
)
)
;;@ (lib)/memory.ts:71:42
(i32.const 16)
)
)
)
;;@ (lib)/memory.ts:73:10
(i32.store
;;@ (lib)/memory.ts:73:21
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:73:28
(i32.const 4)
)
;;@ (lib)/memory.ts:73:31
(i32.or
(i32.shr_u
(get_local $3)
;;@ (lib)/memory.ts:73:36
(i32.const 16)
)
;;@ (lib)/memory.ts:73:41
(i32.shl
;;@ (lib)/memory.ts:72:10
(tee_local $4
;;@ (lib)/memory.ts:72:14
(i32.load
;;@ (lib)/memory.ts:72:24
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:72:30
(i32.const 6)
)
)
)
;;@ (lib)/memory.ts:73:46
(i32.const 16)
)
)
)
;;@ (lib)/memory.ts:75:10
(i32.store
;;@ (lib)/memory.ts:75:21
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:75:28
(i32.const 8)
)
;;@ (lib)/memory.ts:75:31
(i32.or
(i32.shr_u
(get_local $4)
;;@ (lib)/memory.ts:75:36
(i32.const 16)
)
;;@ (lib)/memory.ts:75:41
(i32.shl
;;@ (lib)/memory.ts:74:10
(tee_local $3
;;@ (lib)/memory.ts:74:14
(i32.load
;;@ (lib)/memory.ts:74:24
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:74:30
(i32.const 10)
)
)
)
;;@ (lib)/memory.ts:75:46
(i32.const 16)
)
)
)
;;@ (lib)/memory.ts:77:10
(i32.store
;;@ (lib)/memory.ts:77:21
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:77:28
(i32.const 12)
)
;;@ (lib)/memory.ts:77:32
(i32.or
(i32.shr_u
(get_local $3)
;;@ (lib)/memory.ts:77:37
(i32.const 16)
)
;;@ (lib)/memory.ts:77:42
(i32.shl
;;@ (lib)/memory.ts:76:10
(tee_local $4
;;@ (lib)/memory.ts:76:14
(i32.load
;;@ (lib)/memory.ts:76:24
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:76:30
(i32.const 14)
)
)
)
;;@ (lib)/memory.ts:77:47
(i32.const 16)
)
)
)
;;@ (lib)/memory.ts:78:10
(set_local $1
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:78:17
(i32.const 16)
)
)
;;@ (lib)/memory.ts:78:21
(set_local $0
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:78:29
(i32.const 16)
)
)
;;@ (lib)/memory.ts:78:33
(set_local $2
(i32.sub
(get_local $2)
;;@ (lib)/memory.ts:78:38
(i32.const 16)
)
)
(br $continue|4)
)
)
)
;;@ (lib)/memory.ts:80:8
(br $break|2)
)
;;@ (lib)/memory.ts:82:8
(set_local $4
;;@ (lib)/memory.ts:82:12
(i32.load
;;@ (lib)/memory.ts:82:22
(get_local $1)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:83:18
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:83:8
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:83:35
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:83:26
(i32.load8_u
(get_local $3)
)
)
)
;;@ (lib)/memory.ts:84:8
(set_local $2
(i32.sub
(get_local $2)
;;@ (lib)/memory.ts:84:13
(i32.const 1)
)
)
(loop $continue|5
(if
;;@ (lib)/memory.ts:85:15
(i32.ge_u
(get_local $2)
;;@ (lib)/memory.ts:85:20
(i32.const 19)
)
(block
;;@ (lib)/memory.ts:87:10
(i32.store
;;@ (lib)/memory.ts:87:21
(get_local $0)
;;@ (lib)/memory.ts:87:27
(i32.or
(i32.shr_u
(get_local $4)
;;@ (lib)/memory.ts:87:32
(i32.const 8)
)
;;@ (lib)/memory.ts:87:36
(i32.shl
;;@ (lib)/memory.ts:86:10
(tee_local $3
;;@ (lib)/memory.ts:86:14
(i32.load
;;@ (lib)/memory.ts:86:24
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:86:30
(i32.const 3)
)
)
)
;;@ (lib)/memory.ts:87:41
(i32.const 24)
)
)
)
;;@ (lib)/memory.ts:89:10
(i32.store
;;@ (lib)/memory.ts:89:21
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:89:28
(i32.const 4)
)
;;@ (lib)/memory.ts:89:31
(i32.or
(i32.shr_u
(get_local $3)
;;@ (lib)/memory.ts:89:36
(i32.const 8)
)
;;@ (lib)/memory.ts:89:40
(i32.shl
;;@ (lib)/memory.ts:88:10
(tee_local $4
;;@ (lib)/memory.ts:88:14
(i32.load
;;@ (lib)/memory.ts:88:24
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:88:30
(i32.const 7)
)
)
)
;;@ (lib)/memory.ts:89:45
(i32.const 24)
)
)
)
;;@ (lib)/memory.ts:91:10
(i32.store
;;@ (lib)/memory.ts:91:21
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:91:28
(i32.const 8)
)
;;@ (lib)/memory.ts:91:31
(i32.or
(i32.shr_u
(get_local $4)
;;@ (lib)/memory.ts:91:36
(i32.const 8)
)
;;@ (lib)/memory.ts:91:40
(i32.shl
;;@ (lib)/memory.ts:90:10
(tee_local $3
;;@ (lib)/memory.ts:90:14
(i32.load
;;@ (lib)/memory.ts:90:24
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:90:30
(i32.const 11)
)
)
)
;;@ (lib)/memory.ts:91:45
(i32.const 24)
)
)
)
;;@ (lib)/memory.ts:93:10
(i32.store
;;@ (lib)/memory.ts:93:21
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:93:28
(i32.const 12)
)
;;@ (lib)/memory.ts:93:32
(i32.or
(i32.shr_u
(get_local $3)
;;@ (lib)/memory.ts:93:37
(i32.const 8)
)
;;@ (lib)/memory.ts:93:41
(i32.shl
;;@ (lib)/memory.ts:92:10
(tee_local $4
;;@ (lib)/memory.ts:92:14
(i32.load
;;@ (lib)/memory.ts:92:24
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:92:30
(i32.const 15)
)
)
)
;;@ (lib)/memory.ts:93:46
(i32.const 24)
)
)
)
;;@ (lib)/memory.ts:94:10
(set_local $1
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:94:17
(i32.const 16)
)
)
;;@ (lib)/memory.ts:94:21
(set_local $0
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:94:29
(i32.const 16)
)
)
;;@ (lib)/memory.ts:94:33
(set_local $2
(i32.sub
(get_local $2)
;;@ (lib)/memory.ts:94:38
(i32.const 16)
)
)
(br $continue|5)
)
)
)
)
)
;;@ (lib)/memory.ts:101:2
(if
;;@ (lib)/memory.ts:101:6
(i32.and
(get_local $2)
;;@ (lib)/memory.ts:101:10
(i32.const 16)
)
;;@ (lib)/memory.ts:101:14
(block
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:102:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:102:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:102:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:102:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:103:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:103:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:103:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:103:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:104:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:104:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:104:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:104:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:105:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:105:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:105:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:105:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:106:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:106:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:106:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:106:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:107:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:107:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:107:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:107:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:108:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:108:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:108:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:108:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:109:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:109:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:109:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:109:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:110:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:110:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:110:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:110:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:111:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:111:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:111:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:111:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:112:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:112:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:112:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:112:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:113:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:113:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:113:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:113:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:114:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:114:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:114:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:114:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:115:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:115:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:115:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:115:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:116:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:116:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:116:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:116:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:117:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:117:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:117:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:117:22
(i32.load8_u
(get_local $3)
)
)
)
)
)
;;@ (lib)/memory.ts:119:2
(if
;;@ (lib)/memory.ts:119:6
(i32.and
(get_local $2)
;;@ (lib)/memory.ts:119:10
(i32.const 8)
)
;;@ (lib)/memory.ts:119:13
(block
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:120:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:120:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:120:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:120:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:121:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:121:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:121:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:121:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:122:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:122:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:122:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:122:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:123:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:123:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:123:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:123:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:124:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:124:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:124:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:124:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:125:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:125:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:125:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:125:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:126:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:126:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:126:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:126:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:127:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:127:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:127:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:127:22
(i32.load8_u
(get_local $3)
)
)
)
)
)
;;@ (lib)/memory.ts:129:2
(if
;;@ (lib)/memory.ts:129:6
(i32.and
(get_local $2)
;;@ (lib)/memory.ts:129:10
(i32.const 4)
)
;;@ (lib)/memory.ts:129:13
(block
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:130:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:130:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:130:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:130:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:131:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:131:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:131:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:131:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:132:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:132:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:132:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:132:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:133:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:133:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:133:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:133:22
(i32.load8_u
(get_local $3)
)
)
)
)
)
;;@ (lib)/memory.ts:135:2
(if
;;@ (lib)/memory.ts:135:6
(i32.and
(get_local $2)
;;@ (lib)/memory.ts:135:10
(i32.const 2)
)
;;@ (lib)/memory.ts:135:13
(block
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:136:14
2018-01-14 21:17:43 +01:00
(get_local $0)
)
2018-01-14 21:17:43 +01:00
(i32.const 1)
)
)
;;@ (lib)/memory.ts:136:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:136:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:136:22
(i32.load8_u
(get_local $3)
)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:137:14
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:137:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:137:31
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:137:22
(i32.load8_u
(get_local $3)
)
)
)
)
)
;;@ (lib)/memory.ts:139:2
(if
;;@ (lib)/memory.ts:139:6
(i32.and
(get_local $2)
;;@ (lib)/memory.ts:139:10
(i32.const 1)
)
;;@ (lib)/memory.ts:140:14
(block
(set_local $3
(get_local $0)
)
;;@ (lib)/memory.ts:140:4
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:140:31
(block (result i32)
(set_local $3
(get_local $1)
)
;;@ (lib)/memory.ts:140:22
(i32.load8_u
(get_local $3)
)
)
)
)
)
)
(func "$(lib)/memory/move_memory" (; 4 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
(local $3 i32)
;;@ (lib)/memory.ts:148:2
(if
;;@ (lib)/memory.ts:148:6
(i32.eq
(get_local $0)
;;@ (lib)/memory.ts:148:14
(get_local $1)
)
;;@ (lib)/memory.ts:149:4
(return)
)
;;@ (lib)/memory.ts:150:2
(if
;;@ (lib)/memory.ts:150:6
(i32.and
(if (result i32)
(tee_local $3
(i32.le_u
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:150:12
(get_local $2)
2018-01-14 21:17:43 +01:00
)
;;@ (lib)/memory.ts:150:17
(get_local $0)
2018-01-14 21:17:43 +01:00
)
)
(get_local $3)
;;@ (lib)/memory.ts:150:25
(i32.le_u
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:150:32
(get_local $2)
)
;;@ (lib)/memory.ts:150:37
2018-01-14 21:17:43 +01:00
(get_local $1)
)
)
(i32.const 1)
)
;;@ (lib)/memory.ts:150:42
(block
;;@ (lib)/memory.ts:151:4
(call "$(lib)/memory/copy_memory"
;;@ (lib)/memory.ts:151:16
(get_local $0)
;;@ (lib)/memory.ts:151:22
(get_local $1)
;;@ (lib)/memory.ts:151:27
(get_local $2)
)
;;@ (lib)/memory.ts:152:4
(return)
)
)
;;@ (lib)/memory.ts:154:2
(if
;;@ (lib)/memory.ts:154:6
(i32.lt_u
(get_local $0)
;;@ (lib)/memory.ts:154:13
(get_local $1)
)
;;@ (lib)/memory.ts:154:18
2018-01-14 02:41:13 +01:00
(block
;;@ (lib)/memory.ts:155:4
2018-01-14 02:41:13 +01:00
(if
;;@ (lib)/memory.ts:155:8
(i32.eq
(i32.rem_u
(get_local $1)
;;@ (lib)/memory.ts:155:14
(i32.const 8)
2018-01-14 02:41:13 +01:00
)
;;@ (lib)/memory.ts:155:19
(i32.rem_u
2018-01-14 02:41:13 +01:00
(get_local $0)
;;@ (lib)/memory.ts:155:26
(i32.const 8)
)
)
;;@ (lib)/memory.ts:155:29
(block
(loop $continue|0
(if
;;@ (lib)/memory.ts:156:13
(i32.rem_u
(get_local $0)
;;@ (lib)/memory.ts:156:20
(i32.const 8)
)
(block
;;@ (lib)/memory.ts:157:8
(if
;;@ (lib)/memory.ts:157:12
(i32.eqz
;;@ (lib)/memory.ts:157:13
(get_local $2)
)
;;@ (lib)/memory.ts:158:10
(return)
)
;;@ (lib)/memory.ts:159:8
(set_local $2
(i32.sub
;;@ (lib)/memory.ts:159:10
(get_local $2)
(i32.const 1)
)
)
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:160:18
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:160:8
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:160:35
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:160:26
(i32.load8_u
(get_local $3)
)
)
)
(br $continue|0)
)
)
)
(loop $continue|1
(if
;;@ (lib)/memory.ts:162:13
(i32.ge_u
(get_local $2)
;;@ (lib)/memory.ts:162:18
(i32.const 8)
)
(block
;;@ (lib)/memory.ts:163:8
(i64.store
;;@ (lib)/memory.ts:163:19
(get_local $0)
;;@ (lib)/memory.ts:163:25
(i64.load
;;@ (lib)/memory.ts:163:35
(get_local $1)
)
)
;;@ (lib)/memory.ts:164:8
(set_local $2
(i32.sub
(get_local $2)
;;@ (lib)/memory.ts:164:13
(i32.const 8)
)
)
;;@ (lib)/memory.ts:165:8
(set_local $0
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:165:16
(i32.const 8)
)
)
;;@ (lib)/memory.ts:166:8
(set_local $1
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:166:15
(i32.const 8)
)
)
(br $continue|1)
)
)
)
)
)
(loop $continue|2
(if
;;@ (lib)/memory.ts:169:11
(get_local $2)
(block
(set_local $0
(i32.add
(tee_local $3
;;@ (lib)/memory.ts:170:16
(get_local $0)
)
(i32.const 1)
)
2018-01-14 02:41:13 +01:00
)
;;@ (lib)/memory.ts:170:6
(i32.store8
(get_local $3)
;;@ (lib)/memory.ts:170:33
(block (result i32)
(set_local $1
(i32.add
(tee_local $3
(get_local $1)
)
(i32.const 1)
)
)
;;@ (lib)/memory.ts:170:24
(i32.load8_u
(get_local $3)
)
)
)
;;@ (lib)/memory.ts:171:6
(set_local $2
(i32.sub
;;@ (lib)/memory.ts:171:8
(get_local $2)
(i32.const 1)
)
)
(br $continue|2)
)
)
)
2018-01-14 02:41:13 +01:00
)
;;@ (lib)/memory.ts:173:9
(block
;;@ (lib)/memory.ts:174:4
(if
;;@ (lib)/memory.ts:174:8
(i32.eq
(i32.rem_u
(get_local $1)
;;@ (lib)/memory.ts:174:14
(i32.const 8)
)
;;@ (lib)/memory.ts:174:19
(i32.rem_u
(get_local $0)
;;@ (lib)/memory.ts:174:26
(i32.const 8)
)
)
;;@ (lib)/memory.ts:174:29
(block
(loop $continue|3
(if
;;@ (lib)/memory.ts:175:13
(i32.rem_u
(i32.add
;;@ (lib)/memory.ts:175:14
(get_local $0)
;;@ (lib)/memory.ts:175:21
(get_local $2)
)
;;@ (lib)/memory.ts:175:26
(i32.const 8)
)
(block
;;@ (lib)/memory.ts:176:8
(if
;;@ (lib)/memory.ts:176:12
(i32.eqz
;;@ (lib)/memory.ts:176:13
(get_local $2)
)
;;@ (lib)/memory.ts:177:10
(return)
)
;;@ (lib)/memory.ts:178:8
(i32.store8
;;@ (lib)/memory.ts:178:18
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:178:25
(tee_local $2
(i32.sub
;;@ (lib)/memory.ts:178:27
(get_local $2)
(i32.const 1)
)
)
)
;;@ (lib)/memory.ts:178:30
(i32.load8_u
;;@ (lib)/memory.ts:178:39
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:178:45
(get_local $2)
)
)
)
(br $continue|3)
)
)
)
(loop $continue|4
(if
;;@ (lib)/memory.ts:180:13
(i32.ge_u
(get_local $2)
;;@ (lib)/memory.ts:180:18
(i32.const 8)
)
(block
;;@ (lib)/memory.ts:182:8
(i64.store
;;@ (lib)/memory.ts:182:19
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:181:8
(tee_local $2
(i32.sub
(get_local $2)
;;@ (lib)/memory.ts:181:13
(i32.const 8)
)
)
)
;;@ (lib)/memory.ts:182:29
(i64.load
;;@ (lib)/memory.ts:182:39
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:182:45
(get_local $2)
)
)
)
(br $continue|4)
)
)
)
2018-01-14 02:41:13 +01:00
)
)
(loop $continue|5
(if
;;@ (lib)/memory.ts:185:11
(get_local $2)
(block
;;@ (lib)/memory.ts:186:6
(i32.store8
;;@ (lib)/memory.ts:186:16
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:186:23
(tee_local $2
(i32.sub
;;@ (lib)/memory.ts:186:25
(get_local $2)
(i32.const 1)
)
)
)
;;@ (lib)/memory.ts:186:28
(i32.load8_u
;;@ (lib)/memory.ts:186:37
(i32.add
(get_local $1)
;;@ (lib)/memory.ts:186:43
(get_local $2)
)
)
)
2018-01-28 19:14:20 +01:00
(br $continue|5)
)
)
)
)
)
)
(func "$(lib)/array/Array#__grow" (; 5 ;) (type $iiv) (param $0 i32) (param $1 i32)
2018-01-28 19:14:20 +01:00
(local $2 i32)
;;@ (lib)/array.ts:8:4
2018-01-28 19:14:20 +01:00
(if
;;@ (lib)/array.ts:8:11
2018-01-28 19:14:20 +01:00
(i32.le_s
(get_local $1)
;;@ (lib)/array.ts:8:25
2018-01-28 19:14:20 +01:00
(i32.load offset=4
(get_local $0)
)
)
(block
(call $abort
(i32.const 0)
(i32.const 40)
(i32.const 8)
(i32.const 4)
)
(unreachable)
)
2018-01-28 19:14:20 +01:00
)
;;@ (lib)/array.ts:9:4
2018-01-28 19:14:20 +01:00
(set_local $2
;;@ (lib)/array.ts:9:20
(call "$(lib)/allocator/arena/allocate_memory"
;;@ (lib)/array.ts:9:36
2018-01-28 19:14:20 +01:00
(i32.mul
(get_local $1)
;;@ (lib)/array.ts:9:57
2018-01-28 19:14:20 +01:00
(i32.const 4)
)
)
)
;;@ (lib)/array.ts:10:4
2018-01-28 19:14:20 +01:00
(if
;;@ (lib)/array.ts:10:8
2018-01-28 19:14:20 +01:00
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:10:23
2018-01-28 19:14:20 +01:00
(block
;;@ (lib)/array.ts:11:6
(call "$(lib)/memory/move_memory"
;;@ (lib)/array.ts:11:18
2018-01-28 19:14:20 +01:00
(get_local $2)
;;@ (lib)/array.ts:11:29
2018-01-28 19:14:20 +01:00
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:11:44
2018-01-28 19:14:20 +01:00
(i32.mul
(i32.load offset=4
(get_local $0)
)
;;@ (lib)/array.ts:11:62
2018-01-28 19:14:20 +01:00
(i32.const 4)
)
)
(drop
;;@ (lib)/array.ts:12:18
2018-01-28 19:14:20 +01:00
(i32.load
(get_local $0)
)
)
)
)
;;@ (lib)/array.ts:14:4
2018-01-28 19:14:20 +01:00
(i32.store
(get_local $0)
;;@ (lib)/array.ts:14:20
2018-01-28 19:14:20 +01:00
(get_local $2)
)
;;@ (lib)/array.ts:15:4
2018-01-28 19:14:20 +01:00
(i32.store offset=4
(get_local $0)
;;@ (lib)/array.ts:15:22
2018-01-28 19:14:20 +01:00
(get_local $1)
)
)
(func "$(lib)/array/Array#push" (; 6 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
2018-01-28 19:14:20 +01:00
(local $2 i32)
;;@ (lib)/array.ts:78:4
2018-01-28 19:14:20 +01:00
(if
;;@ (lib)/array.ts:78:8
2018-01-28 19:14:20 +01:00
(i32.eq
(i32.load offset=8
(get_local $0)
)
;;@ (lib)/array.ts:78:25
2018-01-28 19:14:20 +01:00
(i32.load offset=4
(get_local $0)
)
)
;;@ (lib)/array.ts:79:11
(call "$(lib)/array/Array#__grow"
;;@ (lib)/array.ts:79:6
2018-01-28 19:14:20 +01:00
(get_local $0)
;;@ (lib)/array.ts:79:18
2018-01-28 19:14:20 +01:00
(if (result i32)
(i32.load offset=4
(get_local $0)
)
;;@ (lib)/array.ts:79:36
2018-01-28 19:14:20 +01:00
(i32.shl
(i32.load offset=4
(get_local $0)
)
;;@ (lib)/array.ts:79:55
2018-01-28 19:14:20 +01:00
(i32.const 1)
)
;;@ (lib)/array.ts:79:59
2018-01-28 19:14:20 +01:00
(i32.const 1)
)
)
)
;;@ (lib)/array.ts:80:4
2018-01-28 19:14:20 +01:00
(i32.store
;;@ (lib)/array.ts:80:13
2018-01-28 19:14:20 +01:00
(i32.add
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:80:29
2018-01-28 19:14:20 +01:00
(i32.mul
(i32.load offset=8
(get_local $0)
)
;;@ (lib)/array.ts:80:45
2018-01-28 19:14:20 +01:00
(i32.const 4)
)
)
;;@ (lib)/array.ts:80:58
2018-01-28 19:14:20 +01:00
(get_local $1)
)
(i32.store offset=8
;;@ (lib)/array.ts:81:13
2018-01-28 19:14:20 +01:00
(get_local $0)
(tee_local $2
(i32.add
(i32.load offset=8
(get_local $0)
)
(i32.const 1)
)
)
)
(get_local $2)
)
(func "$(lib)/array/Array#__get" (; 7 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
;;@ (lib)/array.ts:39:4
2018-01-28 19:14:20 +01:00
(if
;;@ (lib)/array.ts:39:8
2018-01-28 19:14:20 +01:00
(i32.ge_u
(get_local $1)
;;@ (lib)/array.ts:39:22
2018-01-28 19:14:20 +01:00
(i32.load offset=4
(get_local $0)
)
)
;;@ (lib)/array.ts:40:6
2018-01-28 19:14:20 +01:00
(unreachable)
)
;;@ (lib)/array.ts:41:11
2018-01-28 19:14:20 +01:00
(i32.load
;;@ (lib)/array.ts:41:19
2018-01-28 19:14:20 +01:00
(i32.add
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:41:35
2018-01-28 19:14:20 +01:00
(i32.mul
(get_local $1)
;;@ (lib)/array.ts:41:50
2018-01-28 19:14:20 +01:00
(i32.const 4)
)
)
)
)
(func "$(lib)/array/Array#pop" (; 8 ;) (type $ii) (param $0 i32) (result i32)
2018-01-28 19:14:20 +01:00
(local $1 i32)
;;@ (lib)/array.ts:85:4
2018-01-28 19:14:20 +01:00
(if
;;@ (lib)/array.ts:85:8
2018-01-28 19:14:20 +01:00
(i32.lt_s
(i32.load offset=8
(get_local $0)
)
;;@ (lib)/array.ts:85:24
2018-01-28 19:14:20 +01:00
(i32.const 1)
)
;;@ (lib)/array.ts:86:6
2018-01-28 19:14:20 +01:00
(unreachable)
)
;;@ (lib)/array.ts:87:11
2018-01-28 19:14:20 +01:00
(i32.load
;;@ (lib)/array.ts:87:19
2018-01-28 19:14:20 +01:00
(i32.add
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:87:35
2018-01-28 19:14:20 +01:00
(block (result i32)
(i32.store offset=8
;;@ (lib)/array.ts:87:37
2018-01-28 19:14:20 +01:00
(get_local $0)
(tee_local $1
(i32.sub
(i32.load offset=8
(get_local $0)
)
(i32.const 1)
)
)
)
;;@ (lib)/array.ts:87:35
2018-01-28 19:14:20 +01:00
(i32.mul
(get_local $1)
;;@ (lib)/array.ts:87:53
2018-01-28 19:14:20 +01:00
(i32.const 4)
)
)
)
)
)
(func "$(lib)/array/Array#unshift" (; 9 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
2018-01-28 19:14:20 +01:00
(local $2 i32)
(local $3 i32)
(local $4 i32)
;;@ (lib)/array.ts:102:4
2018-01-28 19:14:20 +01:00
(if
;;@ (lib)/array.ts:102:8
2018-01-28 19:14:20 +01:00
(i32.eq
(i32.load offset=8
(get_local $0)
)
;;@ (lib)/array.ts:101:4
2018-01-28 19:14:20 +01:00
(tee_local $2
;;@ (lib)/array.ts:101:22
2018-01-28 19:14:20 +01:00
(i32.load offset=4
(get_local $0)
)
)
)
;;@ (lib)/array.ts:102:38
2018-01-28 19:14:20 +01:00
(block
;;@ (lib)/array.ts:105:6
2018-01-28 19:14:20 +01:00
(if
;;@ (lib)/array.ts:105:13
2018-01-28 19:14:20 +01:00
(i32.le_s
;;@ (lib)/array.ts:104:6
2018-01-28 19:14:20 +01:00
(tee_local $3
(select
;;@ (lib)/array.ts:104:43
2018-01-28 19:14:20 +01:00
(i32.shl
(get_local $2)
;;@ (lib)/array.ts:104:58
2018-01-28 19:14:20 +01:00
(i32.const 1)
)
;;@ (lib)/array.ts:104:62
2018-01-28 19:14:20 +01:00
(i32.const 1)
;;@ (lib)/array.ts:104:29
2018-01-28 19:14:20 +01:00
(get_local $2)
)
)
;;@ (lib)/array.ts:105:27
2018-01-28 19:14:20 +01:00
(i32.load offset=4
(get_local $0)
)
)
(block
(call $abort
(i32.const 0)
(i32.const 40)
(i32.const 105)
(i32.const 6)
)
(unreachable)
)
2018-01-28 19:14:20 +01:00
)
;;@ (lib)/array.ts:106:6
2018-01-28 19:14:20 +01:00
(set_local $4
;;@ (lib)/array.ts:106:22
(call "$(lib)/allocator/arena/allocate_memory"
;;@ (lib)/array.ts:106:38
2018-01-28 19:14:20 +01:00
(i32.mul
(get_local $3)
;;@ (lib)/array.ts:106:59
2018-01-28 19:14:20 +01:00
(i32.const 4)
)
)
)
;;@ (lib)/array.ts:107:6
2018-01-28 19:14:20 +01:00
(if
;;@ (lib)/array.ts:107:10
2018-01-28 19:14:20 +01:00
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:107:25
2018-01-28 19:14:20 +01:00
(block
;;@ (lib)/array.ts:108:8
(call "$(lib)/memory/move_memory"
;;@ (lib)/array.ts:108:20
2018-01-28 19:14:20 +01:00
(i32.add
(get_local $4)
;;@ (lib)/array.ts:108:32
2018-01-28 19:14:20 +01:00
(i32.const 4)
)
;;@ (lib)/array.ts:108:45
2018-01-28 19:14:20 +01:00
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:108:60
2018-01-28 19:14:20 +01:00
(i32.mul
(get_local $2)
;;@ (lib)/array.ts:108:74
2018-01-28 19:14:20 +01:00
(i32.const 4)
)
)
(drop
;;@ (lib)/array.ts:109:20
2018-01-28 19:14:20 +01:00
(i32.load
(get_local $0)
)
)
)
)
;;@ (lib)/array.ts:111:6
2018-01-28 19:14:20 +01:00
(i32.store
(get_local $0)
;;@ (lib)/array.ts:111:22
2018-01-28 19:14:20 +01:00
(get_local $4)
)
;;@ (lib)/array.ts:112:6
2018-01-28 19:14:20 +01:00
(i32.store offset=4
(get_local $0)
;;@ (lib)/array.ts:112:24
2018-01-28 19:14:20 +01:00
(get_local $3)
)
)
;;@ (lib)/array.ts:114:6
(call "$(lib)/memory/move_memory"
;;@ (lib)/array.ts:114:18
2018-01-28 19:14:20 +01:00
(i32.add
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:114:34
2018-01-28 19:14:20 +01:00
(i32.const 4)
)
;;@ (lib)/array.ts:114:47
2018-01-28 19:14:20 +01:00
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:114:62
2018-01-28 19:14:20 +01:00
(i32.mul
(get_local $2)
;;@ (lib)/array.ts:114:76
2018-01-28 19:14:20 +01:00
(i32.const 4)
)
)
)
;;@ (lib)/array.ts:115:4
2018-01-28 19:14:20 +01:00
(i32.store
;;@ (lib)/array.ts:115:13
2018-01-28 19:14:20 +01:00
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:115:28
2018-01-28 19:14:20 +01:00
(get_local $1)
)
(i32.store offset=8
;;@ (lib)/array.ts:116:13
2018-01-28 19:14:20 +01:00
(get_local $0)
(tee_local $0
(i32.add
(i32.load offset=8
(get_local $0)
)
(i32.const 1)
)
)
)
(get_local $0)
)
(func "$(lib)/memory/set_memory" (; 10 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
2018-01-28 19:14:20 +01:00
(local $3 i64)
(local $4 i32)
;;@ (lib)/memory.ts:196:2
(if
;;@ (lib)/memory.ts:196:6
2018-01-28 19:14:20 +01:00
(i32.eqz
;;@ (lib)/memory.ts:196:7
2018-01-28 19:14:20 +01:00
(get_local $2)
)
;;@ (lib)/memory.ts:197:4
2018-01-28 19:14:20 +01:00
(return)
)
;;@ (lib)/memory.ts:198:2
2018-01-28 19:14:20 +01:00
(i32.store8
;;@ (lib)/memory.ts:198:12
2018-01-28 19:14:20 +01:00
(get_local $0)
;;@ (lib)/memory.ts:198:18
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:199:2
2018-01-28 19:14:20 +01:00
(i32.store8
;;@ (lib)/memory.ts:199:12
2018-01-28 19:14:20 +01:00
(i32.sub
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:199:19
2018-01-28 19:14:20 +01:00
(get_local $2)
)
;;@ (lib)/memory.ts:199:23
2018-01-28 19:14:20 +01:00
(i32.const 1)
)
;;@ (lib)/memory.ts:199:26
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:200:2
2018-01-28 19:14:20 +01:00
(if
;;@ (lib)/memory.ts:200:6
2018-01-28 19:14:20 +01:00
(i32.le_u
(get_local $2)
;;@ (lib)/memory.ts:200:11
2018-01-28 19:14:20 +01:00
(i32.const 2)
)
;;@ (lib)/memory.ts:201:4
2018-01-28 19:14:20 +01:00
(return)
)
;;@ (lib)/memory.ts:203:2
2018-01-28 19:14:20 +01:00
(i32.store8
;;@ (lib)/memory.ts:203:12
2018-01-28 19:14:20 +01:00
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:203:19
2018-01-28 19:14:20 +01:00
(i32.const 1)
)
;;@ (lib)/memory.ts:203:22
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:204:2
2018-01-28 19:14:20 +01:00
(i32.store8
;;@ (lib)/memory.ts:204:12
2018-01-28 19:14:20 +01:00
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:204:19
2018-01-28 19:14:20 +01:00
(i32.const 2)
)
;;@ (lib)/memory.ts:204:22
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:205:2
2018-01-28 19:14:20 +01:00
(i32.store8
;;@ (lib)/memory.ts:205:12
2018-01-28 19:14:20 +01:00
(i32.sub
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:205:19
2018-01-28 19:14:20 +01:00
(get_local $2)
)
;;@ (lib)/memory.ts:205:23
2018-01-28 19:14:20 +01:00
(i32.const 2)
)
;;@ (lib)/memory.ts:205:26
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:206:2
2018-01-28 19:14:20 +01:00
(i32.store8
;;@ (lib)/memory.ts:206:12
2018-01-28 19:14:20 +01:00
(i32.sub
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:206:19
2018-01-28 19:14:20 +01:00
(get_local $2)
)
;;@ (lib)/memory.ts:206:23
2018-01-28 19:14:20 +01:00
(i32.const 3)
)
;;@ (lib)/memory.ts:206:26
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:207:2
(if
;;@ (lib)/memory.ts:207:6
2018-01-28 19:14:20 +01:00
(i32.le_u
(get_local $2)
;;@ (lib)/memory.ts:207:11
2018-01-28 19:14:20 +01:00
(i32.const 6)
)
;;@ (lib)/memory.ts:208:4
2018-01-28 19:14:20 +01:00
(return)
)
;;@ (lib)/memory.ts:209:2
2018-01-28 19:14:20 +01:00
(i32.store8
;;@ (lib)/memory.ts:209:12
2018-01-28 19:14:20 +01:00
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:209:19
2018-01-28 19:14:20 +01:00
(i32.const 3)
)
;;@ (lib)/memory.ts:209:22
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:210:2
2018-01-28 19:14:20 +01:00
(i32.store8
;;@ (lib)/memory.ts:210:12
2018-01-28 19:14:20 +01:00
(i32.sub
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:210:19
(get_local $2)
2018-01-28 19:14:20 +01:00
)
;;@ (lib)/memory.ts:210:23
2018-01-28 19:14:20 +01:00
(i32.const 4)
)
;;@ (lib)/memory.ts:210:26
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:211:2
2018-01-28 19:14:20 +01:00
(if
;;@ (lib)/memory.ts:211:6
2018-01-28 19:14:20 +01:00
(i32.le_u
(get_local $2)
;;@ (lib)/memory.ts:211:11
2018-01-28 19:14:20 +01:00
(i32.const 8)
)
;;@ (lib)/memory.ts:212:4
2018-01-28 19:14:20 +01:00
(return)
)
;;@ (lib)/memory.ts:223:2
2018-01-28 19:14:20 +01:00
(i32.store
;;@ (lib)/memory.ts:216:2
2018-01-28 19:14:20 +01:00
(tee_local $0
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:215:2
2018-01-28 19:14:20 +01:00
(tee_local $4
;;@ (lib)/memory.ts:215:17
2018-01-28 19:14:20 +01:00
(i32.and
(i32.sub
(i32.const 0)
;;@ (lib)/memory.ts:215:18
2018-01-28 19:14:20 +01:00
(get_local $0)
)
;;@ (lib)/memory.ts:215:25
2018-01-28 19:14:20 +01:00
(i32.const 3)
)
)
)
2018-01-28 19:14:20 +01:00
)
;;@ (lib)/memory.ts:220:2
2018-01-28 19:14:20 +01:00
(tee_local $1
;;@ (lib)/memory.ts:220:17
2018-01-28 19:14:20 +01:00
(i32.mul
;;@ (lib)/memory.ts:220:28
2018-01-28 19:14:20 +01:00
(get_local $1)
(i32.const 16843009)
)
)
)
;;@ (lib)/memory.ts:224:2
2018-01-28 19:14:20 +01:00
(i32.store
;;@ (lib)/memory.ts:224:13
2018-01-28 19:14:20 +01:00
(i32.sub
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:218:2
2018-01-28 19:14:20 +01:00
(tee_local $2
(i32.and
(i32.sub
;;@ (lib)/memory.ts:217:2
2018-01-28 19:14:20 +01:00
(get_local $2)
;;@ (lib)/memory.ts:217:7
2018-01-28 19:14:20 +01:00
(get_local $4)
)
(i32.const -4)
)
)
)
;;@ (lib)/memory.ts:224:24
2018-01-28 19:14:20 +01:00
(i32.const 4)
)
;;@ (lib)/memory.ts:224:27
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:225:2
2018-01-28 19:14:20 +01:00
(if
;;@ (lib)/memory.ts:225:6
2018-01-28 19:14:20 +01:00
(i32.le_u
(get_local $2)
;;@ (lib)/memory.ts:225:11
2018-01-28 19:14:20 +01:00
(i32.const 8)
)
;;@ (lib)/memory.ts:226:4
2018-01-28 19:14:20 +01:00
(return)
)
;;@ (lib)/memory.ts:227:2
(i32.store
;;@ (lib)/memory.ts:227:13
2018-01-28 19:14:20 +01:00
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:227:20
2018-01-28 19:14:20 +01:00
(i32.const 4)
)
;;@ (lib)/memory.ts:227:23
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:228:2
2018-01-28 19:14:20 +01:00
(i32.store
;;@ (lib)/memory.ts:228:13
2018-01-28 19:14:20 +01:00
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:228:20
2018-01-28 19:14:20 +01:00
(i32.const 8)
)
;;@ (lib)/memory.ts:228:23
(get_local $1)
)
;;@ (lib)/memory.ts:229:2
2018-01-28 19:14:20 +01:00
(i32.store
;;@ (lib)/memory.ts:229:13
2018-01-28 19:14:20 +01:00
(i32.sub
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:229:20
2018-01-28 19:14:20 +01:00
(get_local $2)
)
;;@ (lib)/memory.ts:229:24
2018-01-28 19:14:20 +01:00
(i32.const 12)
)
;;@ (lib)/memory.ts:229:28
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:230:2
2018-01-28 19:14:20 +01:00
(i32.store
;;@ (lib)/memory.ts:230:13
2018-01-28 19:14:20 +01:00
(i32.sub
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:230:20
2018-01-28 19:14:20 +01:00
(get_local $2)
)
;;@ (lib)/memory.ts:230:24
2018-01-28 19:14:20 +01:00
(i32.const 8)
)
;;@ (lib)/memory.ts:230:27
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:231:2
2018-01-28 19:14:20 +01:00
(if
;;@ (lib)/memory.ts:231:6
2018-01-28 19:14:20 +01:00
(i32.le_u
(get_local $2)
;;@ (lib)/memory.ts:231:11
2018-01-28 19:14:20 +01:00
(i32.const 24)
)
;;@ (lib)/memory.ts:232:4
2018-01-28 19:14:20 +01:00
(return)
)
;;@ (lib)/memory.ts:233:2
2018-01-28 19:14:20 +01:00
(i32.store
;;@ (lib)/memory.ts:233:13
2018-01-28 19:14:20 +01:00
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:233:20
2018-01-28 19:14:20 +01:00
(i32.const 12)
)
;;@ (lib)/memory.ts:233:24
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:234:2
2018-01-28 19:14:20 +01:00
(i32.store
;;@ (lib)/memory.ts:234:13
2018-01-28 19:14:20 +01:00
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:234:20
2018-01-28 19:14:20 +01:00
(i32.const 16)
)
;;@ (lib)/memory.ts:234:24
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:235:2
2018-01-28 19:14:20 +01:00
(i32.store
;;@ (lib)/memory.ts:235:13
2018-01-28 19:14:20 +01:00
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:235:20
2018-01-28 19:14:20 +01:00
(i32.const 20)
)
;;@ (lib)/memory.ts:235:24
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:236:2
(i32.store
;;@ (lib)/memory.ts:236:13
(i32.add
2018-01-28 19:14:20 +01:00
(get_local $0)
;;@ (lib)/memory.ts:236:20
2018-01-28 19:14:20 +01:00
(i32.const 24)
)
;;@ (lib)/memory.ts:236:24
(get_local $1)
)
;;@ (lib)/memory.ts:237:2
2018-01-28 19:14:20 +01:00
(i32.store
;;@ (lib)/memory.ts:237:13
2018-01-28 19:14:20 +01:00
(i32.sub
(i32.add
2018-01-28 19:14:20 +01:00
(get_local $0)
;;@ (lib)/memory.ts:237:20
2018-01-28 19:14:20 +01:00
(get_local $2)
)
;;@ (lib)/memory.ts:237:24
2018-01-28 19:14:20 +01:00
(i32.const 28)
)
;;@ (lib)/memory.ts:237:28
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:238:2
2018-01-28 19:14:20 +01:00
(i32.store
;;@ (lib)/memory.ts:238:13
2018-01-28 19:14:20 +01:00
(i32.sub
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:238:20
2018-01-28 19:14:20 +01:00
(get_local $2)
)
;;@ (lib)/memory.ts:238:24
2018-01-28 19:14:20 +01:00
(i32.const 24)
)
;;@ (lib)/memory.ts:238:28
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:239:2
2018-01-28 19:14:20 +01:00
(i32.store
;;@ (lib)/memory.ts:239:13
2018-01-28 19:14:20 +01:00
(i32.sub
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:239:20
2018-01-28 19:14:20 +01:00
(get_local $2)
)
;;@ (lib)/memory.ts:239:24
2018-01-28 19:14:20 +01:00
(i32.const 20)
)
;;@ (lib)/memory.ts:239:28
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:240:2
2018-01-28 19:14:20 +01:00
(i32.store
;;@ (lib)/memory.ts:240:13
2018-01-28 19:14:20 +01:00
(i32.sub
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:240:20
2018-01-28 19:14:20 +01:00
(get_local $2)
)
;;@ (lib)/memory.ts:240:24
2018-01-28 19:14:20 +01:00
(i32.const 16)
)
;;@ (lib)/memory.ts:240:28
2018-01-28 19:14:20 +01:00
(get_local $1)
)
;;@ (lib)/memory.ts:244:2
2018-01-28 19:14:20 +01:00
(set_local $0
(i32.add
2018-01-28 19:14:20 +01:00
(get_local $0)
;;@ (lib)/memory.ts:243:2
2018-01-28 19:14:20 +01:00
(tee_local $4
;;@ (lib)/memory.ts:243:6
2018-01-28 19:14:20 +01:00
(i32.add
;;@ (lib)/memory.ts:243:11
2018-01-28 19:14:20 +01:00
(i32.and
;;@ (lib)/memory.ts:243:12
2018-01-28 19:14:20 +01:00
(get_local $0)
;;@ (lib)/memory.ts:243:19
2018-01-28 19:14:20 +01:00
(i32.const 4)
)
;;@ (lib)/memory.ts:243:6
2018-01-28 19:14:20 +01:00
(i32.const 24)
)
2018-01-28 19:14:20 +01:00
)
)
)
;;@ (lib)/memory.ts:245:2
2018-01-28 19:14:20 +01:00
(set_local $2
(i32.sub
(get_local $2)
;;@ (lib)/memory.ts:245:7
2018-01-28 19:14:20 +01:00
(get_local $4)
)
)
;;@ (lib)/memory.ts:248:2
2018-01-28 19:14:20 +01:00
(set_local $3
;;@ (lib)/memory.ts:248:17
2018-01-28 19:14:20 +01:00
(i64.or
(i64.extend_u/i32
(get_local $1)
)
;;@ (lib)/memory.ts:248:28
2018-01-28 19:14:20 +01:00
(i64.shl
;;@ (lib)/memory.ts:248:29
2018-01-28 19:14:20 +01:00
(i64.extend_u/i32
(get_local $1)
)
;;@ (lib)/memory.ts:248:41
2018-01-28 19:14:20 +01:00
(i64.const 32)
)
)
)
2018-01-28 19:14:20 +01:00
(loop $continue|0
(if
;;@ (lib)/memory.ts:249:9
2018-01-28 19:14:20 +01:00
(i32.ge_u
(get_local $2)
;;@ (lib)/memory.ts:249:14
2018-01-28 19:14:20 +01:00
(i32.const 32)
)
2018-01-28 19:14:20 +01:00
(block
;;@ (lib)/memory.ts:250:4
2018-01-28 19:14:20 +01:00
(i64.store
;;@ (lib)/memory.ts:250:15
(get_local $0)
;;@ (lib)/memory.ts:250:21
2018-01-28 19:14:20 +01:00
(get_local $3)
)
;;@ (lib)/memory.ts:251:4
2018-01-28 19:14:20 +01:00
(i64.store
;;@ (lib)/memory.ts:251:15
2018-01-28 19:14:20 +01:00
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:251:22
2018-01-28 19:14:20 +01:00
(i32.const 8)
)
;;@ (lib)/memory.ts:251:25
2018-01-28 19:14:20 +01:00
(get_local $3)
)
;;@ (lib)/memory.ts:252:4
2018-01-28 19:14:20 +01:00
(i64.store
;;@ (lib)/memory.ts:252:15
2018-01-28 19:14:20 +01:00
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:252:22
2018-01-28 19:14:20 +01:00
(i32.const 16)
)
;;@ (lib)/memory.ts:252:26
2018-01-28 19:14:20 +01:00
(get_local $3)
)
;;@ (lib)/memory.ts:253:4
2018-01-28 19:14:20 +01:00
(i64.store
;;@ (lib)/memory.ts:253:15
2018-01-28 19:14:20 +01:00
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:253:22
2018-01-28 19:14:20 +01:00
(i32.const 24)
)
;;@ (lib)/memory.ts:253:26
2018-01-28 19:14:20 +01:00
(get_local $3)
)
;;@ (lib)/memory.ts:254:4
2018-01-28 19:14:20 +01:00
(set_local $2
(i32.sub
(get_local $2)
;;@ (lib)/memory.ts:254:9
2018-01-28 19:14:20 +01:00
(i32.const 32)
)
)
;;@ (lib)/memory.ts:255:4
2018-01-28 19:14:20 +01:00
(set_local $0
(i32.add
(get_local $0)
;;@ (lib)/memory.ts:255:12
2018-01-28 19:14:20 +01:00
(i32.const 32)
)
)
2018-01-28 19:14:20 +01:00
(br $continue|0)
)
)
)
)
(func "$(lib)/array/Array#shift" (; 11 ;) (type $ii) (param $0 i32) (result i32)
(local $1 i32)
;;@ (lib)/array.ts:91:4
(if
;;@ (lib)/array.ts:91:8
2018-01-14 21:17:43 +01:00
(i32.lt_s
(i32.load offset=8
(get_local $0)
)
;;@ (lib)/array.ts:91:24
(i32.const 1)
)
;;@ (lib)/array.ts:92:6
(unreachable)
)
;;@ (lib)/array.ts:93:4
(set_local $1
;;@ (lib)/array.ts:93:18
(i32.load
;;@ (lib)/array.ts:93:26
(i32.load
(get_local $0)
)
)
)
;;@ (lib)/array.ts:94:4
(call "$(lib)/memory/move_memory"
;;@ (lib)/array.ts:94:16
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:94:31
(i32.add
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:94:47
(i32.const 4)
)
;;@ (lib)/array.ts:94:60
(i32.mul
(i32.sub
;;@ (lib)/array.ts:94:61
(i32.load offset=4
(get_local $0)
)
;;@ (lib)/array.ts:94:79
(i32.const 1)
)
;;@ (lib)/array.ts:94:84
(i32.const 4)
)
)
;;@ (lib)/array.ts:95:4
(call "$(lib)/memory/set_memory"
;;@ (lib)/array.ts:95:15
(i32.add
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:95:31
(i32.mul
(i32.sub
;;@ (lib)/array.ts:95:32
(i32.load offset=4
(get_local $0)
)
;;@ (lib)/array.ts:95:50
(i32.const 1)
)
;;@ (lib)/array.ts:95:55
(i32.const 4)
)
)
;;@ (lib)/array.ts:95:68
(i32.const 0)
;;@ (lib)/array.ts:95:71
(i32.const 4)
)
;;@ (lib)/array.ts:96:4
(i32.store offset=8
;;@ (lib)/array.ts:96:6
(get_local $0)
(i32.sub
(i32.load offset=8
(get_local $0)
)
(i32.const 1)
)
)
;;@ (lib)/array.ts:97:11
(get_local $1)
)
(func "$(lib)/array/Array#reverse" (; 12 ;) (type $ii) (param $0 i32) (result i32)
2018-01-14 21:17:43 +01:00
(local $1 i32)
(local $2 i32)
(local $3 i32)
(set_local $2
;;@ (lib)/array.ts:157:45
2018-01-14 21:17:43 +01:00
(i32.sub
(i32.load offset=8
;;@ (lib)/array.ts:157:52
2018-01-14 21:17:43 +01:00
(get_local $0)
)
;;@ (lib)/array.ts:157:68
2018-01-14 21:17:43 +01:00
(i32.const 1)
)
)
(loop $continue|0
(if
;;@ (lib)/array.ts:157:71
2018-01-14 21:17:43 +01:00
(i32.lt_u
(get_local $1)
;;@ (lib)/array.ts:157:79
2018-01-14 21:17:43 +01:00
(get_local $2)
)
(block
;;@ (lib)/array.ts:158:6
2018-01-14 21:17:43 +01:00
(set_local $3
;;@ (lib)/array.ts:158:17
2018-01-14 21:17:43 +01:00
(i32.load
;;@ (lib)/array.ts:158:25
2018-01-14 21:17:43 +01:00
(i32.add
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:158:41
2018-01-14 21:17:43 +01:00
(i32.mul
(get_local $1)
;;@ (lib)/array.ts:158:49
2018-01-14 21:17:43 +01:00
(i32.const 4)
)
)
)
)
;;@ (lib)/array.ts:159:6
2018-01-14 21:17:43 +01:00
(i32.store
;;@ (lib)/array.ts:159:15
2018-01-14 21:17:43 +01:00
(i32.add
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:159:31
2018-01-14 21:17:43 +01:00
(i32.mul
(get_local $1)
;;@ (lib)/array.ts:159:39
2018-01-14 21:17:43 +01:00
(i32.const 4)
)
)
;;@ (lib)/array.ts:159:52
2018-01-14 21:17:43 +01:00
(i32.load
;;@ (lib)/array.ts:159:60
2018-01-14 21:17:43 +01:00
(i32.add
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:159:76
2018-01-14 21:17:43 +01:00
(i32.mul
(get_local $2)
;;@ (lib)/array.ts:159:83
2018-01-14 21:17:43 +01:00
(i32.const 4)
)
)
)
)
;;@ (lib)/array.ts:160:6
2018-01-14 21:17:43 +01:00
(i32.store
;;@ (lib)/array.ts:160:15
2018-01-14 21:17:43 +01:00
(i32.add
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:160:31
2018-01-14 21:17:43 +01:00
(i32.mul
(get_local $2)
;;@ (lib)/array.ts:160:38
2018-01-14 21:17:43 +01:00
(i32.const 4)
)
)
;;@ (lib)/array.ts:160:51
2018-01-14 21:17:43 +01:00
(get_local $3)
)
;;@ (lib)/array.ts:157:85
2018-01-14 21:17:43 +01:00
(set_local $1
(i32.add
;;@ (lib)/array.ts:157:87
2018-01-14 21:17:43 +01:00
(get_local $1)
(i32.const 1)
)
)
;;@ (lib)/array.ts:157:94
2018-01-14 21:17:43 +01:00
(set_local $2
(i32.sub
;;@ (lib)/array.ts:157:96
2018-01-14 21:17:43 +01:00
(get_local $2)
(i32.const 1)
)
)
(br $continue|0)
)
)
)
;;@ (lib)/array.ts:162:11
2018-01-14 21:17:43 +01:00
(get_local $0)
)
(func "$(lib)/array/Array#indexOf" (; 13 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
;;@ (lib)/array.ts:54:4
2018-01-14 21:17:43 +01:00
(if
;;@ (lib)/array.ts:54:8
2018-01-14 21:17:43 +01:00
(i32.lt_s
(get_local $2)
;;@ (lib)/array.ts:54:20
2018-01-14 21:17:43 +01:00
(i32.const 0)
)
;;@ (lib)/array.ts:55:6
2018-01-14 21:17:43 +01:00
(set_local $2
;;@ (lib)/array.ts:55:18
2018-01-14 21:17:43 +01:00
(i32.add
(i32.load offset=8
(get_local $0)
)
;;@ (lib)/array.ts:55:34
2018-01-14 21:17:43 +01:00
(get_local $2)
)
)
)
(loop $continue|0
(if
;;@ (lib)/array.ts:56:11
2018-01-14 21:17:43 +01:00
(i32.lt_u
(get_local $2)
;;@ (lib)/array.ts:56:28
2018-01-14 21:17:43 +01:00
(i32.load offset=8
(get_local $0)
)
)
(block
;;@ (lib)/array.ts:57:6
2018-01-14 21:17:43 +01:00
(if
;;@ (lib)/array.ts:57:10
2018-01-14 21:17:43 +01:00
(i32.eq
(i32.load
;;@ (lib)/array.ts:57:18
2018-01-14 21:17:43 +01:00
(i32.add
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:57:34
2018-01-14 21:17:43 +01:00
(i32.mul
(get_local $2)
;;@ (lib)/array.ts:57:46
2018-01-14 21:17:43 +01:00
(i32.const 4)
)
)
)
;;@ (lib)/array.ts:57:62
2018-01-14 21:17:43 +01:00
(get_local $1)
)
;;@ (lib)/array.ts:58:15
2018-01-14 21:17:43 +01:00
(return
(get_local $2)
)
)
;;@ (lib)/array.ts:59:6
2018-01-14 21:17:43 +01:00
(set_local $2
(i32.add
;;@ (lib)/array.ts:59:8
2018-01-14 21:17:43 +01:00
(get_local $2)
(i32.const 1)
)
)
(br $continue|0)
)
)
)
(i32.const -1)
)
(func "$(lib)/array/Array#splice" (; 14 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
;;@ (lib)/array.ts:141:4
2018-01-14 21:17:43 +01:00
(if
;;@ (lib)/array.ts:141:8
2018-01-14 21:17:43 +01:00
(i32.lt_s
(get_local $2)
;;@ (lib)/array.ts:141:22
2018-01-14 21:17:43 +01:00
(i32.const 1)
)
;;@ (lib)/array.ts:142:6
2018-01-14 21:17:43 +01:00
(return)
)
;;@ (lib)/array.ts:143:4
2018-01-14 21:17:43 +01:00
(if
;;@ (lib)/array.ts:143:8
2018-01-14 21:17:43 +01:00
(i32.lt_s
(get_local $1)
;;@ (lib)/array.ts:143:16
2018-01-14 21:17:43 +01:00
(i32.const 0)
)
;;@ (lib)/array.ts:145:6
2018-01-14 21:17:43 +01:00
(if
;;@ (lib)/array.ts:145:10
2018-01-14 21:17:43 +01:00
(i32.lt_s
;;@ (lib)/array.ts:144:6
2018-01-14 21:17:43 +01:00
(tee_local $1
;;@ (lib)/array.ts:144:14
2018-01-14 21:17:43 +01:00
(i32.add
(i32.load offset=8
(get_local $0)
)
;;@ (lib)/array.ts:144:30
2018-01-14 21:17:43 +01:00
(get_local $1)
)
)
;;@ (lib)/array.ts:145:18
2018-01-14 21:17:43 +01:00
(i32.const 0)
)
;;@ (lib)/array.ts:146:8
2018-01-14 21:17:43 +01:00
(set_local $1
;;@ (lib)/array.ts:146:16
2018-01-14 21:17:43 +01:00
(i32.const 0)
)
;;@ (lib)/array.ts:147:11
2018-01-14 21:17:43 +01:00
(if
;;@ (lib)/array.ts:147:15
2018-01-14 21:17:43 +01:00
(i32.ge_s
(get_local $1)
;;@ (lib)/array.ts:147:24
2018-01-14 21:17:43 +01:00
(i32.load offset=8
(get_local $0)
)
)
;;@ (lib)/array.ts:148:8
2018-01-14 21:17:43 +01:00
(return)
)
)
;;@ (lib)/array.ts:149:11
2018-01-14 21:17:43 +01:00
(if
;;@ (lib)/array.ts:149:15
2018-01-14 21:17:43 +01:00
(i32.ge_s
(get_local $1)
;;@ (lib)/array.ts:149:24
2018-01-14 21:17:43 +01:00
(i32.load offset=8
(get_local $0)
)
)
;;@ (lib)/array.ts:150:6
2018-01-14 21:17:43 +01:00
(return)
)
)
;;@ (lib)/array.ts:152:4
(call "$(lib)/memory/move_memory"
;;@ (lib)/array.ts:152:16
2018-01-14 21:17:43 +01:00
(i32.add
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:152:32
2018-01-14 21:17:43 +01:00
(i32.mul
(get_local $1)
;;@ (lib)/array.ts:152:47
2018-01-14 21:17:43 +01:00
(i32.const 4)
)
)
;;@ (lib)/array.ts:152:60
2018-01-14 21:17:43 +01:00
(i32.add
(i32.load
(get_local $0)
)
;;@ (lib)/array.ts:152:76
2018-01-14 21:17:43 +01:00
(i32.mul
(i32.add
;;@ (lib)/array.ts:152:84
2018-01-14 21:17:43 +01:00
(get_local $1)
;;@ (lib)/array.ts:151:4
2018-01-14 21:17:43 +01:00
(tee_local $2
;;@ (lib)/array.ts:151:18
2018-01-14 21:17:43 +01:00
(select
;;@ (lib)/array.ts:151:22
2018-01-14 21:17:43 +01:00
(get_local $2)
(tee_local $1
;;@ (lib)/array.ts:151:35
2018-01-14 21:17:43 +01:00
(i32.sub
(i32.load offset=8
(get_local $0)
)
;;@ (lib)/array.ts:151:51
2018-01-14 21:17:43 +01:00
(get_local $1)
)
)
(i32.lt_s
(get_local $2)
(get_local $1)
)
)
)
)
;;@ (lib)/array.ts:152:107
2018-01-14 21:17:43 +01:00
(i32.const 4)
)
)
;;@ (lib)/array.ts:152:120
2018-01-14 21:17:43 +01:00
(i32.mul
(get_local $2)
;;@ (lib)/array.ts:152:134
2018-01-14 21:17:43 +01:00
(i32.const 4)
)
)
;;@ (lib)/array.ts:153:4
2018-01-14 21:17:43 +01:00
(i32.store offset=8
(get_local $0)
(i32.sub
(i32.load offset=8
(get_local $0)
)
;;@ (lib)/array.ts:153:21
2018-01-14 21:17:43 +01:00
(get_local $2)
)
)
)
(func $start (; 15 ;) (type $v)
(set_global "$(lib)/allocator/arena/HEAP_OFFSET"
;;@ (lib)/allocator/arena.ts:11:25
(get_global $HEAP_BASE)
)
(set_global $std/array/arr
;;@ std/array.ts:3:10
(call "$(lib)/allocator/arena/allocate_memory"
;;@ std/array.ts:3:44
(i32.const 12)
)
)
;;@ std/array.ts:5:0
(if
;;@ std/array.ts:5:7
(call "$(lib)/array/Array#get:length"
(get_global $std/array/arr)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 5)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:6:0
(if
;;@ std/array.ts:6:7
(i32.load offset=4
(get_global $std/array/arr)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 6)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:8:4
(drop
(call "$(lib)/array/Array#push"
;;@ std/array.ts:8:0
(get_global $std/array/arr)
;;@ std/array.ts:8:9
(i32.const 42)
)
)
;;@ std/array.ts:10:0
(if
;;@ std/array.ts:10:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:10:11
(i32.const 0)
)
;;@ std/array.ts:10:17
(i32.const 42)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 10)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:11:0
(if
;;@ std/array.ts:11:7
(i32.ne
(call "$(lib)/array/Array#get:length"
(get_global $std/array/arr)
)
;;@ std/array.ts:11:21
(i32.const 1)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 11)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:12:0
(if
;;@ std/array.ts:12:7
(i32.ne
(i32.load offset=4
(get_global $std/array/arr)
)
;;@ std/array.ts:12:25
(i32.const 1)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 12)
(i32.const 0)
)
(unreachable)
)
)
(set_global $std/array/i
;;@ std/array.ts:14:12
(call "$(lib)/array/Array#pop"
;;@ std/array.ts:14:8
(get_global $std/array/arr)
)
)
;;@ std/array.ts:16:0
(if
;;@ std/array.ts:16:7
(i32.ne
(get_global $std/array/i)
;;@ std/array.ts:16:12
(i32.const 42)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 16)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:17:0
(if
;;@ std/array.ts:17:7
(call "$(lib)/array/Array#get:length"
(get_global $std/array/arr)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 17)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:18:0
(if
;;@ std/array.ts:18:7
(i32.ne
(i32.load offset=4
(get_global $std/array/arr)
)
;;@ std/array.ts:18:25
(i32.const 1)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 18)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:20:4
(drop
(call "$(lib)/array/Array#push"
;;@ std/array.ts:20:0
(get_global $std/array/arr)
;;@ std/array.ts:20:9
(i32.const 43)
)
)
;;@ std/array.ts:22:0
(if
;;@ std/array.ts:22:7
(i32.ne
(call "$(lib)/array/Array#get:length"
(get_global $std/array/arr)
)
;;@ std/array.ts:22:21
(i32.const 1)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 22)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:23:0
(if
;;@ std/array.ts:23:7
(i32.ne
(i32.load offset=4
(get_global $std/array/arr)
)
;;@ std/array.ts:23:25
(i32.const 1)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 23)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:24:0
(if
;;@ std/array.ts:24:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:24:11
(i32.const 0)
)
;;@ std/array.ts:24:17
(i32.const 43)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 24)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:26:4
(drop
(call "$(lib)/array/Array#push"
;;@ std/array.ts:26:0
(get_global $std/array/arr)
;;@ std/array.ts:26:9
(i32.const 44)
)
)
;;@ std/array.ts:28:0
(if
;;@ std/array.ts:28:7
(i32.ne
(call "$(lib)/array/Array#get:length"
(get_global $std/array/arr)
)
;;@ std/array.ts:28:21
(i32.const 2)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 28)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:29:0
(if
;;@ std/array.ts:29:7
(i32.ne
(i32.load offset=4
(get_global $std/array/arr)
)
;;@ std/array.ts:29:25
(i32.const 2)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 29)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:30:0
(if
;;@ std/array.ts:30:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:30:11
(i32.const 0)
)
;;@ std/array.ts:30:17
(i32.const 43)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 30)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:31:0
(if
;;@ std/array.ts:31:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:31:11
(i32.const 1)
)
;;@ std/array.ts:31:17
(i32.const 44)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 31)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:33:4
(drop
(call "$(lib)/array/Array#push"
;;@ std/array.ts:33:0
(get_global $std/array/arr)
;;@ std/array.ts:33:9
(i32.const 45)
)
)
;;@ std/array.ts:35:0
(if
;;@ std/array.ts:35:7
(i32.ne
(call "$(lib)/array/Array#get:length"
(get_global $std/array/arr)
)
;;@ std/array.ts:35:21
(i32.const 3)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 35)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:36:0
(if
;;@ std/array.ts:36:7
(i32.ne
(i32.load offset=4
(get_global $std/array/arr)
)
;;@ std/array.ts:36:25
(i32.const 4)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 36)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:37:0
(if
;;@ std/array.ts:37:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:37:11
(i32.const 0)
)
;;@ std/array.ts:37:17
(i32.const 43)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 37)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:38:0
(if
;;@ std/array.ts:38:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:38:11
(i32.const 1)
)
;;@ std/array.ts:38:17
(i32.const 44)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 38)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:39:0
(if
;;@ std/array.ts:39:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:39:11
(i32.const 2)
)
;;@ std/array.ts:39:17
(i32.const 45)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 39)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:41:4
(drop
(call "$(lib)/array/Array#unshift"
;;@ std/array.ts:41:0
(get_global $std/array/arr)
;;@ std/array.ts:41:12
(i32.const 42)
)
)
;;@ std/array.ts:43:0
(if
;;@ std/array.ts:43:7
(i32.ne
(call "$(lib)/array/Array#get:length"
(get_global $std/array/arr)
)
;;@ std/array.ts:43:21
(i32.const 4)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 43)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:44:0
(if
;;@ std/array.ts:44:7
(i32.ne
(i32.load offset=4
(get_global $std/array/arr)
)
;;@ std/array.ts:44:25
(i32.const 4)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 44)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:45:0
(if
;;@ std/array.ts:45:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:45:11
(i32.const 0)
)
;;@ std/array.ts:45:17
(i32.const 42)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 45)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:46:0
(if
;;@ std/array.ts:46:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:46:11
(i32.const 1)
)
;;@ std/array.ts:46:17
(i32.const 43)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 46)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:47:0
(if
;;@ std/array.ts:47:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:47:11
(i32.const 2)
)
;;@ std/array.ts:47:17
(i32.const 44)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 47)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:48:0
(if
;;@ std/array.ts:48:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:48:11
(i32.const 3)
)
;;@ std/array.ts:48:17
(i32.const 45)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 48)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:50:4
(drop
(call "$(lib)/array/Array#unshift"
;;@ std/array.ts:50:0
(get_global $std/array/arr)
;;@ std/array.ts:50:12
(i32.const 41)
)
)
;;@ std/array.ts:52:0
(if
;;@ std/array.ts:52:7
(i32.ne
(call "$(lib)/array/Array#get:length"
(get_global $std/array/arr)
)
;;@ std/array.ts:52:21
(i32.const 5)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 52)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:53:0
(if
;;@ std/array.ts:53:7
(i32.ne
(i32.load offset=4
(get_global $std/array/arr)
)
;;@ std/array.ts:53:25
(i32.const 8)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 53)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:54:0
(if
;;@ std/array.ts:54:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:54:11
(i32.const 0)
)
;;@ std/array.ts:54:17
(i32.const 41)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 54)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:55:0
(if
;;@ std/array.ts:55:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:55:11
(i32.const 1)
)
;;@ std/array.ts:55:17
(i32.const 42)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 55)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:56:0
(if
;;@ std/array.ts:56:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:56:11
(i32.const 2)
)
;;@ std/array.ts:56:17
(i32.const 43)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 56)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:57:0
(if
;;@ std/array.ts:57:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:57:11
(i32.const 3)
)
;;@ std/array.ts:57:17
(i32.const 44)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 57)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:58:0
(if
;;@ std/array.ts:58:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:58:11
(i32.const 4)
)
;;@ std/array.ts:58:17
(i32.const 45)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 58)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:60:0
(set_global $std/array/i
;;@ std/array.ts:60:8
(call "$(lib)/array/Array#shift"
;;@ std/array.ts:60:4
(get_global $std/array/arr)
)
)
;;@ std/array.ts:62:0
(if
;;@ std/array.ts:62:7
(i32.ne
(get_global $std/array/i)
;;@ std/array.ts:62:12
(i32.const 41)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 62)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:63:0
(if
;;@ std/array.ts:63:7
(i32.ne
(call "$(lib)/array/Array#get:length"
(get_global $std/array/arr)
)
;;@ std/array.ts:63:21
(i32.const 4)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 63)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:64:0
(if
;;@ std/array.ts:64:7
(i32.ne
(i32.load offset=4
(get_global $std/array/arr)
)
;;@ std/array.ts:64:25
(i32.const 8)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 64)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:65:0
(if
;;@ std/array.ts:65:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:65:11
(i32.const 0)
)
;;@ std/array.ts:65:17
(i32.const 42)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 65)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:66:0
(if
;;@ std/array.ts:66:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:66:11
(i32.const 1)
)
;;@ std/array.ts:66:17
(i32.const 43)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 66)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:67:0
(if
;;@ std/array.ts:67:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:67:11
(i32.const 2)
)
;;@ std/array.ts:67:17
(i32.const 44)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 67)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:68:0
(if
;;@ std/array.ts:68:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:68:11
(i32.const 3)
)
;;@ std/array.ts:68:17
(i32.const 45)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 68)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:70:0
(set_global $std/array/i
;;@ std/array.ts:70:8
(call "$(lib)/array/Array#pop"
;;@ std/array.ts:70:4
(get_global $std/array/arr)
)
)
;;@ std/array.ts:72:0
(if
;;@ std/array.ts:72:7
(i32.ne
(get_global $std/array/i)
;;@ std/array.ts:72:12
(i32.const 45)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 72)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:73:0
(if
;;@ std/array.ts:73:7
(i32.ne
(call "$(lib)/array/Array#get:length"
(get_global $std/array/arr)
)
;;@ std/array.ts:73:21
(i32.const 3)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 73)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:74:0
(if
;;@ std/array.ts:74:7
(i32.ne
(i32.load offset=4
(get_global $std/array/arr)
)
;;@ std/array.ts:74:25
(i32.const 8)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 74)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:75:0
(if
;;@ std/array.ts:75:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:75:11
(i32.const 0)
)
;;@ std/array.ts:75:17
(i32.const 42)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 75)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:76:0
(if
;;@ std/array.ts:76:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:76:11
(i32.const 1)
)
;;@ std/array.ts:76:17
(i32.const 43)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 76)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:77:0
(if
;;@ std/array.ts:77:7
(i32.ne
(call "$(lib)/array/Array#__get"
(get_global $std/array/arr)
;;@ std/array.ts:77:11
(i32.const 2)
)
;;@ std/array.ts:77:17
(i32.const 44)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 77)
(i32.const 0)
)
(unreachable)
)
)
;;@ std/array.ts:79:4
2018-01-14 21:17:43 +01:00
(drop
(call "$(lib)/array/Array#reverse"
;;@ std/array.ts:79:0
2018-01-14 21:17:43 +01:00
(get_global $std/array/arr)
)
)
;;@ std/array.ts:81:0
2018-01-14 21:17:43 +01:00
(if
;;@ std/array.ts:81:7
2018-01-14 21:17:43 +01:00
(i32.ne
(call "$(lib)/array/Array#get:length"
2018-01-14 21:17:43 +01:00
(get_global $std/array/arr)
)
;;@ std/array.ts:81:21
2018-01-14 21:17:43 +01:00
(i32.const 3)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 81)
(i32.const 0)
)
(unreachable)
)
2018-01-14 21:17:43 +01:00
)
;;@ std/array.ts:82:0
2018-01-14 21:17:43 +01:00
(if
;;@ std/array.ts:82:7
2018-01-14 21:17:43 +01:00
(i32.ne
(i32.load offset=4
(get_global $std/array/arr)
)
;;@ std/array.ts:82:25
2018-01-14 21:17:43 +01:00
(i32.const 8)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 82)
(i32.const 0)
)
(unreachable)
)
2018-01-14 21:17:43 +01:00
)
;;@ std/array.ts:83:0
2018-01-14 21:17:43 +01:00
(if
;;@ std/array.ts:83:7
2018-01-14 21:17:43 +01:00
(i32.ne
(call "$(lib)/array/Array#__get"
2018-01-14 21:17:43 +01:00
(get_global $std/array/arr)
;;@ std/array.ts:83:11
2018-01-14 21:17:43 +01:00
(i32.const 0)
)
;;@ std/array.ts:83:17
2018-01-14 21:17:43 +01:00
(i32.const 44)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 83)
(i32.const 0)
)
(unreachable)
)
2018-01-14 21:17:43 +01:00
)
;;@ std/array.ts:84:0
2018-01-14 21:17:43 +01:00
(if
;;@ std/array.ts:84:7
2018-01-14 21:17:43 +01:00
(i32.ne
(call "$(lib)/array/Array#__get"
2018-01-14 21:17:43 +01:00
(get_global $std/array/arr)
;;@ std/array.ts:84:11
2018-01-14 21:17:43 +01:00
(i32.const 1)
)
;;@ std/array.ts:84:17
2018-01-14 21:17:43 +01:00
(i32.const 43)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 84)
(i32.const 0)
)
(unreachable)
)
2018-01-14 21:17:43 +01:00
)
;;@ std/array.ts:85:0
2018-01-14 21:17:43 +01:00
(if
;;@ std/array.ts:85:7
2018-01-14 21:17:43 +01:00
(i32.ne
(call "$(lib)/array/Array#__get"
2018-01-14 21:17:43 +01:00
(get_global $std/array/arr)
;;@ std/array.ts:85:11
2018-01-14 21:17:43 +01:00
(i32.const 2)
)
;;@ std/array.ts:85:17
2018-01-14 21:17:43 +01:00
(i32.const 42)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 85)
(i32.const 0)
)
(unreachable)
)
2018-01-14 21:17:43 +01:00
)
;;@ std/array.ts:87:0
2018-01-14 21:17:43 +01:00
(set_global $std/array/i
;;@ std/array.ts:87:8
(call "$(lib)/array/Array#indexOf"
;;@ std/array.ts:87:4
2018-01-14 21:17:43 +01:00
(get_global $std/array/arr)
;;@ std/array.ts:87:16
2018-01-14 21:17:43 +01:00
(i32.const 44)
(i32.const 0)
)
)
;;@ std/array.ts:89:0
2018-01-14 21:17:43 +01:00
(if
;;@ std/array.ts:89:7
2018-01-14 21:17:43 +01:00
(get_global $std/array/i)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 89)
(i32.const 0)
)
(unreachable)
)
2018-01-14 21:17:43 +01:00
)
;;@ std/array.ts:91:0
2018-01-14 21:17:43 +01:00
(set_global $std/array/i
;;@ std/array.ts:91:8
(call "$(lib)/array/Array#indexOf"
;;@ std/array.ts:91:4
2018-01-14 21:17:43 +01:00
(get_global $std/array/arr)
;;@ std/array.ts:91:16
2018-01-14 21:17:43 +01:00
(i32.const 42)
(i32.const 0)
)
)
;;@ std/array.ts:93:0
2018-01-14 21:17:43 +01:00
(if
;;@ std/array.ts:93:7
2018-01-14 21:17:43 +01:00
(i32.ne
(get_global $std/array/i)
;;@ std/array.ts:93:12
2018-01-14 21:17:43 +01:00
(i32.const 2)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 93)
(i32.const 0)
)
(unreachable)
)
2018-01-14 21:17:43 +01:00
)
;;@ std/array.ts:95:0
2018-01-14 21:17:43 +01:00
(set_global $std/array/i
;;@ std/array.ts:95:8
(call "$(lib)/array/Array#indexOf"
;;@ std/array.ts:95:4
2018-01-14 21:17:43 +01:00
(get_global $std/array/arr)
;;@ std/array.ts:95:16
2018-01-14 21:17:43 +01:00
(i32.const 45)
;;@ (lib)/array.ts:53:45
2018-01-14 21:17:43 +01:00
(i32.const 0)
)
)
;;@ std/array.ts:97:0
2018-01-14 21:17:43 +01:00
(if
;;@ std/array.ts:97:7
2018-01-14 21:17:43 +01:00
(i32.ne
(get_global $std/array/i)
(i32.const -1)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 97)
(i32.const 0)
)
(unreachable)
)
2018-01-14 21:17:43 +01:00
)
;;@ std/array.ts:99:4
(call "$(lib)/array/Array#splice"
;;@ std/array.ts:99:0
2018-01-14 21:17:43 +01:00
(get_global $std/array/arr)
;;@ std/array.ts:99:11
2018-01-14 21:17:43 +01:00
(i32.const 1)
;;@ std/array.ts:99:14
2018-01-14 21:17:43 +01:00
(i32.const 1)
)
;;@ std/array.ts:101:0
2018-01-14 21:17:43 +01:00
(if
;;@ std/array.ts:101:7
2018-01-14 21:17:43 +01:00
(i32.ne
(call "$(lib)/array/Array#get:length"
2018-01-14 21:17:43 +01:00
(get_global $std/array/arr)
)
;;@ std/array.ts:101:21
2018-01-14 21:17:43 +01:00
(i32.const 2)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 101)
(i32.const 0)
)
(unreachable)
)
2018-01-14 21:17:43 +01:00
)
;;@ std/array.ts:102:0
2018-01-14 21:17:43 +01:00
(if
;;@ std/array.ts:102:7
2018-01-14 21:17:43 +01:00
(i32.ne
(i32.load offset=4
(get_global $std/array/arr)
)
;;@ std/array.ts:102:25
2018-01-14 21:17:43 +01:00
(i32.const 8)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 102)
(i32.const 0)
)
(unreachable)
)
2018-01-14 21:17:43 +01:00
)
;;@ std/array.ts:103:0
2018-01-14 21:17:43 +01:00
(if
;;@ std/array.ts:103:7
2018-01-14 21:17:43 +01:00
(i32.ne
(call "$(lib)/array/Array#__get"
2018-01-14 21:17:43 +01:00
(get_global $std/array/arr)
;;@ std/array.ts:103:11
2018-01-14 21:17:43 +01:00
(i32.const 0)
)
;;@ std/array.ts:103:17
2018-01-14 21:17:43 +01:00
(i32.const 44)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 103)
(i32.const 0)
)
(unreachable)
)
2018-01-14 21:17:43 +01:00
)
;;@ std/array.ts:104:0
2018-01-14 21:17:43 +01:00
(if
;;@ std/array.ts:104:7
2018-01-14 21:17:43 +01:00
(i32.ne
(call "$(lib)/array/Array#__get"
2018-01-14 21:17:43 +01:00
(get_global $std/array/arr)
;;@ std/array.ts:104:11
2018-01-14 21:17:43 +01:00
(i32.const 1)
)
;;@ std/array.ts:104:17
2018-01-14 21:17:43 +01:00
(i32.const 42)
)
(block
(call $abort
(i32.const 0)
(i32.const 8)
(i32.const 104)
(i32.const 0)
)
(unreachable)
)
2018-01-14 21:17:43 +01:00
)
)
2017-12-16 02:27:39 +01:00
)