Reintroduce builtin decorator so these can appear anywhere in stdlib again

Avoids wrapping an undocumented function within 'memory.size' for example.
This commit is contained in:
dcodeIO
2018-07-19 02:10:04 +02:00
parent 96411c7398
commit 26e46f6f86
80 changed files with 6889 additions and 7157 deletions

View File

@ -1555,7 +1555,7 @@
(f64.const 1.e+300)
)
)
(func $isNaN<f32> (; 2 ;) (type $fi) (param $0 f32) (result i32)
(func $~lib/builtins/isNaN<f32> (; 2 ;) (type $fi) (param $0 f32) (result i32)
(f32.ne
(get_local $0)
(get_local $0)
@ -1613,7 +1613,7 @@
)
)
(set_local $3
(call $isNaN<f32>
(call $~lib/builtins/isNaN<f32>
(get_local $1)
)
)
@ -3201,7 +3201,7 @@
(f32.const 1.0000000031710769e-30)
)
)
(func $isNaN<f64> (; 6 ;) (type $Fi) (param $0 f64) (result i32)
(func $~lib/builtins/isNaN<f64> (; 6 ;) (type $Fi) (param $0 f64) (result i32)
(f64.ne
(get_local $0)
(get_local $0)
@ -3267,7 +3267,7 @@
)
)
(set_local $7
(call $isNaN<f64>
(call $~lib/builtins/isNaN<f64>
(get_local $1)
)
)