mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-15 16:01:30 +00:00
Rename memory instructions; Rework constant handling
This commit is contained in:
18
tests/compiler/new-without-allocator.optimized.wat
Normal file
18
tests/compiler/new-without-allocator.optimized.wat
Normal file
@ -0,0 +1,18 @@
|
||||
(module
|
||||
(type $i (func (result i32)))
|
||||
(type $ii (func (param i32) (result i32)))
|
||||
(memory $0 0)
|
||||
(export "memory" (memory $0))
|
||||
(export "test" (func $new-without-allocator/test))
|
||||
(func $~lib/memory/memory.allocate (; 0 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(unreachable)
|
||||
)
|
||||
(func $new-without-allocator/test (; 1 ;) (type $i) (result i32)
|
||||
(drop
|
||||
(call $~lib/memory/memory.allocate
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
(i32.const 3)
|
||||
)
|
||||
)
|
Reference in New Issue
Block a user