blob: a7faeecb07a02829722c3531d579b404325c1ac4 [file] [log] [blame] [edit]
(module
(import "env" "memory" (memory $0 1))
(table 0 anyfunc)
(data (i32.const 12) "\10\00\00\00")
(data (i32.const 16) "\0c\00\00\00")
(export "main" (func $main))
(export "stackSave" (func $stackSave))
(export "stackAlloc" (func $stackAlloc))
(export "stackRestore" (func $stackRestore))
(func $main (result i32)
(local $0 i32)
(return
(i32.load
(i32.const 16)
)
)
)
(func $stackSave (result i32)
(i32.load offset=4
(i32.const 0)
)
)
(func $stackAlloc (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 (param $0 i32)
(i32.store offset=4
(i32.const 0)
(get_local $0)
)
)
)
;; METADATA: { "asmConsts": {},"staticBump": 20, "initializers": [] }