Use Binaryen's function signature naming scheme (#522)

This commit is contained in:
Daniel Wirtz
2019-03-01 00:01:23 +01:00
committed by GitHub
parent 7184db6dde
commit 4e1bba3a24
198 changed files with 3930 additions and 3962 deletions

View File

@ -1,10 +1,9 @@
(module
(type $_ (func))
(type $ii (func (param i32) (result i32)))
(type $i_ (func (param i32)))
(type $iiii_ (func (param i32 i32 i32 i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(type $FUNCSIG$v (func))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
(data (i32.const 8) "\0b\00\00\00h\00e\00l\00l\00o\00 \00w\00o\00r\00l\00d")
@ -16,7 +15,7 @@
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $~lib/allocator/arena/__memory_allocate (; 1 ;) (type $ii) (param $0 i32) (result i32)
(func $~lib/allocator/arena/__memory_allocate (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(local $1 i32)
(local $2 i32)
(local $3 i32)
@ -150,7 +149,7 @@
call $~lib/internal/string/compareUnsafe
i32.eqz
)
(func $object-literal/bar (; 4 ;) (type $i_) (param $0 i32)
(func $object-literal/bar (; 4 ;) (type $FUNCSIG$vi) (param $0 i32)
local.get $0
i32.load
i32.const 1
@ -176,7 +175,7 @@
unreachable
end
)
(func $start:object-literal (; 5 ;) (type $_)
(func $start:object-literal (; 5 ;) (type $FUNCSIG$v)
(local $0 i32)
i32.const 80
global.set $~lib/allocator/arena/startOffset
@ -227,10 +226,10 @@
unreachable
end
)
(func $start (; 6 ;) (type $_)
(func $start (; 6 ;) (type $FUNCSIG$v)
call $start:object-literal
)
(func $null (; 7 ;) (type $_)
(func $null (; 7 ;) (type $FUNCSIG$v)
nop
)
)