Package com.oracle.truffle.api.nodes
Class ExecutionSignature
java.lang.Object
com.oracle.truffle.api.nodes.ExecutionSignature
Represents an execution signature of a
RootNode
. This is used to represent AOT
signatures.- Since:
- 20.3
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final ExecutionSignature
Returns a generic return profile where return and argument types are unknown. -
Method Summary
Modifier and TypeMethodDescriptionstatic ExecutionSignature
Creates a new execution signature of aRootNode
.Class<?>[]
Returns the argument types of the execution signature.Class
<?> Returns the return type of the execution signature.
-
Field Details
-
GENERIC
Returns a generic return profile where return and argument types are unknown.- Since:
- 20.3
-
-
Method Details
-
getArgumentTypes
Returns the argument types of the execution signature. The returned types may benull
to indicate that nothing is known about argument types. If the argument returns a non-null value then the length of the array will be used for the number of expected arguments. Each value of the return array specifies the expected argument type of the execution. If an argument type isnull
then this indicates that the argument type is unknown.- Since:
- 20.3
-
getReturnType
Returns the return type of the execution signature. The return type may benull
to indicate that the type is unknown.- Since:
- 20.3
-
create
Creates a new execution signature of aRootNode
. The return type or the argument types may be null to indicate that they are unknown. Individual argument type array values may also be null to indicate they are unknown.- Since:
- 20.3
-