class AliasingFrame[V <: Value] extends Frame[V]
A subclass of Frame that tracks aliasing of values stored in local variables and on the stack.
Note: an analysis tracking aliases is roughly 5x slower than a usual analysis (assuming a simple value domain with a fast merge function). For example, nullness analysis is roughly 5x slower than a BasicValue analysis.
See the doc of package object analysis
for some notes on the performance of alias analysis.
- Source
- AliasingFrame.scala
- Alphabetic
- By Inheritance
- AliasingFrame
- Frame
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
def
+(other: String): String
- Implicit
- This member is added by an implicit conversion from AliasingFrame[V] to any2stringadd[AliasingFrame[V]] performed by method any2stringadd in scala.Predef.
- Definition Classes
- any2stringadd
-
def
->[B](y: B): (AliasingFrame[V], B)
- Implicit
- This member is added by an implicit conversion from AliasingFrame[V] to ArrowAssoc[AliasingFrame[V]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
- Annotations
- @inline()
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
aliases: Array[AliasSet]
For every value the set of values that are aliases of it.
For every value the set of values that are aliases of it.
Invariants:
- If
aliases(i) == null
then i has no aliases. This is equivalent to havingaliases(i) == SingletonSet(i)
. - If
aliases(i) != null
thenaliases(i) contains i
. - If
aliases(i) contains j
thenaliases(i) eq aliases(j)
, i.e., they are references to the same (mutable) AliasSet.
- If
-
def
aliasesOf(entry: Int): AliasSet
The set of aliased values for a given entry in the
values
array. -
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clearStack(): Unit
When entering an exception handler, all values are dropped from the stack (and the exception value is pushed).
When entering an exception handler, all values are dropped from the stack (and the exception value is pushed). The ASM analyzer invokes
firstHandlerInstructionFrame.clearStack()
. To ensure consistent aliasing sets, we need to remove the dropped values from aliasing sets.- Definition Classes
- AliasingFrame → Frame
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
ensuring(cond: (AliasingFrame[V]) ⇒ Boolean, msg: ⇒ Any): AliasingFrame[V]
- Implicit
- This member is added by an implicit conversion from AliasingFrame[V] to Ensuring[AliasingFrame[V]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: (AliasingFrame[V]) ⇒ Boolean): AliasingFrame[V]
- Implicit
- This member is added by an implicit conversion from AliasingFrame[V] to Ensuring[AliasingFrame[V]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean, msg: ⇒ Any): AliasingFrame[V]
- Implicit
- This member is added by an implicit conversion from AliasingFrame[V] to Ensuring[AliasingFrame[V]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
def
ensuring(cond: Boolean): AliasingFrame[V]
- Implicit
- This member is added by an implicit conversion from AliasingFrame[V] to Ensuring[AliasingFrame[V]] performed by method Ensuring in scala.Predef.
- Definition Classes
- Ensuring
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
execute(insn: AbstractInsnNode, interpreter: asm.tree.analysis.Interpreter[V]): Unit
- Definition Classes
- AliasingFrame → Frame
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
def
formatted(fmtstr: String): String
- Implicit
- This member is added by an implicit conversion from AliasingFrame[V] to StringFormat[AliasingFrame[V]] performed by method StringFormat in scala.Predef.
- Definition Classes
- StringFormat
- Annotations
- @inline()
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
getLocal(arg0: Int): V
- Definition Classes
- Frame
- Annotations
- @throws( ... )
-
def
getLocals(): Int
- Definition Classes
- Frame
-
def
getMaxStackSize(): Int
- Definition Classes
- Frame
-
def
getStack(arg0: Int): V
- Definition Classes
- Frame
- Annotations
- @throws( ... )
-
def
getStackSize(): Int
- Definition Classes
- Frame
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
-
def
init(src: Frame[_ <: V]): Frame[V]
- Definition Classes
- AliasingFrame → Frame
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
merge(other: Frame[_ <: V], interpreter: asm.tree.analysis.Interpreter[V]): Boolean
Merge the AliasingFrame
other
into this AliasingFrame.Merge the AliasingFrame
other
into this AliasingFrame.Aliases that are common in both frames are kept. Example:
var x, y = null if (...) { x = a y = a // (x, y, a) are aliases } else { x = a y = b // (x, a) and (y, b) } [...] // (x, a) -- merge of ((x, y, a)) and ((x, a), (y, b))
- Definition Classes
- AliasingFrame → Frame
-
def
merge(arg0: Frame[_ <: V], arg1: Array[Boolean]): Boolean
- Definition Classes
- Frame
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
pop(): V
- Definition Classes
- Frame
- Annotations
- @throws( ... )
-
def
push(arg0: V): Unit
- Definition Classes
- Frame
- Annotations
- @throws( ... )
-
def
setLocal(arg0: Int, arg1: V): Unit
- Definition Classes
- Frame
- Annotations
- @throws( ... )
-
def
setReturn(arg0: V): Unit
- Definition Classes
- Frame
-
def
setStack(arg0: Int, arg1: V): Unit
- Definition Classes
- Frame
- Annotations
- @throws( ... )
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AliasingFrame → Frame → AnyRef → Any
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
def
→[B](y: B): (AliasingFrame[V], B)
- Implicit
- This member is added by an implicit conversion from AliasingFrame[V] to ArrowAssoc[AliasingFrame[V]] performed by method ArrowAssoc in scala.Predef.
- Definition Classes
- ArrowAssoc
The Scala compiler and reflection APIs.