Class BytecodeConfig
java.lang.Object
com.oracle.truffle.api.bytecode.BytecodeConfig
The configuration to use while generating bytecode. The configuration determines what optional
information (source sections, instrumentation instructions, etc.) should be materialized during
parsing. The interpreter memory footprint can be improved by omitting this information by default
and lazily re-parsing it when it is needed.
- Since:
- 24.2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder to generate aBytecodeConfig
programmatically. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BytecodeConfig
Materialize all information.static final BytecodeConfig
Do not materialize any source or instrumentation information.static final BytecodeConfig
Materialize source information. -
Method Summary
Modifier and TypeMethodDescriptionstatic BytecodeConfig.Builder
newBuilder
(BytecodeConfigEncoder encoder) Produces a newBytecodeConfig.Builder
that can be used to programmatically build aBytecodeConfig
.
-
Field Details
-
DEFAULT
Do not materialize any source or instrumentation information.- Since:
- 24.2
-
WITH_SOURCE
-
COMPLETE
-
-
Method Details
-
newBuilder
Produces a newBytecodeConfig.Builder
that can be used to programmatically build aBytecodeConfig
.Note this method is not intended to be used directly. Use the generated method, for example
MyBytecodeRootNodeGen.newConfigBuilder()
instead.- Since:
- 24.2
-