|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectalt.jiapi.util.HotSpot
public class HotSpot
HotSpot.
HotSpot is defined as being an interesting Instruction, and all the Instructions before it, that has a total stack usage of 0.
If the interesting Instruction has a positive or zero stack usage, HotSpot is defined as being that single Instruction.
NOTE: We might change this definition to be exactly zero stack usage
For invocation, this would be
Constructor Summary | |
---|---|
HotSpot(InstructionList il,
Instruction ins)
Create new hotspot for a single Instruction. |
|
HotSpot(InstructionList il,
Instruction start,
Instruction end)
Create new hotspot. |
Method Summary | |
---|---|
InstructionList |
getArgumentList()
Get the InstructionList that represents arguments of this hotspot. |
Instruction |
getHotSpotInstruction()
Get the Instruction, that was used to trigger creation of this HotSpot. |
InstructionList |
getInstructionList()
Get the InstructionList that represents this hotspot. |
java.lang.String |
getName()
Gets the name of this HotSpot. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public HotSpot(InstructionList il, Instruction ins)
il
- InstructionList that contains hotspotins
- An Instruction, that makes up this hotspotpublic HotSpot(InstructionList il, Instruction start, Instruction end)
il
- InstructionList that contains hotspot.start
- First instruction of the hotspotend
- Last instruction of the hotspotMethod Detail |
---|
public InstructionList getArgumentList()
InstructionList returned is a view to underlying list. All the modifications made to view, is reflected back to underlying list.
public Instruction getHotSpotInstruction()
getInstructionList().get(il.size() - 1);
public InstructionList getInstructionList()
public java.lang.String getName()
For example, for
invokevirtual java.io.PrintStream.println(Ljava/lang/String;)V
void java.io.PrintStream.println(java.lang.String)
is
returned
For field accesses, name of the hotspot is
class-name.field-name
For the rest of the hotspots, an empty String is returned.
|
||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |