Record Class HostMethodInfo
java.lang.Object
java.lang.Record
com.oracle.truffle.compiler.HostMethodInfo
- Record Components:
isTruffleBoundary- specifies if the method is annotated byTruffleBoundaryisBytecodeInterpreterSwitch- specifies if the method is annotated byBytecodeInterpreterSwitch.isBytecodeInterpreterSwitchBoundary- specifies if the method is annotated byBytecodeInterpreterSwitchBoundaryisInliningCutoff- specifies if the method is annotated byInliningCutoff
public record HostMethodInfo(boolean isTruffleBoundary, boolean isBytecodeInterpreterSwitch, boolean isBytecodeInterpreterSwitchBoundary, boolean isInliningCutoff)
extends Record
TODO GR-44222 as soon as the annotation API is available in libgraal this can be moved to the
compiler implementation side.
-
Constructor Summary
ConstructorsConstructorDescriptionHostMethodInfo(boolean isTruffleBoundary, boolean isBytecodeInterpreterSwitch, boolean isBytecodeInterpreterSwitchBoundary, boolean isInliningCutoff) Creates an instance of aHostMethodInforecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanReturns the value of theisBytecodeInterpreterSwitchrecord component.booleanReturns the value of theisBytecodeInterpreterSwitchBoundaryrecord component.booleanReturns the value of theisInliningCutoffrecord component.booleanReturns the value of theisTruffleBoundaryrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HostMethodInfo
public HostMethodInfo(boolean isTruffleBoundary, boolean isBytecodeInterpreterSwitch, boolean isBytecodeInterpreterSwitchBoundary, boolean isInliningCutoff) Creates an instance of aHostMethodInforecord class.- Parameters:
isTruffleBoundary- the value for theisTruffleBoundaryrecord componentisBytecodeInterpreterSwitch- the value for theisBytecodeInterpreterSwitchrecord componentisBytecodeInterpreterSwitchBoundary- the value for theisBytecodeInterpreterSwitchBoundaryrecord componentisInliningCutoff- the value for theisInliningCutoffrecord component
-
-
Method Details
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared with thecomparemethod from their corresponding wrapper classes. -
isTruffleBoundary
public boolean isTruffleBoundary()Returns the value of theisTruffleBoundaryrecord component.- Returns:
- the value of the
isTruffleBoundaryrecord component
-
isBytecodeInterpreterSwitch
public boolean isBytecodeInterpreterSwitch()Returns the value of theisBytecodeInterpreterSwitchrecord component.- Returns:
- the value of the
isBytecodeInterpreterSwitchrecord component
-
isBytecodeInterpreterSwitchBoundary
public boolean isBytecodeInterpreterSwitchBoundary()Returns the value of theisBytecodeInterpreterSwitchBoundaryrecord component.- Returns:
- the value of the
isBytecodeInterpreterSwitchBoundaryrecord component
-
isInliningCutoff
public boolean isInliningCutoff()Returns the value of theisInliningCutoffrecord component.- Returns:
- the value of the
isInliningCutoffrecord component
-