mirror of
https://github.com/Eaglercraft-TeaVM-Fork/eagler-teavm.git
synced 2024-12-22 08:14:09 -08:00
Upgrade to ASM5 API
This commit is contained in:
parent
358766d5f6
commit
7b029d024c
|
@ -32,7 +32,7 @@ class JCLComparisonVisitor extends ClassVisitor {
|
||||||
private JCLClass jclClass;
|
private JCLClass jclClass;
|
||||||
|
|
||||||
public JCLComparisonVisitor(ClassReaderSource classSource, Map<String, JCLPackage> packageMap) {
|
public JCLComparisonVisitor(ClassReaderSource classSource, Map<String, JCLPackage> packageMap) {
|
||||||
super(Opcodes.ASM4);
|
super(Opcodes.ASM5);
|
||||||
this.classSource = classSource;
|
this.classSource = classSource;
|
||||||
this.packageMap = packageMap;
|
this.packageMap = packageMap;
|
||||||
}
|
}
|
||||||
|
|
|
@ -367,7 +367,7 @@ public class ProgramParser implements VariableDebugInformation {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: invokedynamic support (a great task, involving not only parser, but every layer of TeaVM)
|
// TODO: invokedynamic support (a great task, involving not only parser, but every layer of TeaVM)
|
||||||
private MethodVisitor methodVisitor = new MethodVisitor(Opcodes.ASM4) {
|
private MethodVisitor methodVisitor = new MethodVisitor(Opcodes.ASM5) {
|
||||||
@Override
|
@Override
|
||||||
public void visitVarInsn(int opcode, int local) {
|
public void visitVarInsn(int opcode, int local) {
|
||||||
switch (opcode) {
|
switch (opcode) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user