Class SLBreakNode

java.lang.Object
com.oracle.truffle.api.nodes.Node
All Implemented Interfaces:
com.oracle.truffle.api.instrumentation.InstrumentableNode, com.oracle.truffle.api.nodes.NodeInterface, Cloneable

public final class SLBreakNode extends SLStatementNode
Implementation of the SL break statement. We need to unwind an unknown number of interpreter frames that are between this SLBreakNode and the SLWhileNode of the loop we are breaking out. This is done by throwing an exception that is caught by the loop node.
  • Constructor Details

    • SLBreakNode

      public SLBreakNode()
  • Method Details

    • executeVoid

      public void executeVoid(com.oracle.truffle.api.frame.VirtualFrame frame)
      Description copied from class: SLStatementNode
      Execute this node as as statement, where no return value is necessary.
      Specified by:
      executeVoid in class SLStatementNode