2018-03-20 12:02:05 +01:00
|
|
|
(module
|
|
|
|
(type $i (func (result i32)))
|
2019-02-07 15:26:26 +01:00
|
|
|
(type $iiii_ (func (param i32 i32 i32 i32)))
|
|
|
|
(type $_ (func))
|
2018-11-08 08:04:24 +01:00
|
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
2018-10-11 08:49:08 +02:00
|
|
|
(memory $0 1)
|
|
|
|
(data (i32.const 8) "\0e\00\00\00s\00t\00a\00t\00i\00c\00-\00t\00h\00i\00s\00.\00t\00s\00")
|
2019-02-05 17:12:10 +01:00
|
|
|
(table $0 1 funcref)
|
2018-10-11 08:49:08 +02:00
|
|
|
(elem (i32.const 0) $null)
|
2018-03-20 12:02:05 +01:00
|
|
|
(global $static-this/Foo.bar (mut i32) (i32.const 42))
|
2019-02-21 00:11:22 +01:00
|
|
|
(global $~lib/memory/HEAP_BASE i32 (i32.const 40))
|
2018-03-20 12:02:05 +01:00
|
|
|
(export "memory" (memory $0))
|
2018-10-11 08:49:08 +02:00
|
|
|
(export "table" (table $0))
|
2018-03-20 12:02:05 +01:00
|
|
|
(start $start)
|
|
|
|
(func $static-this/Foo.getBar (; 1 ;) (type $i) (result i32)
|
2019-02-05 17:12:10 +01:00
|
|
|
global.get $static-this/Foo.bar
|
2018-03-20 12:02:05 +01:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $start:static-this (; 2 ;) (type $_)
|
2018-11-08 08:04:24 +01:00
|
|
|
call $static-this/Foo.getBar
|
|
|
|
i32.const 42
|
|
|
|
i32.eq
|
|
|
|
i32.eqz
|
|
|
|
if
|
|
|
|
i32.const 0
|
|
|
|
i32.const 8
|
|
|
|
i32.const 8
|
|
|
|
i32.const 0
|
|
|
|
call $~lib/env/abort
|
|
|
|
unreachable
|
|
|
|
end
|
2018-03-20 12:02:05 +01:00
|
|
|
)
|
2019-02-21 00:11:22 +01:00
|
|
|
(func $start (; 3 ;) (type $_)
|
|
|
|
call $start:static-this
|
|
|
|
)
|
|
|
|
(func $null (; 4 ;) (type $_)
|
2018-09-17 01:48:35 +02:00
|
|
|
)
|
2018-03-20 12:02:05 +01:00
|
|
|
)
|