|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.jikesrvm.compilers.opt.ir.operand.Operand
org.jikesrvm.compilers.opt.ir.operand.TrapCodeOperand
public final class TrapCodeOperand
Encode the semantic reason for a trap instruction.
Operand| Field Summary | |
|---|---|
private byte |
trapCode
The trap code. |
| Fields inherited from class org.jikesrvm.compilers.opt.ir.operand.Operand |
|---|
instruction |
| Constructor Summary | |
|---|---|
private |
TrapCodeOperand(byte why)
Create a trap code operand |
| Method Summary | |
|---|---|
static TrapCodeOperand |
ArrayBounds()
Create a trap code operand for an array bounds check |
static TrapCodeOperand |
CheckCast()
Create a trap code operand for a check cast |
Operand |
copy()
Return a new operand that is semantically equivalent to this. |
static TrapCodeOperand |
DivByZero()
Create a trap code operand for a divide by zero check |
int |
getTrapCode()
Return the numeric value representing the trap code; this is used by the assembler (on Intel) when generating code. |
boolean |
isArrayBounds()
Does the operand represent an array bounds check ? |
boolean |
isCheckCast()
Does the operand represent a check cast? |
boolean |
isDivByZero()
Does the operand represent a divide by zero check? |
boolean |
isDoesImplement()
Does the operand represent a must implement trap? |
boolean |
isNullPtr()
Does the operand represent a null pointer check? |
boolean |
isRegenerate()
Does the operand represent a regeneration trap? |
boolean |
isStackOverflow()
Does the operand represent a stack overflow check? |
boolean |
isStoreCheck()
Does the operand represent an array store check? |
static TrapCodeOperand |
MustImplement()
Create a trap code operand for a must implement |
static TrapCodeOperand |
NullPtr()
Create a trap code operand for a null pointer check |
static TrapCodeOperand |
Regenerate()
Create a trap code operand for a regeneration trap |
boolean |
similar(Operand op)
Are two operands semantically equivalent? |
static TrapCodeOperand |
StackOverflow()
Create a trap code operand for a stack overflow |
static TrapCodeOperand |
StoreCheck()
Create a trap code operand for a must implement |
String |
toString()
Returns the string representation of this operand. |
| Methods inherited from class org.jikesrvm.compilers.opt.ir.operand.Operand |
|---|
asAddressConstant, asBlock, asBranch, asClassConstant, asCondition, asDoubleConstant, asFloatConstant, asIntConstant, asLocation, asLongConstant, asMemory, asMethod, asNullConstant, asObjectConstant, asRegister, asStackLocation, asStringConstant, asTIBConstant, asType, conservativelyApproximates, getIndexInInstruction, getType, isAddress, isAddressConstant, isBlock, isBranch, isClassConstant, isConstant, isDefinitelyNull, isDouble, isDoubleConstant, isFloat, isFloatConstant, isInt, isIntConstant, isIntLike, isLocation, isLong, isLongConstant, isMemory, isMethod, isMovableObjectConstant, isNullConstant, isObjectConstant, isRef, isRegister, isStackLocation, isStringConstant, isTIBConstant, isTrueGuard, isType, meet |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
private final byte trapCode
| Constructor Detail |
|---|
private TrapCodeOperand(byte why)
why - the trap code| Method Detail |
|---|
public static TrapCodeOperand NullPtr()
public static TrapCodeOperand ArrayBounds()
public static TrapCodeOperand DivByZero()
public static TrapCodeOperand StackOverflow()
public static TrapCodeOperand CheckCast()
public static TrapCodeOperand MustImplement()
public static TrapCodeOperand StoreCheck()
public static TrapCodeOperand Regenerate()
public boolean isNullPtr()
true if it does and false
if it does notpublic boolean isArrayBounds()
true if it does and false
if it does notpublic boolean isDivByZero()
true if it does and false
if it does notpublic boolean isStackOverflow()
true if it does and false
if it does notpublic boolean isCheckCast()
true if it does and false
if it does notpublic boolean isDoesImplement()
true if it does and false
if it does notpublic boolean isStoreCheck()
true if it does and false
if it does notpublic boolean isRegenerate()
true if it does and false
if it does notpublic Operand copy()
this.
copy in class Operandthispublic boolean similar(Operand op)
similar in class Operandop - other operand
true if this and op
are semantically equivalent or false
if they are not.public String toString()
toString in class Objectpublic int getTrapCode()
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||