public final class TrapCodeOperand extends Operand
Operand
Modifier and Type | Field and Description |
---|---|
private byte |
trapCode
The trap code.
|
instruction
Modifier | Constructor and Description |
---|---|
private |
TrapCodeOperand(byte why)
Create a trap code operand
|
Modifier and Type | Method and Description |
---|---|
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.
|
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
private final byte trapCode
private TrapCodeOperand(byte why)
why
- the trap codepublic 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()
Operand
this
.public boolean similar(Operand op)
Operand
public int getTrapCode()