# HG changeset patch # User ldayne # Date 1291395607 -3600 # Node ID f5908cceac7da4ebefcce58145007cf8f9f58851 # Parent cb04e4217df0b81c79c1a8677651dacb2fa22b66 Filled up the new hasCompiledCode method of the RiMethod interface. diff -r cb04e4217df0 -r f5908cceac7d c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotMethodResolved.java --- 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; diff -r cb04e4217df0 -r f5908cceac7d c1x4hotspotsrc/HotSpotVM/src/com/sun/hotspot/c1x/HotSpotMethodUnresolved.java --- 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;