public interface TruffleCompilationTask
| Modifier and Type | Method and Description |
|---|---|
default void |
addInlinedTarget(TruffleCompilable target)
To be used from the compiler side.
|
default void |
addTargetToDequeue(TruffleCompilable target)
Records the given target to be dequeued from the compilation queue at the end of the current
compilation.
|
default Map<String,Object> |
getDebugProperties(JavaConstant node)
Returns the debug properties of a truffle node constant or an empty map if there are no debug
properties.
|
default TruffleSourceLanguagePosition |
getPosition(JavaConstant node)
If
node represents an AST Node then return the nearest source information for it. |
boolean |
hasNextTier() |
boolean |
isCancelled()
Determines if this compilation has been cancelled.
|
default boolean |
isFirstTier()
Returns
true if this is a first tier compilation. |
boolean |
isLastTier()
Returns
true if this is a last tier compilation. |
default void |
setCallCounts(int total,
int inlined)
To be used from the compiler side.
|
default int |
tier() |
boolean isCancelled()
boolean isLastTier()
true if this is a last tier compilation.default boolean isFirstTier()
true if this is a first tier compilation.default int tier()
boolean hasNextTier()
default TruffleSourceLanguagePosition getPosition(JavaConstant node)
node represents an AST Node then return the nearest source information for it.
Otherwise simply return null.default Map<String,Object> getDebugProperties(JavaConstant node)
default void addTargetToDequeue(TruffleCompilable target)
default void setCallCounts(int total,
int inlined)
default void addInlinedTarget(TruffleCompilable target)
target - register this target as inlined.