public class DeclareFunctionNode extends LoadNode
v = function [ name ] ( args ) { body )
EXCEPTION_REG, FIRST_ORDINARY_REG, NO_VALUE, RETURN_REG| Constructor and Description |
|---|
DeclareFunctionNode(Function f,
boolean expression,
int result_reg,
SourceLocation location)
Constructs a new function declaration node.
|
| 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.
|
EventType |
getDomEventType() |
Function |
getFunction()
Returns the function being declared.
|
boolean |
isExpression()
Returns true if this is an expression, false if it is a declaration.
|
void |
setDomEventType(EventType domEventType) |
java.lang.String |
toString()
Returns a string description of this node.
|
void |
visitBy(NodeVisitor v)
Visits this node with the given visitor.
|
getResultRegisterclone, getBlock, getDuplicateOf, getImplicitAfterCall, getIndex, getSourceLocation, getThisOrDuplicateOf, isArtificial, isRegistersDone, setArtificial, setBlock, setDuplicateOf, setImplicitAfterCall, setIndex, setRegistersDone, setSourceLocationpublic DeclareFunctionNode(Function f, boolean expression, int result_reg, SourceLocation location)
f - The function being declared.expression - True if this an expression, false if it is a declaration.result_reg - The result register.location - The source location.public boolean canThrowExceptions()
AbstractNodecanThrowExceptions in class AbstractNodepublic void check(BasicBlock b)
AbstractNodecheck in class AbstractNodeb - basic block containing this nodepublic EventType getDomEventType()
public Function getFunction()
public boolean isExpression()
public void setDomEventType(EventType domEventType)
public java.lang.String toString()
AbstractNodetoString in class AbstractNodepublic void visitBy(NodeVisitor v)
NodeCopyright © 2009-2019 Aarhus University