Mercurial > hg > graal-jvmci-8
diff graal/com.oracle.jvmci.hotspot/src/com/oracle/jvmci/hotspot/HotSpotMethod.java @ 21780:3d15183f3c93
Introduce Compiler interface in jvmci. Use it from jvmci.hotspot.CompilationTask
author | Gilles Duboscq <gilles.m.duboscq@oracle.com> |
---|---|
date | Wed, 03 Jun 2015 15:47:54 +0200 |
parents | f5b549811bac |
children |
line wrap: on
line diff
--- a/graal/com.oracle.jvmci.hotspot/src/com/oracle/jvmci/hotspot/HotSpotMethod.java Mon Jun 08 13:20:02 2015 +0200 +++ b/graal/com.oracle.jvmci.hotspot/src/com/oracle/jvmci/hotspot/HotSpotMethod.java Wed Jun 03 15:47:54 2015 +0200 @@ -27,9 +27,10 @@ import java.util.*; +import com.oracle.jvmci.debug.*; import com.oracle.jvmci.meta.*; -public abstract class HotSpotMethod implements JavaMethod, Formattable { +public abstract class HotSpotMethod implements JavaMethod, Formattable, JavaMethodContex { protected String name; @@ -60,4 +61,8 @@ String base = (flags & ALTERNATE) == ALTERNATE ? getName() : toString(); formatter.format(applyFormattingFlagsAndWidth(base, flags & ~ALTERNATE, width)); } + + public JavaMethod asJavaMethod() { + return this; + } }