Elide GraalVM25.6.0-elide.4
All types
Versions and modules

OperationProxy.Proxyable

Javaannotation interfacein com.oracle.truffle.api.bytecodesince 24.2

@Retention(CLASS)
@Target({TYPE})
public @interface OperationProxy.Proxyable
Enclosing type
OperationProxy

Designates a Node class as eligible for proxying.

Execute parameters are ordered as: optional frame when bindFrame() is enabled, BytecodeNode when bindBytecodeNode() is enabled, int when bindBytecodeIndex() is enabled, then evaluated arguments. Enabled bytecode node and index parameters are required on every execute method and are not specialization operands.

Specializations access metadata through @Bind: this metadata comes from execute arguments during AST execution and from current interpreter state during operation execution. Without bindBytecodeIndex, $bytecodeIndex is -1 during AST execution. Binding $bytecodeNode during AST execution without enabling bindBytecodeNode is a generation error.

Elements5

boolean bindFrame()

bindFrame

since 25.6
boolean bindFrame() default true

Whether to recognize an optional leading frame as execution metadata, accessible through @Bind("$frame") or a leading specialization parameter. When disabled, frame parameters are evaluated arguments.

Returns

boolean
whether to bind the frame; defaults to true

Default: true

boolean bindBytecodeNode()

bindBytecodeNode

since 25.6
boolean bindBytecodeNode() default false

Whether each execute method supplies a BytecodeNode metadata parameter for @Bind("$bytecodeNode"). See Proxyable for parameter order.

Returns

boolean
whether to bind the bytecode node; defaults to false

Default: false

boolean bindBytecodeIndex()

bindBytecodeIndex

since 25.6
boolean bindBytecodeIndex() default false

Whether each execute method supplies an int metadata parameter for @Bind("$bytecodeIndex"). See Proxyable for parameter order.

Returns

boolean
whether to bind the bytecode index; defaults to false

Default: false

boolean allowUncached()

allowUncached

since 24.2
boolean allowUncached() default false

Whether a proxyable node allows use for uncached. If uncached use is enabled, additional validations are performed to ensure the node supports uncached.

Returns

boolean
No description.

Default: false

boolean storeBytecodeIndex()

storeBytecodeIndex

since 25.1
boolean storeBytecodeIndex() default true

Whether to store the BCI before executing this operation. See Operation.storeBytecodeIndex() for mode-dependent defaults. When false, StoreBytecodeIndex enables storage for individual Specialization or Fallback methods.

Returns

boolean
whether to enable operation-level BCI storage

Default: true