mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-04-25 23:12:19 +00:00
This basically flips the --noDebug flag to become a --debug flag, so some optimizations, like inlining, aren't skipped by default, which might be unexpected.
27 lines
597 B
Plaintext
27 lines
597 B
Plaintext
(module
|
|
(type $iii (func (param i32 i32) (result i32)))
|
|
(type $v (func))
|
|
(memory $0 0)
|
|
(table $0 1 anyfunc)
|
|
(elem (i32.const 0) $null)
|
|
(global $main/code (mut i32) (i32.const 0))
|
|
(global $~started (mut i32) (i32.const 0))
|
|
(export "memory" (memory $0))
|
|
(export "table" (table $0))
|
|
(export "main" (func $main/main))
|
|
(func $main/main (; 0 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
|
|
get_global $~started
|
|
i32.eqz
|
|
if
|
|
i32.const 1
|
|
set_global $main/code
|
|
i32.const 1
|
|
set_global $~started
|
|
end
|
|
get_global $main/code
|
|
)
|
|
(func $null (; 1 ;) (type $v)
|
|
nop
|
|
)
|
|
)
|