rtti & refactoring

This commit is contained in:
dcode
2019-04-06 20:17:48 +02:00
parent a9e4813798
commit e1070cee86
266 changed files with 23295 additions and 33925 deletions

View File

@ -1,16 +1,13 @@
(module
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
(type $FUNCSIG$v (func))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(import "env" "abort" (func $~lib/builtins/abort (param i32 i32 i32 i32)))
(memory $0 1)
(data (i32.const 8) "\01\00\00\00\n\00\00\00d\00o\00.\00t\00s")
(table $0 1 funcref)
(elem (i32.const 0) $null)
(data (i32.const 8) "\10\00\00\00\n\00\00\00d\00o\00.\00t\00s")
(global $do/n (mut i32) (i32.const 10))
(global $do/m (mut i32) (i32.const 0))
(global $do/o (mut i32) (i32.const 0))
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $start:do (; 1 ;) (type $FUNCSIG$v)
(local $0 i32)
@ -32,7 +29,7 @@
i32.const 16
i32.const 7
i32.const 0
call $~lib/env/abort
call $~lib/builtins/abort
unreachable
end
global.get $do/m
@ -43,7 +40,7 @@
i32.const 16
i32.const 8
i32.const 0
call $~lib/env/abort
call $~lib/builtins/abort
unreachable
end
i32.const 10
@ -65,7 +62,7 @@
i32.const 16
i32.const 12
i32.const 0
call $~lib/env/abort
call $~lib/builtins/abort
unreachable
end
i32.const 10
@ -99,7 +96,7 @@
i32.const 16
i32.const 24
i32.const 2
call $~lib/env/abort
call $~lib/builtins/abort
unreachable
end
global.get $do/o
@ -110,7 +107,7 @@
i32.const 16
i32.const 25
i32.const 2
call $~lib/env/abort
call $~lib/builtins/abort
unreachable
end
global.get $do/n
@ -122,7 +119,7 @@
i32.const 16
i32.const 27
i32.const 0
call $~lib/env/abort
call $~lib/builtins/abort
unreachable
end
global.get $do/m
@ -133,7 +130,7 @@
i32.const 16
i32.const 28
i32.const 0
call $~lib/env/abort
call $~lib/builtins/abort
unreachable
end
global.get $do/o
@ -144,7 +141,7 @@
i32.const 16
i32.const 29
i32.const 0
call $~lib/env/abort
call $~lib/builtins/abort
unreachable
end
)