Package com.oracle.truffle.api.utilities
package com.oracle.truffle.api.utilities
Various utility classes that aim to make the development of TruffleLanguage guest languages
easier.
We try to capture common language patterns in this package. Here is an overview of patterns that we have captured so far:
AssumedValue
speculates on global values to remain unchanged.CyclicAssumption
speculates on assumptions that might invalidate more often but are assumed to stabilize over time.
- Since:
- 0.8 or older
-
ClassDescriptionAssumedValue<T>A value that the compiler can assume is constant, but can be changed by invalidation.Holds an
Assumption
, and knows how to recreate it with the same properties on invalidation.Read-only bitset designed for partial evaluation.Deprecated.This class is deprecated and will be removed in a future version.This class contains mathematical methods that are not already provided byMath
that are generally useful for language implementations.Creates a new weak reference that is safe to be used in compiled code paths.