Class HotSpotOptimizedCallTarget

java.lang.Object
com.oracle.truffle.runtime.OptimizedCallTarget
com.oracle.truffle.runtime.hotspot.HotSpotOptimizedCallTarget
All Implemented Interfaces:
com.oracle.truffle.api.CallTarget, com.oracle.truffle.api.ReplaceObserver, com.oracle.truffle.api.RootCallTarget, com.oracle.truffle.compiler.TruffleCompilable

public final class HotSpotOptimizedCallTarget extends OptimizedCallTarget
A HotSpot specific OptimizedCallTarget whose machine code (if any) is represented by an associated InstalledCode.
  • Constructor Details

    • HotSpotOptimizedCallTarget

      public HotSpotOptimizedCallTarget(OptimizedCallTarget sourceCallTarget, com.oracle.truffle.api.nodes.RootNode rootNode)
    • HotSpotOptimizedCallTarget

      public HotSpotOptimizedCallTarget(EngineData engine)
  • Method Details

    • setInstalledCode

      public void setInstalledCode(jdk.vm.ci.code.InstalledCode code)
      This method may only be called during compilation, and only by the compiling thread.
    • isValid

      public boolean isValid()
      Description copied from class: OptimizedCallTarget
      Determines if this call target has valid machine code that can be entered attached to it.
      Specified by:
      isValid in class OptimizedCallTarget
    • isValidLastTier

      public boolean isValidLastTier()
      Description copied from class: OptimizedCallTarget
      Determines if this call target has valid machine code attached to it, and that this code was compiled in the last tier.
      Specified by:
      isValidLastTier in class OptimizedCallTarget
    • getCodeAddress

      public long getCodeAddress()
      Description copied from class: OptimizedCallTarget
      Gets the address of the machine code for this call target. A non-zero return value denotes the contiguous memory block containing the machine code but does not necessarily represent an entry point for the machine code or even the address of executable instructions. This value is only for informational purposes (e.g., use in a log message).
      Specified by:
      getCodeAddress in class OptimizedCallTarget
    • getCompilationSpeculationLog

      public jdk.vm.ci.meta.SpeculationLog getCompilationSpeculationLog()