Interface OptimizedAssumptionDependency

All Known Implementing Classes:
TruffleCompilerAssumptionDependency

public interface OptimizedAssumptionDependency
Represents some machine code whose validity depends on an assumption. Valid machine code can still be executed.
  • Method Summary

    Modifier and Type
    Method
    Description
    Gets the Truffle AST whose machine code is represented by this object.
    boolean
    Determines if the machine code referenced by this object is valid.
    void
    Called when a depended-on assumption is invalidated, with the intention to invalidate the machine code referenced by this object.
  • Method Details

    • onAssumptionInvalidated

      void onAssumptionInvalidated(Object source, CharSequence reason)
      Called when a depended-on assumption is invalidated, with the intention to invalidate the machine code referenced by this object.
    • isAlive

      boolean isAlive()
      Determines if the machine code referenced by this object is valid.
    • getCompilable

      default TruffleCompilable getCompilable()
      Gets the Truffle AST whose machine code is represented by this object. May be null.