package org.graalvm.compiler.hotspot;
import java.util.*;
import org.graalvm.compiler.options.*;
import org.graalvm.compiler.options.OptionType;
public class HotSpotGraalCompilerFactory_OptionDescriptors implements OptionDescriptors {
@Override
public OptionDescriptor get(String value) {
switch (value) {
case "CompileGraalWithC1Only": {
return OptionDescriptor.create(
"CompileGraalWithC1Only",
OptionType.Expert,
Boolean.class,
"In tiered mode compile Graal and JVMCI using optimized first tier code.",
HotSpotGraalCompilerFactory.Options.class,
"CompileGraalWithC1Only",
HotSpotGraalCompilerFactory.Options.CompileGraalWithC1Only);
}
case "GraalCompileOnly": {
return OptionDescriptor.create(
"GraalCompileOnly",
OptionType.Expert,
String.class,
"A filter applied to a method the VM has selected for compilation by Graal. A method not matching the filter is redirected to a lower tier compiler. The filter format is the same as for the MethodFilter option.",
HotSpotGraalCompilerFactory.Options.class,
"GraalCompileOnly",
HotSpotGraalCompilerFactory.Options.GraalCompileOnly);
}
}
return null;
}
@Override
public Iterator<OptionDescriptor> iterator() {
return new Iterator<OptionDescriptor>() {
int i = 0;
@Override
public boolean hasNext() {
return i < 2;
}
@Override
public OptionDescriptor next() {
switch (i++) {
case 0: return get("CompileGraalWithC1Only");
case 1: return get("GraalCompileOnly");
}
throw new NoSuchElementException();
}
};
}
}