Package com.oracle.truffle.api.dsl
Class InlineSupport
java.lang.Object
com.oracle.truffle.api.dsl.InlineSupport
Contains classes to support node object inlining in Truffle. These classes are only needed if
manual node inlining is implemented. Typically Truffle DSL's
GenerateInline
takes care of
applying these APIs correctly. For manual usage see
InlinedBranchProfile
as an example.- Since:
- 23.0
- See Also:
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic final class
Represents a field for boolean primitives in inlined nodes.static final class
Represents a field for byte primitives in inlined nodes.static final class
Represents a field for char primitives in inlined nodes.static final class
Represents a field for double primitives in inlined nodes.static final class
Represents a field for float primitives in inlined nodes.static class
Base class for inlined field references.static final class
An inline targert for an inlinable node.static final class
Represents a field for int primitives in inlined nodes.static final class
Represents a field for long primitives in inlined nodes.static final class
Represents a field for references in inlined nodes.static @interface
Used to specify fields for node object inlining in inline methods for theinline target
.static @interface
Used to specify multipleInlineSupport.RequiredField
.static final class
Represents a field for short primitives in inlined nodes.static final class
Represents a field for updating state fields in inlined nodes.static @interface
Marks a field to be accessed with unsafe. -
Method Summary
Modifier and TypeMethodDescriptionstatic boolean
validate
(Node node, InlineSupport.InlinableField field0) Shortcut tovalidate
multiple inlinable fields.static boolean
validate
(Node node, InlineSupport.InlinableField field0, InlineSupport.InlinableField field1) Shortcut tovalidate
multiple inlinable fields.static boolean
validate
(Node node, InlineSupport.InlinableField field0, InlineSupport.InlinableField field1, InlineSupport.InlinableField... fields) Shortcut tovalidate
multiple inlinable fields.
-
Method Details
-
validate
public static boolean validate(Node node, InlineSupport.InlinableField field0, InlineSupport.InlinableField field1, InlineSupport.InlinableField... fields) Shortcut tovalidate
multiple inlinable fields.- Since:
- 23.0
-
validate
public static boolean validate(Node node, InlineSupport.InlinableField field0, InlineSupport.InlinableField field1) Shortcut tovalidate
multiple inlinable fields.- Since:
- 23.0
-
validate
Shortcut tovalidate
multiple inlinable fields.- Since:
- 23.0
-