public class DeletePropertyNode extends LoadNode
vresult = delete vbase[vproperty]
or
vresult = delete vbase.property
or
vresult = delete x (for variables)
EXCEPTION_REG, FIRST_ORDINARY_REG, NO_VALUE, RETURN_REG| Constructor and Description |
|---|
DeletePropertyNode(int base_reg,
int property_reg,
int result_reg,
SourceLocation location)
Constructs a new delete property node for a reference with variable property name.
|
DeletePropertyNode(int base_reg,
String property_str,
int result_reg,
SourceLocation location)
Constructs a new delete property node for a reference with fixed property name.
|
DeletePropertyNode(String varname,
int result_reg,
SourceLocation location)
Constructs a new delete property node for a variable.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canThrowExceptions()
Returns true if this node may throw exceptions.
|
void |
check(BasicBlock b)
Perform a consistency check of this node.
|
int |
getBaseRegister()
Returns the base register, or
AbstractNode.NO_VALUE if not applicable. |
int |
getPropertyRegister()
Returns the property register, or
AbstractNode.NO_VALUE if not applicable. |
String |
getPropertyString()
Returns the property string, or null if not fixed or not a reference.
|
String |
getVariableName()
Returns the source variable name, or null if not a variable.
|
boolean |
isPropertyFixed()
Returns true if the property is a fixed string.
|
boolean |
isVariable()
Returns true if the argument is a variable, false if it is an ordinary reference.
|
void |
setBaseRegister(int base_reg)
Sets the base register
|
void |
setPropertyRegister(int property_reg)
Sets the property register.
|
String |
toString()
Returns a string description of this node.
|
<ArgType> void |
visitBy(NodeVisitor<ArgType> v,
ArgType a)
Visits this node with the given visitor.
|
getResultRegistergetBlock, getDuplicateOf, getIndex, getSourceLocation, isArtificial, isDead, isRegistersDone, setArtificial, setBlock, setDead, setDuplicateOf, setIndex, setRegistersDonepublic DeletePropertyNode(int base_reg,
int property_reg,
int result_reg,
SourceLocation location)
public DeletePropertyNode(int base_reg,
String property_str,
int result_reg,
SourceLocation location)
public DeletePropertyNode(String varname, int result_reg, SourceLocation location)
public boolean canThrowExceptions()
AbstractNodecanThrowExceptions in class AbstractNodepublic void check(BasicBlock b)
AbstractNodecheck in class AbstractNodeb - basic block containing this nodepublic int getBaseRegister()
AbstractNode.NO_VALUE if not applicable.public int getPropertyRegister()
AbstractNode.NO_VALUE if not applicable.public String getPropertyString()
public String getVariableName()
public boolean isPropertyFixed()
public boolean isVariable()
public void setBaseRegister(int base_reg)
public void setPropertyRegister(int property_reg)
public String toString()
AbstractNodetoString in class AbstractNodepublic <ArgType> void visitBy(NodeVisitor<ArgType> v, ArgType a)
NodeCopyright © 2012 Aarhus University