com.oracle.truffle.polyglot.PolyglotEngineOptionsOptionDescriptors Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of truffle-api Show documentation
Show all versions of truffle-api Show documentation
Truffle is a multi-language framework for executing dynamic languages
that achieves high performance when combined with Graal.
// CheckStyle: start generated
package com.oracle.truffle.polyglot;
import com.oracle.truffle.api.dsl.GeneratedBy;
import java.util.Arrays;
import java.util.Iterator;
import org.graalvm.options.OptionCategory;
import org.graalvm.options.OptionDescriptor;
import org.graalvm.options.OptionDescriptors;
import org.graalvm.options.OptionStability;
@GeneratedBy(PolyglotEngineOptions.class)
final class PolyglotEngineOptionsOptionDescriptors implements OptionDescriptors {
@Override
public OptionDescriptor get(String optionName) {
switch (optionName) {
case "engine.InstrumentExceptionsAreThrown" :
return OptionDescriptor.newBuilder(PolyglotEngineOptions.InstrumentExceptionsAreThrown, "engine.InstrumentExceptionsAreThrown").deprecated(false).help("Propagates exceptions thrown by instruments.").category(OptionCategory.INTERNAL).stability(OptionStability.EXPERIMENTAL).build();
case "engine.PreinitializeContexts" :
return OptionDescriptor.newBuilder(PolyglotEngineOptions.PreinitializeContexts, "engine.PreinitializeContexts").deprecated(true).deprecationMessage("").help("Preinitialize language contexts for given languages.").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build();
case "engine.ShowInternalStackFrames" :
return OptionDescriptor.newBuilder(PolyglotEngineOptions.ShowInternalStackFrames, "engine.ShowInternalStackFrames").deprecated(false).help("Show internal frames specific to the language implementation in stack traces.").category(OptionCategory.INTERNAL).stability(OptionStability.EXPERIMENTAL).build();
case "engine.SpecializationStatistics" :
return OptionDescriptor.newBuilder(PolyglotEngineOptions.SpecializationStatistics, "engine.SpecializationStatistics").deprecated(false).help("Enables specialization statistics for nodes generated with Truffle DSL and prints the result on exit. In order for this flag to be functional -Atruffle.dsl.GenerateSpecializationStatistics=true needs to be set at build time.Enabling this flag and the compiler option has major implications on the performance and footprint of the interpreter.Do not use in production environments.").category(OptionCategory.INTERNAL).stability(OptionStability.EXPERIMENTAL).build();
case "engine.UseConservativeContextReferences" :
return OptionDescriptor.newBuilder(PolyglotEngineOptions.UseConservativeContextReferences, "engine.UseConservativeContextReferences").deprecated(false).help("Enables conservative context references. This allows invalid sharing between contexts. For testing purposes only.").category(OptionCategory.INTERNAL).stability(OptionStability.EXPERIMENTAL).build();
}
return null;
}
@Override
public Iterator iterator() {
return Arrays.asList(
OptionDescriptor.newBuilder(PolyglotEngineOptions.InstrumentExceptionsAreThrown, "engine.InstrumentExceptionsAreThrown").deprecated(false).help("Propagates exceptions thrown by instruments.").category(OptionCategory.INTERNAL).stability(OptionStability.EXPERIMENTAL).build(),
OptionDescriptor.newBuilder(PolyglotEngineOptions.PreinitializeContexts, "engine.PreinitializeContexts").deprecated(true).deprecationMessage("").help("Preinitialize language contexts for given languages.").category(OptionCategory.EXPERT).stability(OptionStability.EXPERIMENTAL).build(),
OptionDescriptor.newBuilder(PolyglotEngineOptions.ShowInternalStackFrames, "engine.ShowInternalStackFrames").deprecated(false).help("Show internal frames specific to the language implementation in stack traces.").category(OptionCategory.INTERNAL).stability(OptionStability.EXPERIMENTAL).build(),
OptionDescriptor.newBuilder(PolyglotEngineOptions.SpecializationStatistics, "engine.SpecializationStatistics").deprecated(false).help("Enables specialization statistics for nodes generated with Truffle DSL and prints the result on exit. In order for this flag to be functional -Atruffle.dsl.GenerateSpecializationStatistics=true needs to be set at build time.Enabling this flag and the compiler option has major implications on the performance and footprint of the interpreter.Do not use in production environments.").category(OptionCategory.INTERNAL).stability(OptionStability.EXPERIMENTAL).build(),
OptionDescriptor.newBuilder(PolyglotEngineOptions.UseConservativeContextReferences, "engine.UseConservativeContextReferences").deprecated(false).help("Enables conservative context references. This allows invalid sharing between contexts. For testing purposes only.").category(OptionCategory.INTERNAL).stability(OptionStability.EXPERIMENTAL).build())
.iterator();
}
}