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

@@ -4,15 +4,13 @@
(type $FUNCSIG$viiii (func (param i32 i32 i32 i32)))
(type $FUNCSIG$i (func (result 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\1a\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s\00")
(data (i32.const 8) "\10\00\00\00\1a\00\00\00~\00l\00i\00b\00/\00a\00r\00r\00a\00y\00.\00t\00s\00")
(table $0 1 funcref)
(elem (i32.const 0) $null)
(global $~lib/argc (mut i32) (i32.const 0))
(global $~lib/memory/HEAP_BASE i32 (i32.const 44))
(export "memory" (memory $0))
(export "table" (table $0))
(export "testVar" (func $assert-nonnull/testVar))
(export "testObj" (func $assert-nonnull/testObj))
(export "testProp" (func $assert-nonnull/testProp))
@@ -76,7 +74,7 @@
i32.const 16
i32.const 96
i32.const 45
call $~lib/env/abort
call $~lib/builtins/abort
unreachable
end
local.get $1
@@ -90,7 +88,7 @@
i32.const 16
i32.const 99
i32.const 61
call $~lib/env/abort
call $~lib/builtins/abort
unreachable
end
local.get $0
@@ -130,7 +128,7 @@
i32.const 16
i32.const 99
i32.const 61
call $~lib/env/abort
call $~lib/builtins/abort
unreachable
end
local.get $0