Package com.oracle.truffle.api.bytecode
Class BytecodeConfig
java.lang.Object
com.oracle.truffle.api.bytecode.BytecodeConfig
The configuration to use while generating bytecode. To reduce interpreter footprint, source
sections and instrumentation information can be lazily re-parsed when it is needed.
- Since:
- 24.2
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classBuilder to generate aBytecodeConfigprogrammatically. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final BytecodeConfigRetain all information.static final BytecodeConfigRetain no sources or instrumentation information.static final BytecodeConfigRetain 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
Retain no sources or instrumentation information.- Since:
- 24.2
-
WITH_SOURCE
Retain source information.- Since:
- 24.2
-
COMPLETE
Retain all information.- Since:
- 24.2
-
-
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
-