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 classBuilder to generate aBytecodeConfigprogrammatically. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BytecodeConfigMaterialize all information.static final BytecodeConfigDo not materialize any source or instrumentation information.static final BytecodeConfigMaterialize source information. -
Method Summary
Modifier and TypeMethodDescriptionstatic BytecodeConfig.BuildernewBuilder(BytecodeConfigEncoder encoder) Produces a newBytecodeConfig.Builderthat 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.Builderthat 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
-