diff --git a/src/main/java/bytecode/MethodCodeGen.java b/src/main/java/bytecode/MethodCodeGen.java index 9b799ab..e50ed3f 100644 --- a/src/main/java/bytecode/MethodCodeGen.java +++ b/src/main/java/bytecode/MethodCodeGen.java @@ -73,7 +73,7 @@ public class MethodCodeGen implements bytecode.visitor.MethodVisitor { } methodVisitor.visitInsn(RETURN); - methodVisitor.visitMaxs(1, localVaribales.size()); + methodVisitor.visitMaxs(0, 0); methodVisitor.visitEnd(); } @@ -94,7 +94,7 @@ public class MethodCodeGen implements bytecode.visitor.MethodVisitor { statementNode.accept(this); } - methodVisitor.visitMaxs(1, localVaribales.size()); + methodVisitor.visitMaxs(0, 0); methodVisitor.visitEnd(); } @@ -118,7 +118,7 @@ public class MethodCodeGen implements bytecode.visitor.MethodVisitor { statementNode.accept(this); } - methodVisitor.visitMaxs(1, localVaribales.size()); + methodVisitor.visitMaxs(0, 0); methodVisitor.visitEnd(); } @@ -250,7 +250,9 @@ public class MethodCodeGen implements bytecode.visitor.MethodVisitor { @Override public void visit(MemberAccessNode memberAccessNode) { - + if(memberAccessNode.thisExpr) { + //methodVisitor.visitFieldInsn(PUTFIELD); + } } @Override