Deprecated
Types
DoubleLocationinterface in com.oracle.truffle.api.object deprecated since 22.2DynamicObjectLibraryabstract class in com.oracle.truffle.api.object deprecated since 25.1DynamicObjectLibrary has been replaced by more lightweight DynamicObject nodes. Consult the javadoc of the individual messages for the corresponding API replacement, or see
DynamicObjectfor a list of new node-based APIs.DynamicObjectLibrarywill be removed in a future release.FinalLocationExceptionexception in com.oracle.truffle.api.object deprecated since 22.2IncompatibleLocationExceptionexception in com.oracle.truffle.api.object deprecated since 22.2IntLocationinterface in com.oracle.truffle.api.object deprecated since 22.2JSONHelperclass in com.oracle.truffle.api.utilities deprecated since 24.1.0This class is deprecated and will be removed in a future version.
NodeCostenum class in com.oracle.truffle.api.nodes deprecatedin 24.1 without replacement
Members
afterInstructionExecute(Instruction, Throwable)method in BytecodeDebugListener deprecated since 25.1no longer supported. Use
InstructionTracerinstead.asHostException(Throwable)method in TruffleLanguage.Env deprecated since 25.1Use asHostObject.
asHostObject(Object)method in TruffleLanguage.Env deprecated since 25.1Use asHostObject.
beforeInstructionExecute(Instruction)method in BytecodeDebugListener deprecated since 25.1no longer supported. Use
InstructionTracerinstead.cost()element in NodeInfo deprecatedin 24.1 without replacement
createContextLocal(TruffleInstrument.ContextLocalFactory)method in TruffleInstrument deprecatedcreateContextLocal(TruffleLanguage.ContextLocalFactory)method in TruffleLanguage deprecatedcreateContextThreadLocal(TruffleInstrument.ContextThreadLocalFactory)method in TruffleInstrument deprecatedcreateContextThreadLocal(TruffleLanguage.ContextThreadLocalFactory)method in TruffleLanguage deprecatedcreateDataInput(ByteBuffer)method in SerializationUtils deprecated since 25.1createThread(Runnable)method in TruffleLanguage.Env deprecatedUse
newTruffleThreadBuilder(Runnable)instead.createThread(Runnable, TruffleContext)method in TruffleLanguage.Env deprecatedUse
newTruffleThreadBuilder(Runnable)instead.createThread(Runnable, TruffleContext, ThreadGroup)method in TruffleLanguage.Env deprecatedUse
newTruffleThreadBuilder(Runnable)instead.createThread(Runnable, TruffleContext, …)method in TruffleLanguage.Env deprecatedUse
newTruffleThreadBuilder(Runnable)instead.deserialize(L, BytecodeConfig, …)method in BytecodeDescriptor deprecated since 25.7execute(TruffleStringIterator)method in TruffleStringIterator.NextNode deprecated since 25.0use
execute(TruffleStringIterator, Encoding)instead.execute(TruffleStringIterator)method in TruffleStringIterator.PreviousNode deprecated since 25.0use
execute(TruffleStringIterator, Encoding)instead.fillInStackTrace()method in SlowPathException deprecated since 19.0the method will become final in future releases.
FrameSlotTypeException()constructor in FrameSlotTypeException deprecateduse
create(int, FrameSlotKind, FrameSlotKind)insteadget(DynamicObject)method in Location deprecated since 22.2get(DynamicObject, boolean)method in Location deprecated since 22.2get(DynamicObject, Shape)method in Location deprecated since 22.2getCost()method in Node deprecatedin 24.1 without replacement
getDouble(DynamicObject, boolean)method in DoubleLocation deprecated since 22.2getInt(DynamicObject, boolean)method in IntLocation deprecated since 22.2getLanguage()method in TagTreeNode deprecated since 25.1Use
getLanguageId().getLanguage(Object)method in InteropLibrary deprecated since 25.1hasLanguage(Object)method in InteropLibrary deprecated since 25.1isCaptureFramesForTrace()method in RootNode deprecatedin 24.1, implement and use
isCaptureFramesForTrace(boolean)insteadisCaptureFramesForTrace(Node)method in RootNode deprecatedin 24.1, implement and use
isCaptureFramesForTrace(boolean)insteadisFinal()method in Location deprecated since 25.1Use
isAssumedFinal()instead or replace byfalse.isHostException(Throwable)method in TruffleLanguage.Env deprecated since 25.1Use
interopLibrary.isHostObject(obj) && interopLibrary.isException(obj).isHostFunction(Object)method in TruffleLanguage.Env deprecated since 25.1Use
interopLibrary.isHostObject(obj) && interopLibrary.isExecutable(obj) && !interopLibrary.hasMembers(obj)isHostObject(Object)method in TruffleLanguage.Env deprecated since 25.1Use isHostObject.
isHostSymbol(Object)method in TruffleLanguage.Env deprecated since 25.1Use
interopLibrary.isHostObject(obj) && interopLibrary.isScope(obj).isPolyglotEvalAllowed()method in TruffleLanguage.Env deprecatedin 24.1 use
isPolyglotEvalAllowed(null) instead. Note that language implementations should now check whether polyglot eval is allowed also for individual languages, as access could be denied only for an individual language.layout(Class)method in Shape.Builder deprecated since 24.2Use
layout(Class, MethodHandles.Lookup)instead.leaveAndEnter(Node, Supplier)method in TruffleContext deprecatedLibraryFactory(Class, List)constructor in LibraryFactory deprecatednew versions of the library generator won't use this constructor anymore
materializeUncached(AbstractTruffleString, TruffleString.Encoding)method in AbstractTruffleString deprecated since 25.1since 25.1, use
materializeUncached(Encoding)instead.needsAllEncodings()element in TruffleLanguage.Registration deprecated since 24.1To enable all
TruffleStringencodings, it is sufficient to add theorg.graalvm.shadowed.jcodingsmodule to the language's module-inforequiresand ensure it is on the module path when languages are loaded. If the module can be found, and at least one languages requires it, all encodings are automatically enabled. When languages are loaded from the class path (i.e. as an unnamed module), having jcodings on the class path is enough to enable it.nextUncached()method in TruffleStringIterator deprecated since 25.0use
nextUncached(Encoding)instead.pollOSRBackEdge(BytecodeOSRNode)method in BytecodeOSRNode deprecated since 25.0use
pollOSRBackEdge(BytecodeOSRNode, int)instead. It is recommended to batch up polls in the interpreter implementation. Important note:pollOSRBackEdge(BytecodeOSRNode)did implicitlypollTruffle safepoints. The new method is no longer doing that. Make sure your bytecode interpreter contains a call toTruffleSafepoint.poll(Node)on loop back-edges when migrating.previousUncached()method in TruffleStringIterator deprecated since 25.0use
previousUncached(Encoding)instead.readLine()method in ByteBufferDataInput deprecatedresolve(Class, String)method in Message deprecated since 25.1since 25.1, use
resolveExact(Class, String, Class...)instead. Since library messages can now be deprecated and replaced, they need to be resolved with argument types.resolve(Class, String, boolean)method in Message deprecated since 25.1since 25.1, use
resolveExact(Class, String, boolean, Class...)instead. Since library messages can now be deprecated and replaced, they need to be resolved with argument types.serialize(DataOutput, BytecodeSerializer)method in BytecodeRootNodes deprecated since 25.7serialize(DataOutput, BytecodeSerializer, BytecodeParser)method in BytecodeDescriptor deprecated since 25.7set(DynamicObject, Object, Shape)method in Location deprecated since 22.2setBlockedWithException(Node, TruffleSafepoint.Interrupter, …)method in TruffleSafepoint deprecatedsetDouble(DynamicObject, double, Shape)method in DoubleLocation deprecated since 22.2setInt(DynamicObject, int, Shape)method in IntLocation deprecated since 22.2TraceRewritesFilterFromCostfield in TruffleOptions deprecatedin 24.1 without replacement
TraceRewritesFilterToCostfield in TruffleOptions deprecatedin 24.1 without replacement