Package kilim.analysis
Class Frame
java.lang.Object
kilim.analysis.Frame
An activation frame.
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprivate boolean(package private) voiddup()static Value[]booleangetLocal(int local) getLocal(int local, int opcode) intgetStack(int pos) intinthashCode()Merge the local variables and stack from the incoming frame into the current frame.pop()voidpopn(int n) popWord()inttoString()
-
Field Details
-
Constructor Details
-
Frame
private Frame(int nLocals, int nStack, boolean init) -
Frame
public Frame(int nLocals, int nStack) -
Frame
-
Frame
-
-
Method Details
-
merge
Merge the local variables and stack from the incoming frame into the current frame.- Parameters:
inframe- -- incoming framelocalsOnly- -- true for exception handlers, because the stack is cleared.usage- -- Only those locals are merged that are deemed live (@see Usage#isLiveIn(int))- Returns:
- this, if the merge didn't change anything or a new Frame if the operation changed a slot on the stack or a local variable
-
dupArray
-
dup
-
checkType
-
setLocal
-
getLocal
-
getLocal
-
getStack
-
push
-
pop
-
popWord
-
popn
public void popn(int n) -
clearStack
void clearStack() -
equals
-
hashCode
public int hashCode() -
toString
-
getMaxLocals
public int getMaxLocals() -
getStackLen
public int getStackLen()
-