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

@ -1,12 +1,9 @@
(module
(type $i (func (result i32)))
(type $iii (func (param i32 i32) (result i32)))
(type $iiiiv (func (param i32 i32 i32 i32)))
(type $III (func (param i64 i64) (result i64)))
(type $FFF (func (param f64 f64) (result f64)))
(type $iiii (func (param i32 i32 i32) (result i32)))
(type $v (func))
(type $FUNCSIG$i (func (result i32)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
(data (i32.const 8) "\11\00\00\00f\00u\00n\00c\00t\00i\00o\00n\00-\00t\00y\00p\00e\00s\00.\00t\00s")
@ -23,63 +20,19 @@
get_local $1
i32.add
)
(func $function-types/makeAdder<i32> (; 2 ;) (type $i) (result i32)
i32.const 1
)
(func $function-types/makeAdder<i64>~anonymous|2 (; 3 ;) (type $III) (param $0 i64) (param $1 i64) (result i64)
(func $function-types/makeAdder<i64>~anonymous|2 (; 2 ;) (type $III) (param $0 i64) (param $1 i64) (result i64)
get_local $0
get_local $1
i64.add
)
(func $function-types/makeAdder<i64> (; 4 ;) (type $i) (result i32)
i32.const 2
)
(func $function-types/makeAdder<f64>~anonymous|3 (; 5 ;) (type $FFF) (param $0 f64) (param $1 f64) (result f64)
(func $function-types/makeAdder<f64>~anonymous|3 (; 3 ;) (type $FFF) (param $0 f64) (param $1 f64) (result f64)
get_local $0
get_local $1
f64.add
)
(func $function-types/makeAdder<f64> (; 6 ;) (type $i) (result i32)
i32.const 3
)
(func $function-types/doAddWithFn<i32> (; 7 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
i32.const 2
set_global $~argc
get_local $0
get_local $1
get_local $2
call_indirect (type $iii)
)
(func $function-types/doAdd<i32> (; 8 ;) (type $FUNCSIG$i) (result i32)
i32.const 2
set_global $~argc
i32.const 3
i32.const 4
call $function-types/makeAdder<i32>
call_indirect (type $iii)
)
(func $function-types/makeAndAdd<i32>|trampoline (; 9 ;) (type $FUNCSIG$i) (result i32)
(func $start (; 4 ;) (type $v)
(local $0 i32)
block $1of1
block $0of1
block $outOfRange
get_global $~argc
i32.const 2
i32.sub
br_table $0of1 $1of1 $outOfRange
end
unreachable
end
call $function-types/makeAdder<i32>
set_local $0
end
i32.const 1
i32.const 2
get_local $0
call $function-types/doAddWithFn<i32>
)
(func $start (; 10 ;) (type $v)
call $function-types/makeAdder<i32>
set_global $function-types/i32Adder
i32.const 2
set_global $~argc
@ -97,7 +50,7 @@
call $~lib/env/abort
unreachable
end
call $function-types/makeAdder<i64>
i32.const 2
set_global $function-types/i64Adder
i32.const 2
set_global $~argc
@ -119,7 +72,7 @@
set_global $~argc
f64.const 1.5
f64.const 2.5
call $function-types/makeAdder<f64>
i32.const 3
call_indirect (type $FFF)
f64.const 4
f64.ne
@ -132,9 +85,11 @@
unreachable
end
i32.const 2
set_global $~argc
i32.const 2
i32.const 3
get_global $function-types/i32Adder
call $function-types/doAddWithFn<i32>
call_indirect (type $iii)
i32.const 5
i32.ne
if
@ -145,7 +100,12 @@
call $~lib/env/abort
unreachable
end
call $function-types/doAdd<i32>
i32.const 2
set_global $~argc
i32.const 3
i32.const 4
i32.const 1
call_indirect (type $iii)
i32.const 7
i32.ne
if
@ -156,10 +116,12 @@
call $~lib/env/abort
unreachable
end
i32.const 2
set_global $~argc
i32.const 4
i32.const 5
i32.const 4
call $function-types/doAddWithFn<i32>
call_indirect (type $iii)
i32.const 9
i32.ne
if
@ -172,7 +134,25 @@
end
i32.const 2
set_global $~argc
call $function-types/makeAndAdd<i32>|trampoline
block $1of1
block $0of1
block $outOfRange
get_global $~argc
i32.const 2
i32.sub
br_table $0of1 $1of1 $outOfRange
end
unreachable
end
i32.const 1
set_local $0
end
i32.const 2
set_global $~argc
i32.const 1
i32.const 2
get_local $0
call_indirect (type $iii)
i32.const 3
i32.ne
if
@ -183,10 +163,12 @@
call $~lib/env/abort
unreachable
end
i32.const 2
set_global $~argc
i32.const 1
i32.const 2
call $function-types/makeAdder<i32>
call $function-types/doAddWithFn<i32>
i32.const 1
call_indirect (type $iii)
i32.const 3
i32.ne
if
@ -198,7 +180,7 @@
unreachable
end
)
(func $null (; 11 ;) (type $v)
(func $null (; 5 ;) (type $v)
nop
)
)