Mercurial > hg > truffle
diff graal/com.oracle.graal.java/src/com/oracle/graal/java/GraphBuilderPhase.java @ 18361:6ac7e9c85be6
Split getEncoding into two methods.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Wed, 12 Nov 2014 16:59:39 +0100 |
parents | 9619ba4daf4c |
children | 8971259db8ed |
line wrap: on
line diff
--- a/graal/com.oracle.graal.java/src/com/oracle/graal/java/GraphBuilderPhase.java Wed Nov 12 11:48:54 2014 +0100 +++ b/graal/com.oracle.graal.java/src/com/oracle/graal/java/GraphBuilderPhase.java Wed Nov 12 16:59:39 2014 +0100 @@ -32,7 +32,6 @@ import com.oracle.graal.api.code.*; import com.oracle.graal.api.meta.*; import com.oracle.graal.api.meta.ProfilingInfo.TriState; -import com.oracle.graal.api.meta.ResolvedJavaType.Representation; import com.oracle.graal.bytecode.*; import com.oracle.graal.compiler.common.*; import com.oracle.graal.compiler.common.calc.*; @@ -407,11 +406,10 @@ } /** - * @param representation * @param type */ @Override - protected void handleUnresolvedExceptionType(Representation representation, JavaType type) { + protected void handleUnresolvedExceptionType(JavaType type) { assert !graphBuilderConfig.eagerResolving(); append(DeoptimizeNode.create(InvalidateRecompile, Unresolved)); } @@ -1136,7 +1134,7 @@ private ValueNode synchronizedObject(HIRFrameStateBuilder state, ResolvedJavaMethod target) { if (target.isStatic()) { - return appendConstant(target.getDeclaringClass().getEncoding(Representation.JavaClass)); + return appendConstant(target.getDeclaringClass().getJavaClass()); } else { return state.loadLocal(0); } @@ -1256,7 +1254,7 @@ checkCast.setNext(catchSuccessor); append(IfNode.create(currentGraph.unique(InstanceOfNode.create((ResolvedJavaType) catchType, exception, null)), checkCast, nextDispatch, 0.5)); } else { - handleUnresolvedExceptionType(Representation.ObjectHub, catchType); + handleUnresolvedExceptionType(catchType); } }