Do not emit debug info by default

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.
This commit is contained in:
dcodeIO
2018-11-09 12:28:10 +01:00
parent d93ca84aed
commit 4f95dce6e2
72 changed files with 6244 additions and 6197 deletions

View File

@ -12,14 +12,7 @@
(export "memory" (memory $0))
(export "table" (table $0))
(start $start)
(func $call-optional/opt (; 1 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
get_local $0
get_local $1
i32.add
get_local $2
i32.add
)
(func $call-optional/opt|trampoline (; 2 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $call-optional/opt|trampoline (; 1 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
block $2of2
block $1of2
block $0of2
@ -39,16 +32,37 @@
end
get_local $0
get_local $1
i32.add
get_local $2
call $call-optional/opt
i32.add
)
(func $start (; 3 ;) (type $v)
(func $start (; 2 ;) (type $v)
(local $0 i32)
(local $1 i32)
i32.const 1
set_global $~argc
block $2of2
block $1of2
block $0of2
block $outOfRange
get_global $~argc
i32.const 1
i32.sub
br_table $0of2 $1of2 $2of2 $outOfRange
end
unreachable
end
i32.const -1
set_local $0
end
i32.const -2
set_local $1
end
get_local $0
i32.const 3
i32.const 0
i32.const 0
call $call-optional/opt|trampoline
i32.add
get_local $1
i32.add
if
i32.const 0
i32.const 8
@ -59,10 +73,32 @@
end
i32.const 2
set_global $~argc
i32.const 3
i32.const 4
set_local $0
i32.const 0
call $call-optional/opt|trampoline
set_local $1
block $2of21
block $1of22
block $0of23
block $outOfRange4
get_global $~argc
i32.const 1
i32.sub
br_table $0of23 $1of22 $2of21 $outOfRange4
end
unreachable
end
i32.const -1
set_local $0
end
i32.const -2
set_local $1
end
get_local $0
i32.const 3
i32.add
get_local $1
i32.add
i32.const 5
i32.ne
if
@ -73,20 +109,6 @@
call $~lib/env/abort
unreachable
end
i32.const 3
i32.const 4
i32.const 5
call $call-optional/opt
i32.const 12
i32.ne
if
i32.const 0
i32.const 8
i32.const 6
i32.const 0
call $~lib/env/abort
unreachable
end
i32.const 1
set_global $~argc
i32.const 3
@ -137,7 +159,7 @@
unreachable
end
)
(func $null (; 4 ;) (type $v)
(func $null (; 3 ;) (type $v)
nop
)
)