Reduce inlining verbosity

With debug info and source maps in place there is not much value anymore in emitting explicitly named blocks.
This commit is contained in:
dcodeIO
2018-11-12 14:54:08 +01:00
parent 04a0cb8de7
commit d62d84521e
18 changed files with 2626 additions and 3055 deletions

View File

@ -1900,60 +1900,54 @@
get_local $0
get_local $1
i32.store
block $~lib/memory/memory.fill|inlined.0
get_local $0
get_global $~lib/internal/arraybuffer/HEADER_SIZE
i32.add
get_local $2
i32.add
set_local $3
i32.const 0
set_local $4
get_local $1
get_local $2
i32.sub
set_local $5
get_local $3
get_local $4
get_local $5
call $~lib/internal/memory/memset
end
get_local $0
get_global $~lib/internal/arraybuffer/HEADER_SIZE
i32.add
get_local $2
i32.add
set_local $3
i32.const 0
set_local $4
get_local $1
get_local $2
i32.sub
set_local $5
get_local $3
get_local $4
get_local $5
call $~lib/internal/memory/memset
else
get_local $1
call $~lib/internal/arraybuffer/allocateUnsafe
set_local $5
block $~lib/memory/memory.copy|inlined.0
get_local $5
get_global $~lib/internal/arraybuffer/HEADER_SIZE
i32.add
set_local $4
get_local $0
get_global $~lib/internal/arraybuffer/HEADER_SIZE
i32.add
set_local $3
get_local $4
get_local $3
get_local $2
call $~lib/internal/memory/memmove
end
block $~lib/memory/memory.fill|inlined.1
get_local $5
get_global $~lib/internal/arraybuffer/HEADER_SIZE
i32.add
get_local $2
i32.add
set_local $3
i32.const 0
set_local $4
get_local $1
get_local $2
i32.sub
set_local $6
get_local $3
get_local $4
get_local $6
call $~lib/internal/memory/memset
end
get_local $5
get_global $~lib/internal/arraybuffer/HEADER_SIZE
i32.add
set_local $4
get_local $0
get_global $~lib/internal/arraybuffer/HEADER_SIZE
i32.add
set_local $3
get_local $4
get_local $3
get_local $2
call $~lib/internal/memory/memmove
get_local $5
get_global $~lib/internal/arraybuffer/HEADER_SIZE
i32.add
get_local $2
i32.add
set_local $3
i32.const 0
set_local $4
get_local $1
get_local $2
i32.sub
set_local $6
get_local $3
get_local $4
get_local $6
call $~lib/internal/memory/memset
get_local $5
return
end
@ -2024,15 +2018,13 @@
i32.add
i32.store offset=4
end
block $~lib/internal/arraybuffer/storeUnsafe<i32,i32>|inlined.0
get_local $3
get_local $1
i32.const 2
i32.shl
i32.add
get_local $2
i32.store offset=8
end
get_local $3
get_local $1
i32.const 2
i32.shl
i32.add
get_local $2
i32.store offset=8
)
(func $~lib/array/Array<i64>#__get (; 10 ;) (type $iiI) (param $0 i32) (param $1 i32) (result i64)
(local $2 i32)
@ -2099,15 +2091,13 @@
i32.add
i32.store offset=4
end
block $~lib/internal/arraybuffer/storeUnsafe<i64,i64>|inlined.0
get_local $3
get_local $1
i32.const 3
i32.shl
i32.add
get_local $2
i64.store offset=8
end
get_local $3
get_local $1
i32.const 3
i32.shl
i32.add
get_local $2
i64.store offset=8
)
(func $~lib/array/Array<f32>#__get (; 12 ;) (type $iif) (param $0 i32) (param $1 i32) (result f32)
(local $2 i32)
@ -2174,15 +2164,13 @@
i32.add
i32.store offset=4
end
block $~lib/internal/arraybuffer/storeUnsafe<f32,f32>|inlined.0
get_local $3
get_local $1
i32.const 2
i32.shl
i32.add
get_local $2
f32.store offset=8
end
get_local $3
get_local $1
i32.const 2
i32.shl
i32.add
get_local $2
f32.store offset=8
)
(func $~lib/array/Array<f64>#__get (; 14 ;) (type $iiF) (param $0 i32) (param $1 i32) (result f64)
(local $2 i32)
@ -2249,15 +2237,13 @@
i32.add
i32.store offset=4
end
block $~lib/internal/arraybuffer/storeUnsafe<f64,f64>|inlined.0
get_local $3
get_local $1
i32.const 3
i32.shl
i32.add
get_local $2
f64.store offset=8
end
get_local $3
get_local $1
i32.const 3
i32.shl
i32.add
get_local $2
f64.store offset=8
)
(func $start (; 16 ;) (type $v)
(local $0 i32)