Mercurial > hg > truffle
changeset 1474:f5908cceac7d
Filled up the new hasCompiledCode method of the RiMethod interface.
author | ldayne <Laurent.Daynes@oracle.com> |
---|---|
date | Fri, 03 Dec 2010 18:00:07 +0100 |
parents | cb04e4217df0 |
children | ace6e55373eb |
files | c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotMethodResolved.java c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotMethodUnresolved.java |
diffstat | 2 files changed, 10 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotMethodResolved.java Tue Nov 30 15:13:57 2010 +0100 +++ b/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotMethodResolved.java Fri Dec 03 18:00:07 2010 +0100 @@ -173,6 +173,12 @@ return "HotSpotMethod<" + holder().name() + ". " + name + ">"; } + public boolean hasCompiledCode() { + // TODO: needs a VMEntries to go cache the result of that method. + // This isn't used by GRAAL for now, so this is enough. + return false; + } + @Override public Class<?> accessor() { return null;
--- a/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotMethodUnresolved.java Tue Nov 30 15:13:57 2010 +0100 +++ b/c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotMethodUnresolved.java Fri Dec 03 18:00:07 2010 +0100 @@ -143,6 +143,10 @@ return "HotSpotMethod<" + holder.name() + ". " + name + ", unresolved>"; } + public boolean hasCompiledCode() { + return false; + } + @Override public Class<?> accessor() { return null;