# HG changeset patch # User Thomas Wuerthinger # Date 1338561109 -7200 # Node ID 044502e7b5a444b056037d6c4ecc7d4efa399ceb # Parent e1f45fcddb4978874d5e9c0f386753bb3023635a Small clean up on RiRuntime. diff -r e1f45fcddb49 -r 044502e7b5a4 graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/ri/HotSpotRuntime.java --- a/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/ri/HotSpotRuntime.java Fri May 25 20:23:24 2012 +0200 +++ b/graal/com.oracle.graal.hotspot/src/com/oracle/graal/hotspot/ri/HotSpotRuntime.java Fri Jun 01 16:31:49 2012 +0200 @@ -197,11 +197,6 @@ } @Override - public boolean isExceptionType(RiResolvedType type) { - return type.isSubtypeOf((RiResolvedType) compiler.getCompilerToVM().getType(Throwable.class)); - } - - @Override public int sizeOfLockData() { // TODO shouldn't be hard coded return 8; @@ -237,16 +232,6 @@ } @Override - public Class asJavaClass(CiConstant c) { - return (Class) c.asObject(); - } - - @Override - public Object asJavaObject(CiConstant c) { - return c.asObject(); - } - - @Override public void lower(Node n, CiLoweringTool tool) { StructuredGraph graph = (StructuredGraph) n.graph(); diff -r e1f45fcddb49 -r 044502e7b5a4 graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiRuntime.java --- a/graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiRuntime.java Fri May 25 20:23:24 2012 +0200 +++ b/graal/com.oracle.max.cri/src/com/oracle/max/cri/ri/RiRuntime.java Fri Jun 01 16:31:49 2012 +0200 @@ -69,11 +69,6 @@ RiResolvedType getType(Class clazz); /** - * Returns true if the given type is a subtype of java/lang/Throwable. - */ - boolean isExceptionType(RiResolvedType type); - - /** * Used by the canonicalizer to compare objects, since a given runtime might not want to expose the real objects to the compiler. * * @return true if the two parameters represent the same runtime object, false otherwise @@ -108,20 +103,6 @@ int getArrayLength(CiConstant array); /** - * Converts the given CiConstant object to a object. - * - * @return {@code null} if the conversion is not possible OR {@code c.isNull() == true} - */ - Object asJavaObject(CiConstant c); - - /** - * Converts the given CiConstant object to a {@link Class} object. - * - * @return {@code null} if the conversion is not possible. - */ - Class asJavaClass(CiConstant c); - - /** * Performs any runtime-specific conversion on the object used to describe the target of a call. */ Object asCallTarget(Object target);