blob: ef6b2695e4189df96e6346f05216cb08890ba294 [file] [edit]
(module
(import "env" "memory" (memory $0 1))
(table 0 anyfunc)
(export "stackSave" (func $stackSave))
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(export "main" (func $main))
(start $_start)
(func $main (; 0 ;) (param $0 i32) (param $1 i32) (result i32)
(return
(get_local $0)
)
)
(func $stackSave (; 1 ;) (result i32)
(i32.load offset=4
(i32.const 0)
)
)
(func $stackAlloc (; 2 ;) (param $0 i32) (result i32)
(local $1 i32)
(set_local $1
(i32.load offset=4
(i32.const 0)
)
)
(i32.store offset=4
(i32.const 0)
(i32.and
(i32.sub
(get_local $1)
(get_local $0)
)
(i32.const -16)
)
)
(get_local $1)
)
(func $stackRestore (; 3 ;) (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
)
)
(func $_start (; 4 ;)
(local $0 i32)
(local $1 i32)
(drop
(call $main
(get_local $0)
(get_local $1)
)
)
)
)
;; METADATA: { "asmConsts": {},"staticBump": 12, "initializers": [] }