Also lint stdlib

This commit is contained in:
dcodeIO
2018-02-25 23:21:32 +01:00
parent ae05006d21
commit 9ef8b162a9
30 changed files with 506 additions and 461 deletions

View File

@ -1994,9 +1994,9 @@
)
(set_local $2
(call "$(lib)/allocator/arena/allocate_memory"
(i32.mul
(i32.shl
(get_local $1)
(i32.const 4)
(i32.const 2)
)
)
)
@ -2010,11 +2010,11 @@
(i32.load
(get_local $0)
)
(i32.mul
(i32.shl
(i32.load offset=4
(get_local $0)
)
(i32.const 4)
(i32.const 2)
)
)
(call "$(lib)/allocator/arena/free_memory"
@ -2065,11 +2065,11 @@
(i32.load
(get_local $0)
)
(i32.mul
(i32.shl
(i32.load offset=8
(get_local $0)
)
(i32.const 4)
(i32.const 2)
)
)
(get_local $1)
@ -2102,9 +2102,9 @@
(i32.load
(get_local $0)
)
(i32.mul
(i32.shl
(get_local $1)
(i32.const 4)
(i32.const 2)
)
)
)
@ -2137,9 +2137,9 @@
)
)
)
(i32.mul
(i32.shl
(get_local $1)
(i32.const 4)
(i32.const 2)
)
)
)
@ -2181,7 +2181,7 @@
(call $abort
(i32.const 0)
(i32.const 32)
(i32.const 105)
(i32.const 128)
(i32.const 6)
)
(unreachable)
@ -2189,9 +2189,9 @@
)
(set_local $4
(call "$(lib)/allocator/arena/allocate_memory"
(i32.mul
(i32.shl
(get_local $3)
(i32.const 4)
(i32.const 2)
)
)
)
@ -2208,9 +2208,9 @@
(i32.load
(get_local $0)
)
(i32.mul
(i32.shl
(get_local $2)
(i32.const 4)
(i32.const 2)
)
)
(call "$(lib)/allocator/arena/free_memory"
@ -2239,9 +2239,9 @@
(i32.load
(get_local $0)
)
(i32.mul
(i32.shl
(get_local $2)
(i32.const 4)
(i32.const 2)
)
)
)
@ -2625,14 +2625,14 @@
)
(i32.const 4)
)
(i32.mul
(i32.shl
(i32.sub
(i32.load offset=4
(get_local $0)
)
(i32.const 1)
)
(i32.const 4)
(i32.const 2)
)
)
(call "$(lib)/memory/set_memory"
@ -2640,14 +2640,14 @@
(i32.load
(get_local $0)
)
(i32.mul
(i32.shl
(i32.sub
(i32.load offset=4
(get_local $0)
)
(i32.const 1)
)
(i32.const 4)
(i32.const 2)
)
)
(i32.const 0)
@ -2689,9 +2689,9 @@
(i32.load
(get_local $0)
)
(i32.mul
(i32.shl
(get_local $1)
(i32.const 4)
(i32.const 2)
)
)
)
@ -2701,9 +2701,9 @@
(i32.load
(get_local $0)
)
(i32.mul
(i32.shl
(get_local $1)
(i32.const 4)
(i32.const 2)
)
)
(i32.load
@ -2711,9 +2711,9 @@
(i32.load
(get_local $0)
)
(i32.mul
(i32.shl
(get_local $2)
(i32.const 4)
(i32.const 2)
)
)
)
@ -2723,9 +2723,9 @@
(i32.load
(get_local $0)
)
(i32.mul
(i32.shl
(get_local $2)
(i32.const 4)
(i32.const 2)
)
)
(get_local $3)
@ -2779,9 +2779,9 @@
(i32.load
(get_local $0)
)
(i32.mul
(i32.shl
(get_local $2)
(i32.const 4)
(i32.const 2)
)
)
)
@ -2856,16 +2856,16 @@
(i32.load
(get_local $0)
)
(i32.mul
(i32.shl
(get_local $1)
(i32.const 4)
(i32.const 2)
)
)
(i32.add
(i32.load
(get_local $0)
)
(i32.mul
(i32.shl
(i32.add
(get_local $1)
(tee_local $2
@ -2886,12 +2886,12 @@
)
)
)
(i32.const 4)
(i32.const 2)
)
)
(i32.mul
(i32.shl
(get_local $2)
(i32.const 4)
(i32.const 2)
)
)
(i32.store offset=8