Interface TagTree
- All Known Implementing Classes:
TagTreeNode
public interface TagTree
Logical tree representation of the
Tag operations of a bytecode program.- Since:
- 24.2
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionintReturns the bytecode index at which the interpreter enters the tag operation.intReturns the bytecode index at which the interpreter "returns" from the tag operation.Gets the most concretesource locationassociated with the tag operation.Gets allsource locationsassociated with the tag operation, ordered from most to least concrete.getTags()Returns thetagsassociated with this node.Returns the child trees corresponding toTagoperations nested in this node.booleanReturns whether the giventagis associated with this node.
-
Method Details
-
getTreeChildren
-
getTags
-
hasTag
-
getEnterBytecodeIndex
int getEnterBytecodeIndex()Returns the bytecode index at which the interpreter enters the tag operation. The bytecode interpreter will invokeProbeNode.onEnter(com.oracle.truffle.api.frame.VirtualFrame)at this point in the program.- Since:
- 24.2
-
getReturnBytecodeIndex
int getReturnBytecodeIndex()Returns the bytecode index at which the interpreter "returns" from the tag operation. The bytecode interpreter will invokeProbeNode.onReturnValue(com.oracle.truffle.api.frame.VirtualFrame, java.lang.Object)with the child operation's result (if any) at this point in the program.Note: the instruction at this index is not necessarily a return, but the value it produces is treated as a return value for the sake of instrumentation. There can also be other return points if the child operation has early exits; this method returns the regular return point.
- Since:
- 24.2
-
getSourceSection
SourceSection getSourceSection()Gets the most concretesource locationassociated with the tag operation.- Since:
- 24.2
- See Also:
-
getSourceSections
SourceSection[] getSourceSections()Gets allsource locationsassociated with the tag operation, ordered from most to least concrete.- Since:
- 24.2
- See Also:
-