assemblyscript/tests/compiler/static-this.untouched.wat

38 lines
990 B
Plaintext
Raw Normal View History

(module
(type $FUNCSIG$i (func (result i32)))
(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)))
(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")
(table $0 1 funcref)
(elem (i32.const 0) $null)
(global $static-this/Foo.bar (mut i32) (i32.const 42))
(global $~lib/memory/HEAP_BASE i32 (i32.const 40))
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $static-this/Foo.getBar (; 1 ;) (type $FUNCSIG$i) (result i32)
global.get $static-this/Foo.bar
)
(func $start:static-this (; 2 ;) (type $FUNCSIG$v)
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
)
(func $start (; 3 ;) (type $FUNCSIG$v)
call $start:static-this
)
(func $null (; 4 ;) (type $FUNCSIG$v)
)
)