mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-21 10:41:42 +00:00
Builtins rewrite with type parameter inference; Small integer math optimizations; Switchify
This commit is contained in:
@ -65,14 +65,14 @@
|
||||
)
|
||||
(set_global $builtins/i
|
||||
(select
|
||||
(tee_local $2
|
||||
(i32.const -42)
|
||||
)
|
||||
(i32.sub
|
||||
(i32.const 0)
|
||||
(tee_local $2
|
||||
(i32.const -42)
|
||||
)
|
||||
(get_local $2)
|
||||
)
|
||||
(get_local $2)
|
||||
(i32.lt_s
|
||||
(i32.gt_s
|
||||
(get_local $2)
|
||||
(i32.const 0)
|
||||
)
|
||||
@ -144,14 +144,14 @@
|
||||
)
|
||||
(set_global $builtins/I
|
||||
(select
|
||||
(tee_local $4
|
||||
(i64.const -42)
|
||||
)
|
||||
(i64.sub
|
||||
(i64.const 0)
|
||||
(tee_local $4
|
||||
(i64.const -42)
|
||||
)
|
||||
(get_local $4)
|
||||
)
|
||||
(get_local $4)
|
||||
(i64.lt_s
|
||||
(i64.gt_s
|
||||
(get_local $4)
|
||||
(i64.const 0)
|
||||
)
|
||||
|
Reference in New Issue
Block a user