10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 package jdk.vm.ci.hotspot; 24 25 import java.lang.reflect.Modifier; 26 27 import jdk.vm.ci.meta.JavaMethod; 28 import jdk.vm.ci.meta.ResolvedJavaMethod; 29 import jdk.vm.ci.meta.ResolvedJavaType; 30 import jdk.vm.ci.options.Option; 31 import jdk.vm.ci.options.OptionType; 32 import jdk.vm.ci.options.OptionValue; 33 34 /** 35 * Implementation of {@link JavaMethod} for resolved HotSpot methods. 36 */ 37 public interface HotSpotResolvedJavaMethod extends ResolvedJavaMethod { 38 39 public static class Options { 40 // @formatter:off 41 @Option(help = "", type = OptionType.Debug) 42 public static final OptionValue<Boolean> UseProfilingInformation = new OptionValue<>(true); 43 // @formatter:on 44 } 45 46 /** 47 * Returns true if this method has a {@code CallerSensitive} annotation. 48 * 49 * @return true if CallerSensitive annotation present, false otherwise 50 */ 51 boolean isCallerSensitive(); 52 53 HotSpotResolvedObjectType getDeclaringClass(); 54 55 /** 56 * Returns true if this method has a {@code ForceInline} annotation. 57 * 58 * @return true if ForceInline annotation present, false otherwise 59 */ 60 boolean isForceInline(); 61 62 /** 63 * Returns true if this method has a {@code DontInline} annotation. 64 * 65 * @return true if DontInline annotation present, false otherwise | 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 */ 23 package jdk.vm.ci.hotspot; 24 25 import java.lang.reflect.Modifier; 26 27 import jdk.vm.ci.meta.JavaMethod; 28 import jdk.vm.ci.meta.ResolvedJavaMethod; 29 import jdk.vm.ci.meta.ResolvedJavaType; 30 31 /** 32 * Implementation of {@link JavaMethod} for resolved HotSpot methods. 33 */ 34 public interface HotSpotResolvedJavaMethod extends ResolvedJavaMethod { 35 36 /** 37 * Returns true if this method has a {@code CallerSensitive} annotation. 38 * 39 * @return true if CallerSensitive annotation present, false otherwise 40 */ 41 boolean isCallerSensitive(); 42 43 HotSpotResolvedObjectType getDeclaringClass(); 44 45 /** 46 * Returns true if this method has a {@code ForceInline} annotation. 47 * 48 * @return true if ForceInline annotation present, false otherwise 49 */ 50 boolean isForceInline(); 51 52 /** 53 * Returns true if this method has a {@code DontInline} annotation. 54 * 55 * @return true if DontInline annotation present, false otherwise |