public org.objectweb.asm.Label newLabel() { return new org.objectweb.asm.Label(); } public SkinnyMethodAdapter adapter;
public org.objectweb.asm.Label newLabel() { return new org.objectweb.asm.Label(); }
public SkinnyMethodAdapter(ClassVisitor cv, int flags, String name, String signature, String something, String[] exceptions) { super(ASM4); setMethodVisitor(cv.visitMethod(flags, name, signature, something, exceptions)); this.cv = cv; this.name = name; this.start = new Label(); this.end = new Label(); }
public SkinnyMethodAdapter(ClassVisitor cv, int flags, String name, String signature, String something, String[] exceptions) { super(ASM4); setMethodVisitor(cv.visitMethod(flags, name, signature, something, exceptions)); this.cv = cv; this.name = name; this.start = new Label(); this.end = new Label(); }
public SkinnyMethodAdapter(ClassVisitor cv, int flags, String name, String signature, String something, String[] exceptions) { super(ASM4); setMethodVisitor(cv.visitMethod(flags, name, signature, something, exceptions)); this.cv = cv; this.name = name; this.start = new Label(); this.end = new Label(); }
public SkinnyMethodAdapter(ClassVisitor cv, int flags, String name, String signature, String something, String[] exceptions) { super(ASM4); setMethodVisitor(cv.visitMethod(flags, name, signature, something, exceptions)); this.cv = cv; this.name = name; this.start = new Label(); this.end = new Label(); }
public void line(int line) { Label label = new Label(); label(label); visitLineNumber(line, label); }
public void line(int line) { Label label = new Label(); label(label); visitLineNumber(line, label); }
public void line(int line) { Label label = new Label(); label(label); visitLineNumber(line, label); }
public void line(int line) { Label label = new Label(); label(label); visitLineNumber(line, label); }
public void performBooleanBranch2(BranchCallback trueBranch, BranchCallback falseBranch) { Label afterJmp = new Label(); Label falseJmp = new Label(); method.ifeq(falseJmp); // EQ == 0 (i.e. false) trueBranch.branch(this); method.go_to(afterJmp); // FIXME: optimize for cases where we have no false branch method.label(falseJmp); falseBranch.branch(this); method.label(afterJmp); }
@Override public void endBody() { // return last value from execution method.areturn(); Label end = new Label(); method.label(end); method.end(); }
@Override public void endBody() { // return last value from execution method.areturn(); Label end = new Label(); method.label(end); method.end(); }
public void lineNumber(ISourcePosition position) { int thisLine = position.getStartLine(); // No point in updating number if last number was same value. if (thisLine != lastLine) { lastLine = thisLine; } else { return; } Label line = new Label(); method.label(line); method.visitLineNumber(thisLine + 1, line); }
public void performBooleanBranch2(BranchCallback trueBranch, BranchCallback falseBranch) { Label afterJmp = new Label(); Label falseJmp = new Label(); method.ifeq(falseJmp); // EQ == 0 (i.e. false) trueBranch.branch(this); method.go_to(afterJmp); // FIXME: optimize for cases where we have no false branch method.label(falseJmp); falseBranch.branch(this); method.label(afterJmp); }
public void lineNumber(ISourcePosition position) { int thisLine = position.getStartLine(); // No point in updating number if last number was same value. if (thisLine != lastLine) { lastLine = thisLine; } else { return; } Label line = new Label(); method.label(line); method.visitLineNumber(thisLine + 1, line); }
@Override public void endBody() { // return last value from execution method.areturn(); Label end = new Label(); method.label(end); method.end(); }
@Override public void endBody() { // return last value from execution method.areturn(); Label end = new Label(); method.label(end); method.end(); }