package org.graalvm.compiler.hotspot;
import java.util.*;
import org.graalvm.compiler.options.*;
public class HotSpotBackend_OptionDescriptors implements OptionDescriptors {
@Override
public OptionDescriptor get(String value) {
switch (value) {
case "ASMInstructionProfiling": {
return OptionDescriptor.create(
"ASMInstructionProfiling",
String.class,
"Enables instruction profiling on assembler level. Valid values are a comma separated list of supported instructions. Compare with subclasses of Assembler.InstructionCounter.",
HotSpotBackend.Options.class,
"ASMInstructionProfiling",
HotSpotBackend.Options.ASMInstructionProfiling);
}
case "GraalArithmeticStubs": {
return OptionDescriptor.create(
"GraalArithmeticStubs",
Boolean.class,
"Use Graal arithmetic stubs instead of HotSpot stubs where possible",
HotSpotBackend.Options.class,
"GraalArithmeticStubs",
HotSpotBackend.Options.GraalArithmeticStubs);
}
}
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("ASMInstructionProfiling");
case 1: return get("GraalArithmeticStubs");
}
throw new NoSuchElementException();
}
};
}
}