Rework loop compilation / flows (#644)

This commit is contained in:
Daniel Wirtz
2019-06-11 12:52:16 +02:00
committed by GitHub
parent 420812f5b2
commit 40dac8269d
125 changed files with 52818 additions and 61256 deletions

View File

@@ -27,7 +27,7 @@
global.set $assembly/index/s
i32.const 0
local.set $0
loop $repeat|0
loop $loop|0
block $break|0
local.get $0
global.get $assembly/index/h
@@ -35,7 +35,7 @@
br_if $break|0
i32.const 0
local.set $1
loop $repeat|1
loop $loop|1
block $break|1
local.get $1
global.get $assembly/index/w
@@ -69,14 +69,14 @@
i32.const 1
i32.add
local.set $1
br $repeat|1
br $loop|1
end
end
local.get $0
i32.const 1
i32.add
local.set $0
br $repeat|0
br $loop|0
end
end
)
@@ -97,7 +97,7 @@
i32.const 1
i32.sub
local.set $7
loop $repeat|0
loop $loop|0
block $break|0
local.get $0
global.get $assembly/index/h
@@ -121,7 +121,7 @@
local.set $5
i32.const 0
local.set $1
loop $repeat|1
loop $loop|1
block $break|1
local.get $1
global.get $assembly/index/w
@@ -341,20 +341,20 @@
i32.const 1
i32.add
local.set $1
br $repeat|1
br $loop|1
end
end
local.get $0
i32.const 1
i32.add
local.set $0
br $repeat|0
br $loop|0
end
end
)
(func $assembly/index/fill (; 3 ;) (type $FUNCSIG$viid) (param $0 i32) (param $1 i32) (param $2 f64)
(local $3 i32)
loop $repeat|0
loop $loop|0
block $break|0
local.get $3
global.get $assembly/index/w
@@ -382,12 +382,12 @@
i32.const 1
i32.add
local.set $3
br $repeat|0
br $loop|0
end
end
i32.const 0
local.set $3
loop $repeat|1
loop $loop|1
block $break|1
local.get $3
global.get $assembly/index/h
@@ -415,7 +415,7 @@
i32.const 1
i32.add
local.set $3
br $repeat|1
br $loop|1
end
end
)