public final class SLFunctionBodyNode extends SLExpressionNode
SLRootNode for
user-defined functions. It handles the return value of a function: the return
statement throws an exception with the return value. This node catches
the exception. If the method ends without an explicit return, return the
default null value.| Constructor and Description |
|---|
SLFunctionBodyNode(SLStatementNode bodyNode) |
| Modifier and Type | Method and Description |
|---|---|
Object |
executeGeneric(com.oracle.truffle.api.frame.VirtualFrame frame)
The execute method when no specialization is possible.
|
addExpressionTag, createWrapper, executeBoolean, executeLong, executeVoid, hasTagaddRootTag, addStatementTag, formatSourceSection, getSourceCharIndex, getSourceEndIndex, getSourceLength, getSourceSection, hasSource, isInstrumentable, setSourceSection, setUnavailableSourceSection, toStringfindBlock, getVisibleVariablesIndexOnEnter, hasScope, setVisibleVariablesIndexOnEnter, setVisibleVariablesIndexOnExitaccept, adoptChildren, atomic, atomic, copy, deepCopy, getChildren, getCost, getDebugProperties, getDescription, getEncapsulatingSourceSection, getLock, getParent, getRootNode, insert, insert, isAdoptable, isSafelyReplaceableBy, notifyInserted, onReplace, replace, replace, reportPolymorphicSpecializepublic SLFunctionBodyNode(SLStatementNode bodyNode)
public Object executeGeneric(com.oracle.truffle.api.frame.VirtualFrame frame)
SLExpressionNodeexecuteGeneric in class SLExpressionNode