Class SLFunctionBodyNode

All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public final class SLFunctionBodyNode extends SLExpressionNode
The body of a user-defined SL function. This is the node referenced by a 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 Details

  • Method Details

    • executeGeneric

      public Object executeGeneric(com.oracle.truffle.api.frame.VirtualFrame frame)
      Description copied from class: SLExpressionNode
      The execute method when no specialization is possible. This is the most general case, therefore it must be provided by all subclasses.
      Specified by:
      executeGeneric in class SLExpressionNode