mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-21 02:31:41 +00:00
Add a 'call_indirect' builtin to emit arbitrary calls (might trap at runtime); Optimize 'for' loop compilation a bit
This commit is contained in:
21
tests/compiler/class-overloading.optimized.wat
Normal file
21
tests/compiler/class-overloading.optimized.wat
Normal file
@ -0,0 +1,21 @@
|
||||
(module
|
||||
(type $iv (func (param i32)))
|
||||
(type $v (func))
|
||||
(memory $0 1)
|
||||
(export "test" (func $class-overloading/test))
|
||||
(export "memory" (memory $0))
|
||||
(start $start)
|
||||
(func $class-overloading/Foo#baz (; 0 ;) (type $iv) (param $0 i32)
|
||||
(nop)
|
||||
)
|
||||
(func $class-overloading/test (; 1 ;) (type $iv) (param $0 i32)
|
||||
(call $class-overloading/Foo#baz
|
||||
(get_local $0)
|
||||
)
|
||||
)
|
||||
(func $start (; 2 ;) (type $v)
|
||||
(call $class-overloading/test
|
||||
(i32.const 0)
|
||||
)
|
||||
)
|
||||
)
|
Reference in New Issue
Block a user