Mercurial > hg > graal-compiler
comparison graal/com.oracle.jvmci.hotspot/src/com/oracle/jvmci/hotspot/HotSpotOptions.java @ 21558:d563baeca9df
changed uses of Graal terminology to JVMCI (JBS:GRAAL-53)
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 27 May 2015 13:43:27 +0200 |
parents | b1530a6cce8c |
children | 47bebae7454f |
comparison
equal
deleted
inserted
replaced
21557:31fc2fce38f3 | 21558:d563baeca9df |
---|---|
31 import com.oracle.jvmci.runtime.*; | 31 import com.oracle.jvmci.runtime.*; |
32 | 32 |
33 //JaCoCo Exclude | 33 //JaCoCo Exclude |
34 | 34 |
35 /** | 35 /** |
36 * Sets Graal options from the HotSpot command line. Such options are distinguished by the | 36 * Sets JVMCI options from the HotSpot command line. Such options are distinguished by the |
37 * {@link #GRAAL_OPTION_PREFIX} prefix. | 37 * {@link #JVMCI_OPTION_PREFIX} prefix. |
38 */ | 38 */ |
39 public class HotSpotOptions { | 39 public class HotSpotOptions { |
40 | 40 |
41 private static final String GRAAL_OPTION_PREFIX = "-G:"; | 41 private static final String JVMCI_OPTION_PREFIX = "-G:"; |
42 | 42 |
43 /** | 43 /** |
44 * Parses the JVMCI specific options specified to HotSpot (e.g., on the command line). | 44 * Parses the JVMCI specific options specified to HotSpot (e.g., on the command line). |
45 * | 45 * |
46 * @param optionsParsedClass the {@link Class} for {@link OptionsParsed} | 46 * @param optionsParsedClass the {@link Class} for {@link OptionsParsed} |
79 break; | 79 break; |
80 case '-': | 80 case '-': |
81 option.setValue(Boolean.FALSE); | 81 option.setValue(Boolean.FALSE); |
82 break; | 82 break; |
83 case '?': | 83 case '?': |
84 OptionUtils.printFlags(options, GRAAL_OPTION_PREFIX); | 84 OptionUtils.printFlags(options, JVMCI_OPTION_PREFIX); |
85 break; | 85 break; |
86 case ' ': | 86 case ' ': |
87 OptionUtils.printNoMatchMessage(options, name, GRAAL_OPTION_PREFIX); | 87 OptionUtils.printNoMatchMessage(options, name, JVMCI_OPTION_PREFIX); |
88 break; | 88 break; |
89 case 'i': | 89 case 'i': |
90 option.setValue((int) primitiveValue); | 90 option.setValue((int) primitiveValue); |
91 break; | 91 break; |
92 case 'f': | 92 case 'f': |
108 * @param setter the object to notify of the parsed option and value. If null, the | 108 * @param setter the object to notify of the parsed option and value. If null, the |
109 * {@link OptionValue#setValue(Object)} method of the specified option is called | 109 * {@link OptionValue#setValue(Object)} method of the specified option is called |
110 * instead. | 110 * instead. |
111 */ | 111 */ |
112 public static boolean parseOption(String option, OptionConsumer setter) { | 112 public static boolean parseOption(String option, OptionConsumer setter) { |
113 return OptionUtils.parseOption(options, option, GRAAL_OPTION_PREFIX, setter); | 113 return OptionUtils.parseOption(options, option, JVMCI_OPTION_PREFIX, setter); |
114 } | 114 } |
115 } | 115 } |