[JVM] Drop toArray call where iterator can be used
This commit is contained in:
+1
-3
@@ -226,10 +226,8 @@ class UninitializedStoresProcessor(private val methodNode: MethodNode) {
|
|||||||
get() = "${instructions.indexOf(this)}: $insnText"
|
get() = "${instructions.indexOf(this)}: $insnText"
|
||||||
|
|
||||||
fun analyzePopInstructions(frames: Array<Frame<BasicValue>?>) {
|
fun analyzePopInstructions(frames: Array<Frame<BasicValue>?>) {
|
||||||
val insns = instructions.toArray()
|
for ((i, insn) in instructions.withIndex()) {
|
||||||
for (i in frames.indices) {
|
|
||||||
val frame = frames[i] ?: continue
|
val frame = frames[i] ?: continue
|
||||||
val insn = insns[i]
|
|
||||||
when (insn.opcode) {
|
when (insn.opcode) {
|
||||||
Opcodes.POP -> analyzePop(insn, frame)
|
Opcodes.POP -> analyzePop(insn, frame)
|
||||||
Opcodes.POP2 -> analyzePop2(insn, frame)
|
Opcodes.POP2 -> analyzePop2(insn, frame)
|
||||||
|
|||||||
Reference in New Issue
Block a user