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

@ -4,7 +4,6 @@
(type $iii (func (param i32 i32) (result i32)))
(type $iiiv (func (param i32 i32 i32)))
(type $v (func))
(type $FUNCSIG$v (func))
(type $FUNCSIG$iiii (func (param i32 i32 i32) (result i32)))
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
(memory $0 1)
@ -1523,10 +1522,7 @@
end
end
)
(func $~lib/allocator/arena/__memory_free (; 7 ;) (type $FUNCSIG$v)
nop
)
(func $~lib/string/String.fromUTF8 (; 8 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String.fromUTF8 (; 7 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
(local $3 i32)
(local $4 i32)
@ -1550,34 +1546,33 @@
i32.lt_u
if
get_local $2
tee_local $4
tee_local $3
i32.const 1
i32.add
set_local $2
get_local $0
get_local $4
get_local $3
i32.add
i32.load8_u
tee_local $4
tee_local $3
i32.const 128
i32.lt_u
if
if (result i32)
get_local $6
get_local $3
i32.add
get_local $4
i32.store16
i32.add
get_local $3
i32.store16
get_local $4
i32.const 2
i32.add
set_local $3
else
get_local $4
get_local $3
i32.const 191
i32.gt_u
tee_local $5
if
get_local $4
get_local $3
i32.const 224
i32.lt_u
set_local $5
@ -1603,9 +1598,9 @@
i32.add
set_local $2
get_local $6
get_local $3
i32.add
get_local $4
i32.add
get_local $3
i32.const 31
i32.and
i32.const 6
@ -1618,17 +1613,13 @@
i32.and
i32.or
i32.store16
get_local $3
i32.const 2
i32.add
set_local $3
else
get_local $4
get_local $3
i32.const 239
i32.gt_u
tee_local $5
if
get_local $4
get_local $3
i32.const 365
i32.lt_u
set_local $5
@ -1649,9 +1640,9 @@
unreachable
end
get_local $6
get_local $3
i32.add
get_local $4
i32.add
get_local $3
i32.const 7
i32.and
i32.const 18
@ -1666,7 +1657,6 @@
i32.const 12
i32.shl
i32.or
tee_local $4
get_local $0
get_local $2
i32.const 1
@ -1679,13 +1669,12 @@
i32.const 6
i32.shl
i32.or
tee_local $4
tee_local $3
get_local $0
get_local $2
i32.const 1
i32.add
tee_local $2
tee_local $5
i32.add
i32.load8_u
i32.const 63
@ -1693,19 +1682,19 @@
i32.or
i32.const 65536
i32.sub
tee_local $4
tee_local $3
i32.const 10
i32.shr_u
i32.const 55296
i32.add
i32.store16
get_local $6
get_local $3
get_local $4
i32.const 2
i32.add
tee_local $3
tee_local $4
i32.add
get_local $4
get_local $3
i32.const 1023
i32.and
i32.const 56320
@ -1726,9 +1715,9 @@
unreachable
end
get_local $6
get_local $3
i32.add
get_local $4
i32.add
get_local $3
i32.const 15
i32.and
i32.const 12
@ -1743,13 +1732,12 @@
i32.const 6
i32.shl
i32.or
tee_local $4
tee_local $3
get_local $0
get_local $2
i32.const 1
i32.add
tee_local $2
tee_local $5
i32.add
i32.load8_u
i32.const 63
@ -1757,16 +1745,16 @@
i32.or
i32.store16
end
get_local $3
i32.const 2
i32.add
set_local $3
get_local $2
i32.const 1
i32.add
set_local $2
end
get_local $4
i32.const 2
i32.add
end
set_local $4
br $continue|0
end
end
@ -1781,21 +1769,19 @@
call $~lib/env/abort
unreachable
end
get_local $3
get_local $4
i32.const 1
i32.shr_u
call $~lib/internal/string/allocateUnsafe
tee_local $0
i32.const 4
i32.add
tee_local $4
get_local $6
get_local $3
get_local $4
call $~lib/internal/memory/memmove
call $~lib/allocator/arena/__memory_free
get_local $0
)
(func $~lib/internal/string/compareUnsafe (; 9 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(func $~lib/internal/string/compareUnsafe (; 8 ;) (type $FUNCSIG$iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
(local $3 i32)
(local $4 i32)
get_local $0
@ -1832,7 +1818,7 @@
end
get_local $4
)
(func $~lib/string/String.__eq (; 10 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(func $~lib/string/String.__eq (; 9 ;) (type $iii) (param $0 i32) (param $1 i32) (result i32)
(local $2 i32)
get_local $0
get_local $1
@ -1871,7 +1857,7 @@
call $~lib/internal/string/compareUnsafe
i32.eqz
)
(func $start (; 11 ;) (type $v)
(func $start (; 10 ;) (type $v)
i32.const 192
set_global $~lib/allocator/arena/startOffset
get_global $~lib/allocator/arena/startOffset
@ -2115,9 +2101,8 @@
call $~lib/env/abort
unreachable
end
call $~lib/allocator/arena/__memory_free
)
(func $null (; 12 ;) (type $v)
(func $null (; 11 ;) (type $v)
nop
)
)