Interface TruffleCompilationTask
public interface TruffleCompilationTask
A handle to a compilation task managed by the Truffle runtime.
-
Method Summary
Modifier and TypeMethodDescriptiondefault voidaddInlinedTarget(TruffleCompilable target) To be used from the compiler side.default voidaddTargetToDequeue(TruffleCompilable target) Records the given target to be dequeued from the compilation queue at the end of the current compilation.getDebugProperties(jdk.vm.ci.meta.JavaConstant node) Returns the debug properties of a truffle node constant or an empty map if there are no debug properties.default TruffleSourceLanguagePositiongetPosition(jdk.vm.ci.meta.JavaConstant node) Ifnoderepresents an AST Node then return the nearest source information for it.booleanbooleanDetermines if this compilation has been cancelled.default booleanReturnstrueif this is a first tier compilation.booleanReturnstrueif this is a last tier compilation.default voidsetCallCounts(int total, int inlined) To be used from the compiler side.default inttier()
-
Method Details
-
isCancelled
boolean isCancelled()Determines if this compilation has been cancelled. -
isLastTier
boolean isLastTier()Returnstrueif this is a last tier compilation. -
isFirstTier
default boolean isFirstTier()Returnstrueif this is a first tier compilation. -
tier
default int tier() -
hasNextTier
boolean hasNextTier() -
getPosition
Ifnoderepresents an AST Node then return the nearest source information for it. Otherwise simply return null. -
getDebugProperties
-
addTargetToDequeue
Records the given target to be dequeued from the compilation queue at the end of the current compilation. -
setCallCounts
default void setCallCounts(int total, int inlined) To be used from the compiler side. Sets how many calls in total are in the related compilation unit, and how many of those were inlined. -
addInlinedTarget
To be used from the compiler side.- Parameters:
target- register this target as inlined.
-