assemblyscript/tests/compiler/abi.optimized.wat

40 lines
1009 B
Plaintext

(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) "\06\00\00\00a\00b\00i\00.\00t\00s")
(table $0 1 funcref)
(elem (i32.const 0) $null)
(global $abi/condition (mut i32) (i32.const 0))
(global $abi/y (mut i32) (i32.const 0))
(export "memory" (memory $0))
(export "table" (table $0))
(export "exported" (func $abi/exported))
(export "exportedExported" (func $abi/exported))
(export "exportedInternal" (func $abi/exported))
(start $start)
(func $abi/exported (; 1 ;) (type $FUNCSIG$i) (result i32)
i32.const -128
)
(func $start (; 2 ;) (type $FUNCSIG$v)
i32.const 1
global.set $abi/condition
i32.const 0
global.set $abi/y
global.get $abi/y
if
i32.const 0
i32.const 8
i32.const 65
i32.const 2
call $~lib/env/abort
unreachable
end
)
(func $null (; 3 ;) (type $FUNCSIG$v)
nop
)
)