Refactor ASM generation code #105
@ -44,9 +44,7 @@ internal fun MethodVisitor.visitCheckCast(type: String): Unit = visitTypeInsn(CH
|
|||||||
internal fun MethodVisitor.visitGetField(owner: String, name: String, descriptor: String): Unit =
|
internal fun MethodVisitor.visitGetField(owner: String, name: String, descriptor: String): Unit =
|
||||||
visitFieldInsn(GETFIELD, owner, name, descriptor)
|
visitFieldInsn(GETFIELD, owner, name, descriptor)
|
||||||
|
|
||||||
internal fun MethodVisitor.visitLoadObjectVar(`var`: Int) {
|
internal fun MethodVisitor.visitLoadObjectVar(`var`: Int): Unit = visitVarInsn(ALOAD, `var`)
|
||||||
visitVarInsn(ALOAD, `var`)
|
|
||||||
}
|
|
||||||
|
|
||||||
internal fun MethodVisitor.visitGetObjectArrayElement(): Unit = visitInsn(AALOAD)
|
internal fun MethodVisitor.visitGetObjectArrayElement(): Unit = visitInsn(AALOAD)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user