Refactor ASM generation code #105

Merged
CommanderTvis merged 11 commits from adv-expr-refactor-agc into adv-expr 2020-06-16 10:30:06 +03:00
Showing only changes of commit a7302f49ff - Show all commits

View File

@ -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)