mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 23:12:19 +00:00
77 lines
1.6 KiB
Plaintext
77 lines
1.6 KiB
Plaintext
(module
|
|
(type $i (func (result i32)))
|
|
(type $iiiiv (func (param i32 i32 i32 i32)))
|
|
(type $iv (func (param i32)))
|
|
(type $v (func))
|
|
(memory $0 1)
|
|
(data (i32.const 8) "\10\00\00\00g\00e\00t\00t\00e\00r\00-\00s\00e\00t\00t\00e\00r\00.\00t\00s")
|
|
(table 1 anyfunc)
|
|
(elem (i32.const 0) $null)
|
|
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
|
(global $getter-setter/Foo._bar (mut i32) (i32.const 0))
|
|
(export "memory" (memory $0))
|
|
(export "table" (table $0))
|
|
(start $start)
|
|
(func $getter-setter/Foo.get:bar (; 1 ;) (; has Stack IR ;) (type $i) (result i32)
|
|
(get_global $getter-setter/Foo._bar)
|
|
)
|
|
(func $getter-setter/Foo.set:bar (; 2 ;) (; has Stack IR ;) (type $iv) (param $0 i32)
|
|
(set_global $getter-setter/Foo._bar
|
|
(get_local $0)
|
|
)
|
|
)
|
|
(func $start (; 3 ;) (; has Stack IR ;) (type $v)
|
|
(if
|
|
(call $getter-setter/Foo.get:bar)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 13)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $getter-setter/Foo.set:bar
|
|
(i32.const 1)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $getter-setter/Foo.get:bar)
|
|
(i32.const 1)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 15)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
(call $getter-setter/Foo.set:bar
|
|
(i32.const 2)
|
|
)
|
|
(if
|
|
(i32.ne
|
|
(call $getter-setter/Foo.get:bar)
|
|
(i32.const 2)
|
|
)
|
|
(block
|
|
(call $~lib/env/abort
|
|
(i32.const 0)
|
|
(i32.const 8)
|
|
(i32.const 16)
|
|
(i32.const 0)
|
|
)
|
|
(unreachable)
|
|
)
|
|
)
|
|
)
|
|
(func $null (; 4 ;) (; has Stack IR ;) (type $v)
|
|
(nop)
|
|
)
|
|
)
|