mirror of
https://github.com/fluencelabs/assemblyscript
synced 2025-06-14 23:41:30 +00:00
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:
@ -5,7 +5,6 @@
|
||||
(type $iiiv (func (param i32 i32 i32)))
|
||||
(type $v (func))
|
||||
(type $FUNCSIG$vii (func (param i32 i32)))
|
||||
(type $FUNCSIG$i (func (result i32)))
|
||||
(type $FUNCSIG$iii (func (param i32 i32) (result i32)))
|
||||
(import "env" "abort" (func $~lib/env/abort (param i32 i32 i32 i32)))
|
||||
(memory $0 1)
|
||||
@ -22,17 +21,7 @@
|
||||
(export "memory" (memory $0))
|
||||
(export "table" (table $0))
|
||||
(start $start)
|
||||
(func $~lib/internal/arraybuffer/computeSize (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
i32.const 1
|
||||
i32.const 32
|
||||
get_local $0
|
||||
i32.const 7
|
||||
i32.add
|
||||
i32.clz
|
||||
i32.sub
|
||||
i32.shl
|
||||
)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $~lib/allocator/arena/__memory_allocate (; 1 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
(local $2 i32)
|
||||
(local $3 i32)
|
||||
@ -94,7 +83,7 @@
|
||||
set_global $~lib/allocator/arena/offset
|
||||
get_local $1
|
||||
)
|
||||
(func $~lib/internal/arraybuffer/allocateUnsafe (; 3 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(func $~lib/internal/arraybuffer/allocateUnsafe (; 2 ;) (type $ii) (param $0 i32) (result i32)
|
||||
(local $1 i32)
|
||||
get_local $0
|
||||
i32.const 1073741816
|
||||
@ -107,15 +96,21 @@
|
||||
call $~lib/env/abort
|
||||
unreachable
|
||||
end
|
||||
i32.const 1
|
||||
i32.const 32
|
||||
get_local $0
|
||||
call $~lib/internal/arraybuffer/computeSize
|
||||
i32.const 7
|
||||
i32.add
|
||||
i32.clz
|
||||
i32.sub
|
||||
i32.shl
|
||||
call $~lib/allocator/arena/__memory_allocate
|
||||
tee_local $1
|
||||
get_local $0
|
||||
i32.store
|
||||
get_local $1
|
||||
)
|
||||
(func $~lib/internal/memory/memset (; 4 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
(func $~lib/internal/memory/memset (; 3 ;) (type $FUNCSIG$vii) (param $0 i32) (param $1 i32)
|
||||
(local $2 i32)
|
||||
get_local $1
|
||||
i32.eqz
|
||||
@ -334,18 +329,7 @@
|
||||
end
|
||||
end
|
||||
)
|
||||
(func $~lib/arraybuffer/ArrayBuffer#constructor (; 5 ;) (type $FUNCSIG$i) (result i32)
|
||||
(local $0 i32)
|
||||
i32.const 8
|
||||
call $~lib/internal/arraybuffer/allocateUnsafe
|
||||
tee_local $0
|
||||
i32.const 8
|
||||
i32.add
|
||||
i32.const 8
|
||||
call $~lib/internal/memory/memset
|
||||
get_local $0
|
||||
)
|
||||
(func $~lib/internal/memory/memcpy (; 6 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(func $~lib/internal/memory/memcpy (; 4 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
(local $5 i32)
|
||||
@ -1249,7 +1233,7 @@
|
||||
i32.store8
|
||||
end
|
||||
)
|
||||
(func $~lib/internal/memory/memmove (; 7 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(func $~lib/internal/memory/memmove (; 5 ;) (type $iiiv) (param $0 i32) (param $1 i32) (param $2 i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
get_local $0
|
||||
@ -1449,31 +1433,31 @@
|
||||
end
|
||||
end
|
||||
)
|
||||
(func $~lib/arraybuffer/ArrayBuffer#slice (; 8 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(func $~lib/arraybuffer/ArrayBuffer#slice (; 6 ;) (type $iiii) (param $0 i32) (param $1 i32) (param $2 i32) (result i32)
|
||||
(local $3 i32)
|
||||
(local $4 i32)
|
||||
get_local $0
|
||||
i32.load
|
||||
set_local $4
|
||||
set_local $3
|
||||
get_local $1
|
||||
i32.const 0
|
||||
i32.lt_s
|
||||
if (result i32)
|
||||
get_local $4
|
||||
get_local $3
|
||||
get_local $1
|
||||
i32.add
|
||||
tee_local $3
|
||||
tee_local $4
|
||||
i32.const 0
|
||||
get_local $3
|
||||
get_local $4
|
||||
i32.const 0
|
||||
i32.gt_s
|
||||
select
|
||||
else
|
||||
get_local $1
|
||||
tee_local $3
|
||||
get_local $4
|
||||
tee_local $4
|
||||
get_local $3
|
||||
get_local $1
|
||||
get_local $3
|
||||
get_local $4
|
||||
i32.lt_s
|
||||
select
|
||||
end
|
||||
@ -1482,48 +1466,49 @@
|
||||
i32.const 0
|
||||
i32.lt_s
|
||||
if (result i32)
|
||||
get_local $4
|
||||
get_local $3
|
||||
get_local $2
|
||||
i32.add
|
||||
tee_local $3
|
||||
tee_local $4
|
||||
i32.const 0
|
||||
get_local $3
|
||||
get_local $4
|
||||
i32.const 0
|
||||
i32.gt_s
|
||||
select
|
||||
else
|
||||
get_local $2
|
||||
tee_local $3
|
||||
get_local $4
|
||||
tee_local $4
|
||||
get_local $3
|
||||
get_local $2
|
||||
get_local $3
|
||||
get_local $4
|
||||
i32.lt_s
|
||||
select
|
||||
end
|
||||
tee_local $2
|
||||
get_local $1
|
||||
i32.sub
|
||||
tee_local $3
|
||||
tee_local $4
|
||||
i32.const 0
|
||||
get_local $3
|
||||
get_local $4
|
||||
i32.const 0
|
||||
i32.gt_s
|
||||
select
|
||||
tee_local $3
|
||||
call $~lib/internal/arraybuffer/allocateUnsafe
|
||||
tee_local $2
|
||||
call $~lib/internal/arraybuffer/allocateUnsafe
|
||||
tee_local $3
|
||||
i32.const 8
|
||||
i32.add
|
||||
tee_local $4
|
||||
get_local $0
|
||||
i32.const 8
|
||||
i32.add
|
||||
get_local $1
|
||||
i32.add
|
||||
get_local $3
|
||||
call $~lib/internal/memory/memmove
|
||||
get_local $2
|
||||
call $~lib/internal/memory/memmove
|
||||
get_local $3
|
||||
)
|
||||
(func $~lib/arraybuffer/ArrayBuffer#slice|trampoline (; 9 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(func $~lib/arraybuffer/ArrayBuffer#slice|trampoline (; 7 ;) (type $FUNCSIG$iii) (param $0 i32) (param $1 i32) (result i32)
|
||||
(local $2 i32)
|
||||
block $2of2
|
||||
block $1of2
|
||||
@ -1545,19 +1530,20 @@
|
||||
get_local $2
|
||||
call $~lib/arraybuffer/ArrayBuffer#slice
|
||||
)
|
||||
(func $~lib/arraybuffer/ArrayBuffer#get:data (; 10 ;) (type $ii) (param $0 i32) (result i32)
|
||||
get_local $0
|
||||
i32.const 8
|
||||
i32.add
|
||||
)
|
||||
(func $start (; 11 ;) (type $v)
|
||||
(func $start (; 8 ;) (type $v)
|
||||
(local $0 i32)
|
||||
(local $1 i32)
|
||||
i32.const 160
|
||||
set_global $~lib/allocator/arena/startOffset
|
||||
get_global $~lib/allocator/arena/startOffset
|
||||
set_global $~lib/allocator/arena/offset
|
||||
call $~lib/arraybuffer/ArrayBuffer#constructor
|
||||
i32.const 8
|
||||
call $~lib/internal/arraybuffer/allocateUnsafe
|
||||
tee_local $0
|
||||
i32.const 8
|
||||
i32.add
|
||||
i32.const 8
|
||||
call $~lib/internal/memory/memset
|
||||
get_local $0
|
||||
set_global $std/arraybuffer/buffer
|
||||
get_global $std/arraybuffer/buffer
|
||||
i32.load
|
||||
@ -1590,13 +1576,9 @@
|
||||
unreachable
|
||||
end
|
||||
get_global $std/arraybuffer/sliced
|
||||
call $~lib/arraybuffer/ArrayBuffer#get:data
|
||||
set_local $0
|
||||
get_global $std/arraybuffer/buffer
|
||||
call $~lib/arraybuffer/ArrayBuffer#get:data
|
||||
set_local $1
|
||||
get_local $0
|
||||
get_local $1
|
||||
i32.const 0
|
||||
i32.add
|
||||
i32.eq
|
||||
if
|
||||
i32.const 0
|
||||
@ -1748,7 +1730,7 @@
|
||||
unreachable
|
||||
end
|
||||
)
|
||||
(func $null (; 12 ;) (type $v)
|
||||
(func $null (; 9 ;) (type $v)
|
||||
nop
|
||||
)
|
||||
)
|
||||
|
Reference in New Issue
Block a user