class NullnessFrame extends AliasingFrame[NullnessValue]
- Source
- NullnessAnalyzer.scala
- Alphabetic
- By Inheritance
- NullnessFrame
- AliasingFrame
- Frame
- AnyRef
- Any
- by any2stringadd
- by StringFormat
- by Ensuring
- by ArrowAssoc
- Hide All
- Show All
- Public
- All
Instance Constructors
- new NullnessFrame(src: Frame[_ <: NullnessValue])
- new NullnessFrame(nLocals: Int, nStack: Int)
Value Members
-
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.
- Definition Classes
- AliasingFrame
- If
-
def
aliasesOf(entry: Int): AliasSet
The set of aliased values for a given entry in the
values
array.The set of aliased values for a given entry in the
values
array.- Definition Classes
- AliasingFrame
-
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
execute(insn: AbstractInsnNode, interpreter: asm.tree.analysis.Interpreter[NullnessValue]): Unit
- Definition Classes
- NullnessFrame → AliasingFrame → Frame
-
def
getLocal(arg0: Int): NullnessValue
- Definition Classes
- Frame
- Annotations
- @throws( ... )
-
def
getLocals(): Int
- Definition Classes
- Frame
-
def
getMaxStackSize(): Int
- Definition Classes
- Frame
-
def
getStack(arg0: Int): NullnessValue
- Definition Classes
- Frame
- Annotations
- @throws( ... )
-
def
getStackSize(): Int
- Definition Classes
- Frame
-
def
init(src: Frame[_ <: NullnessValue]): Frame[NullnessValue]
- Definition Classes
- AliasingFrame → Frame
-
def
merge(other: Frame[_ <: NullnessValue], interpreter: asm.tree.analysis.Interpreter[NullnessValue]): 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[_ <: NullnessValue], arg1: Array[Boolean]): Boolean
- Definition Classes
- Frame
-
def
pop(): NullnessValue
- Definition Classes
- Frame
- Annotations
- @throws( ... )
-
def
push(arg0: NullnessValue): Unit
- Definition Classes
- Frame
- Annotations
- @throws( ... )
-
def
setLocal(arg0: Int, arg1: NullnessValue): Unit
- Definition Classes
- Frame
- Annotations
- @throws( ... )
-
def
setReturn(arg0: NullnessValue): Unit
- Definition Classes
- Frame
-
def
setStack(arg0: Int, arg1: NullnessValue): Unit
- Definition Classes
- Frame
- Annotations
- @throws( ... )
-
def
toString(): String
- Definition Classes
- AliasingFrame → Frame → AnyRef → Any
The Scala compiler and reflection APIs.