Slide 32
Slide 32 text
private fun forEachTest(): Int {
var sum = 0
(0..50).forEach {
sum += it
}
return sum
}
.METHOD forEachTest : int
.MODIFIERS private final
.REGISTERS 8
.CODE
const/4 v0, #0
new-instance v1, type@2439
const/4 v2, #0
const/16 v3, #50
invoke-direct {v1, v2, v3}, meth@20280
check-cast v1, type@1851
move v3, v2
invoke-interface {v1}, meth@15176
move-result-object v4
invoke-interface {v4}, meth@15640
move-result v5
if-eqz v5, 13
move-object v5, v4
check-cast v5, type@2142
invoke-virtual {v5}, meth@18564
move-result v5
move v6, v5
add-int/2addr v6, v0
goto -16
return v0