public class Label extends Operand
Modifier and Type | Field and Description |
---|---|
int |
id |
java.lang.String |
prefix |
static Label |
UNRESCUED_REGION_LABEL |
EMPTY_ARRAY
Constructor and Description |
---|
Label(java.lang.String prefix,
int id) |
Modifier and Type | Method and Description |
---|---|
void |
addUsedVariables(java.util.List<Variable> l)
Append the list of variables used in this operand to the input list -- force every operand
to implement this because a missing implementation can cause bad failures.
|
boolean |
canCopyPropagate()
Can we replace every use of a variable 'v' that contains the value of this operand
with the operand itself? This takes importance when there are at least two uses
of 'v' within this scope.
|
Label |
clone() |
Operand |
cloneForInlining(CloneInfo ii) |
static Label |
decode(IRReaderDecoder d) |
void |
encode(IRWriterEncoder e) |
boolean |
equals(java.lang.Object o) |
static Label |
getGlobalEnsureBlockLabel() |
OperandType |
getOperandType() |
int |
getTargetPC() |
int |
hashCode() |
boolean |
isGlobalEnsureBlockLabel() |
void |
setTargetPC(int i) |
java.lang.String |
toString() |
void |
visit(IRVisitor visitor) |
getSimplifiedOperand, getValue, hasKnownValue, isFalseyImmediate, isTruthyImmediate, retrieve
public static final Label UNRESCUED_REGION_LABEL
public final java.lang.String prefix
public final int id
public static Label getGlobalEnsureBlockLabel()
public OperandType getOperandType()
getOperandType
in class Operand
public java.lang.String toString()
toString
in class java.lang.Object
public void addUsedVariables(java.util.List<Variable> l)
Operand
addUsedVariables
in class Operand
public boolean canCopyPropagate()
Operand
canCopyPropagate
in class Operand
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public boolean isGlobalEnsureBlockLabel()
public Label clone()
clone
in class java.lang.Object
public Operand cloneForInlining(CloneInfo ii)
cloneForInlining
in class Operand
public void setTargetPC(int i)
public int getTargetPC()
public void encode(IRWriterEncoder e)
public static Label decode(IRReaderDecoder d)
Copyright © 2001-2020 JRuby. All Rights Reserved.