Builtins rewrite with type parameter inference; Small integer math optimizations; Switchify

This commit is contained in:
dcodeIO
2018-01-10 13:09:05 +01:00
parent 0de05b543b
commit fc777b3a89
64 changed files with 4894 additions and 1620 deletions

View File

@ -100,19 +100,31 @@
)
(i32.store16 offset=4
(get_local $0)
(i32.add
(i32.const 1)
(i32.const 1)
(i32.shr_s
(i32.shl
(i32.add
(i32.const 1)
(i32.const 1)
)
(i32.const 16)
)
(i32.const 16)
)
)
(i32.store8 offset=6
(get_local $0)
(i32.add
(i32.add
(i32.const 1)
(i32.const 1)
(i32.shr_s
(i32.shl
(i32.add
(i32.add
(i32.const 1)
(i32.const 1)
)
(i32.const 1)
)
(i32.const 24)
)
(i32.const 1)
(i32.const 24)
)
)
(block
@ -184,8 +196,6 @@
FUNCTION_PROTOTYPE: unreachable
FUNCTION_PROTOTYPE: current_memory
FUNCTION_PROTOTYPE: grow_memory
FUNCTION_PROTOTYPE: parseInt
FUNCTION_PROTOTYPE: parseFloat
FUNCTION_PROTOTYPE: changetype
FUNCTION_PROTOTYPE: assert
FUNCTION_PROTOTYPE: i8