Update to ASM 8.0

Signed-off-by: Graham <gpe@openrs2.dev>
Graham 5 years ago
parent 2862b305c5
commit 1552b53ace
  1. 2
      asm/src/main/java/dev/openrs2/asm/NopClassVisitor.kt
  2. 2
      asm/src/main/java/dev/openrs2/asm/classpath/JsrInliner.kt
  3. 2
      buildSrc/src/main/java/Versions.kt
  4. 2
      deob/src/main/java/dev/openrs2/deob/analysis/ConstSourceInterpreter.kt
  5. 2
      deob/src/main/java/dev/openrs2/deob/analysis/IntInterpreter.kt

@ -3,4 +3,4 @@ package dev.openrs2.asm
import org.objectweb.asm.ClassVisitor import org.objectweb.asm.ClassVisitor
import org.objectweb.asm.Opcodes import org.objectweb.asm.Opcodes
object NopClassVisitor : ClassVisitor(Opcodes.ASM7) object NopClassVisitor : ClassVisitor(Opcodes.ASM8)

@ -5,7 +5,7 @@ import org.objectweb.asm.MethodVisitor
import org.objectweb.asm.Opcodes import org.objectweb.asm.Opcodes
import org.objectweb.asm.commons.JSRInlinerAdapter import org.objectweb.asm.commons.JSRInlinerAdapter
class JsrInliner(cv: ClassVisitor) : ClassVisitor(Opcodes.ASM7, cv) { class JsrInliner(cv: ClassVisitor) : ClassVisitor(Opcodes.ASM8, cv) {
override fun visitMethod( override fun visitMethod(
access: Int, access: Int,
name: String, name: String,

@ -1,5 +1,5 @@
object Versions { object Versions {
const val asm = "7.3.1" const val asm = "8.0"
const val bouncyCastle = "1.64" const val bouncyCastle = "1.64"
const val dependencyLicenseReport = "1.13" const val dependencyLicenseReport = "1.13"
const val fernflower = "1.0.3" const val fernflower = "1.0.3"

@ -7,7 +7,7 @@ import org.objectweb.asm.tree.AbstractInsnNode
import org.objectweb.asm.tree.analysis.BasicInterpreter import org.objectweb.asm.tree.analysis.BasicInterpreter
import org.objectweb.asm.tree.analysis.Interpreter import org.objectweb.asm.tree.analysis.Interpreter
class ConstSourceInterpreter : Interpreter<ConstSourceValue>(Opcodes.ASM7) { class ConstSourceInterpreter : Interpreter<ConstSourceValue>(Opcodes.ASM8) {
private val basicInterpreter = BasicInterpreter() private val basicInterpreter = BasicInterpreter()
override fun newValue(type: Type?): ConstSourceValue? { override fun newValue(type: Type?): ConstSourceValue? {

@ -8,7 +8,7 @@ import org.objectweb.asm.tree.IincInsnNode
import org.objectweb.asm.tree.analysis.BasicInterpreter import org.objectweb.asm.tree.analysis.BasicInterpreter
import org.objectweb.asm.tree.analysis.Interpreter import org.objectweb.asm.tree.analysis.Interpreter
class IntInterpreter(private val parameters: Array<Set<Int>?>?) : Interpreter<IntValue>(Opcodes.ASM7) { class IntInterpreter(private val parameters: Array<Set<Int>?>?) : Interpreter<IntValue>(Opcodes.ASM8) {
private val basicInterpreter = BasicInterpreter() private val basicInterpreter = BasicInterpreter()
override fun newValue(type: Type?): IntValue? { override fun newValue(type: Type?): IntValue? {

Loading…
Cancel
Save