directize more (eliminate table use)

This commit is contained in:
dcode
2019-04-02 16:18:44 +02:00
parent 6bf8276746
commit e1bd0050e2
45 changed files with 4202 additions and 5869 deletions

View File

@ -1,21 +1,17 @@
(module
(type $FUNCSIG$vi (func (param i32)))
(type $FUNCSIG$v (func))
(type $FUNCSIG$ii (func (param i32) (result i32)))
(memory $0 1)
(data (i32.const 8) "\01\00\00\00\10")
(data (i32.const 24) "c\00l\00a\00s\00s\00.\00t\00s")
(table $0 2 funcref)
(elem (i32.const 0) $start $~lib/string/String~traverse)
(table $0 1 funcref)
(elem (i32.const 0) $start)
(global $~lib/capabilities i32 (i32.const 2))
(export "memory" (memory $0))
(export "table" (table $0))
(export "test" (func $class/test))
(export ".capabilities" (global $~lib/capabilities))
(func $~lib/string/String~traverse (; 0 ;) (type $FUNCSIG$vi) (param $0 i32)
nop
)
(func $class/test (; 1 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
(func $class/test (; 0 ;) (type $FUNCSIG$ii) (param $0 i32) (result i32)
local.get $0
i32.load
drop
@ -36,7 +32,7 @@
i32.store8 offset=6
local.get $0
)
(func $start (; 2 ;) (type $FUNCSIG$v)
(func $start (; 1 ;) (type $FUNCSIG$v)
nop
)
)