PeepholeOptimizer3B

org.nlogo.generate.PeepholeOptimizer3B
class PeepholeOptimizer3B(mv: MethodVisitor) extends MethodVisitor

This class serves as a peep-hole optimizer. Its purpose is just to clean up the PEEPHOLE_FLAG_LABELs that PeepholeOptimizer3 leaves behind. PeepholeOptimizer3 must ALWAYS be used in conjunction with this class, because otherwise we'll end up placing the PEEPHOLE_FLAG_LABEL in multiple places in the method body, which causes a verifier error.

It's looking for patterns like this: Label PEEPHOLE_FLAG_LABEL And replacing them with: (nothing)

~Forrest (6/19/2006)

Attributes

Source
PeepholeOptimizer3.scala
Graph
Supertypes
class MethodVisitor
class Object
trait Matchable
class Any

Members list

Value members

Concrete methods

override def visitLabel(label: Label): Unit

Attributes

Definition Classes
MethodVisitor
Source
PeepholeOptimizer3.scala

Inherited methods

def getDelegate(): MethodVisitor

Attributes

Inherited from:
MethodVisitor

Attributes

Inherited from:
MethodVisitor
def visitAnnotation(x$0: String, x$1: Boolean): AnnotationVisitor

Attributes

Inherited from:
MethodVisitor
def visitAnnotationDefault(): AnnotationVisitor

Attributes

Inherited from:
MethodVisitor
def visitAttribute(x$0: Attribute): Unit

Attributes

Inherited from:
MethodVisitor
def visitCode(): Unit

Attributes

Inherited from:
MethodVisitor
def visitEnd(): Unit

Attributes

Inherited from:
MethodVisitor
def visitFieldInsn(x$0: Int, x$1: String, x$2: String, x$3: String): Unit

Attributes

Inherited from:
MethodVisitor
def visitFrame(x$0: Int, x$1: Int, x$2: Array[<FromJavaObject>], x$3: Int, x$4: Array[<FromJavaObject>]): Unit

Attributes

Inherited from:
MethodVisitor
def visitIincInsn(x$0: Int, x$1: Int): Unit

Attributes

Inherited from:
MethodVisitor
def visitInsn(x$0: Int): Unit

Attributes

Inherited from:
MethodVisitor
def visitInsnAnnotation(x$0: Int, x$1: TypePath, x$2: String, x$3: Boolean): AnnotationVisitor

Attributes

Inherited from:
MethodVisitor
def visitIntInsn(x$0: Int, x$1: Int): Unit

Attributes

Inherited from:
MethodVisitor
def visitInvokeDynamicInsn(x$0: String, x$1: String, x$2: Handle, x$3: <FromJavaObject>*): Unit

Attributes

Inherited from:
MethodVisitor
def visitJumpInsn(x$0: Int, x$1: Label): Unit

Attributes

Inherited from:
MethodVisitor
def visitLdcInsn(x$0: <FromJavaObject>): Unit

Attributes

Inherited from:
MethodVisitor
def visitLineNumber(x$0: Int, x$1: Label): Unit

Attributes

Inherited from:
MethodVisitor
def visitLocalVariable(x$0: String, x$1: String, x$2: String, x$3: Label, x$4: Label, x$5: Int): Unit

Attributes

Inherited from:
MethodVisitor
def visitLocalVariableAnnotation(x$0: Int, x$1: TypePath, x$2: Array[Label], x$3: Array[Label], x$4: Array[Int], x$5: String, x$6: Boolean): AnnotationVisitor

Attributes

Inherited from:
MethodVisitor
def visitLookupSwitchInsn(x$0: Label, x$1: Array[Int], x$2: Array[Label]): Unit

Attributes

Inherited from:
MethodVisitor
def visitMaxs(x$0: Int, x$1: Int): Unit

Attributes

Inherited from:
MethodVisitor
def visitMethodInsn(x$0: Int, x$1: String, x$2: String, x$3: String, x$4: Boolean): Unit

Attributes

Inherited from:
MethodVisitor
def visitMultiANewArrayInsn(x$0: String, x$1: Int): Unit

Attributes

Inherited from:
MethodVisitor
def visitParameter(x$0: String, x$1: Int): Unit

Attributes

Inherited from:
MethodVisitor
def visitParameterAnnotation(x$0: Int, x$1: String, x$2: Boolean): AnnotationVisitor

Attributes

Inherited from:
MethodVisitor
def visitTableSwitchInsn(x$0: Int, x$1: Int, x$2: Label, x$3: Label*): Unit

Attributes

Inherited from:
MethodVisitor
def visitTryCatchAnnotation(x$0: Int, x$1: TypePath, x$2: String, x$3: Boolean): AnnotationVisitor

Attributes

Inherited from:
MethodVisitor
def visitTryCatchBlock(x$0: Label, x$1: Label, x$2: Label, x$3: String): Unit

Attributes

Inherited from:
MethodVisitor
def visitTypeAnnotation(x$0: Int, x$1: TypePath, x$2: String, x$3: Boolean): AnnotationVisitor

Attributes

Inherited from:
MethodVisitor
def visitTypeInsn(x$0: Int, x$1: String): Unit

Attributes

Inherited from:
MethodVisitor
def visitVarInsn(x$0: Int, x$1: Int): Unit

Attributes

Inherited from:
MethodVisitor

Deprecated and Inherited methods

@Deprecated(since = _, forRemoval = _)
def visitMethodInsn(x$0: Int, x$1: String, x$2: String, x$3: String): Unit

Attributes

Deprecated
[Since version ] see corresponding Javadoc for more information.
Inherited from:
MethodVisitor