object BackendUtils
- Alphabetic
- By Inheritance
- BackendUtils
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Type Members
- abstract class GenericSignatureVisitor extends AnyRef
- final case class LambdaMetaFactoryCall(indy: InvokeDynamicInsnNode, samMethodType: Type, implMethod: Handle, instantiatedMethodType: Type) extends Product with Serializable
- abstract class NestedClassesCollector[T] extends GenericSignatureVisitor
Value Members
- def argumentsNullCheckedByCallee(mi: MethodInsnNode): Long
- def classTagNewArrayArg(mi: MethodInsnNode, prodCons: ProdConsAnalyzer): InternalName
- def clearDceDone(method: MethodNode): Unit
- def clearLabelReachable(label: LabelNode): Unit
- def clearMaxsComputed(method: MethodNode): Unit
- def computeMaxLocalsMaxStack(method: MethodNode): Unit
In order to run an Analyzer, the maxLocals / maxStack fields need to be available.
In order to run an Analyzer, the maxLocals / maxStack fields need to be available. The ASM framework only computes these values during bytecode generation.
NOTE 1: as explained in the
analysis
package object, the maxStack value used by the Analyzer may be smaller than the correct maxStack value in the classfile (Analyzers only use a single slot for long / double values). The maxStack computed here are correct for running an analyzer, but not for writing in the classfile. We let the ClassWriter recompute max's.NOTE 2: the maxStack value computed here may be larger than the smallest correct value that would allow running an analyzer, see
InstructionStackEffect.forAsmAnalysis
andInstructionStackEffect.maxStackGrowth
.NOTE 3: the implementation doesn't look at instructions that cannot be reached, it computes the max local / stack size in the reachable code. These max's work just fine for running an Analyzer: its implementation also skips over unreachable code in the same way.
- def getClassOnStaticallyKnownPrimitiveArray(mi: MethodInsnNode, typeAnalyzer: NonLubbingTypeFlowAnalyzer): Type
- def isArrayGetLength(mi: MethodInsnNode): Boolean
- def isArrayGetLengthOnStaticallyKnownArray(mi: MethodInsnNode, typeAnalyzer: NonLubbingTypeFlowAnalyzer): Boolean
- def isClassTagApply(mi: MethodInsnNode): Boolean
- def isDceDone(method: MethodNode): Boolean
- def isLabelReachable(label: LabelNode): Boolean
- def isMaxsComputed(method: MethodNode): Boolean
- def isModuleLoad(insn: AbstractInsnNode, nameMatches: (InternalName) => Boolean): Boolean
- def isRuntimeArrayLoadOrUpdate(insn: AbstractInsnNode): Boolean
- lazy val primitiveTypes: Map[String, Type]
- def setDceDone(method: MethodNode): Unit
- def setLabelReachable(label: LabelNode): Unit
- def setMaxsComputed(method: MethodNode): Unit
- object LambdaMetaFactoryCall extends java.io.Serializable
- object handleOrdering extends Ordering[Handle]
The Scala compiler and reflection APIs.