Mercurial > hg > truffle
diff graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java @ 2731:a2f62de90c76
Removed unused optimization settings. Removed unused imports.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Thu, 19 May 2011 17:20:55 +0200 |
parents | e2d20fc3760f |
children | 2ef23785ca93 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java Thu May 19 17:17:22 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java Thu May 19 17:20:55 2011 +0200 @@ -37,7 +37,7 @@ import com.sun.cri.bytecode.*; import com.sun.cri.ci.*; import com.sun.cri.ri.*; -import com.sun.cri.ri.RiType.Representation; +import com.sun.cri.ri.RiType.*; /** * The {@code GraphBuilder} class parses the bytecode of a method and builds the IR graph. @@ -393,8 +393,6 @@ updateDispatchChain(dispatch.otherSuccessor(), mergedState, bci); } else if (dispatchEntry.next() instanceof Deoptimize) { // deoptimizing handler - Deoptimize deopt = (Deoptimize) dispatchEntry.next(); - //deopt.setStateBefore(mergedState.duplicate(bci)); dispatchEntry.end().setStateAfter(mergedState.duplicate(bci)); updateDispatchChain(dispatchEntry.end().blockSuccessor(0), mergedState, bci); } else if (dispatchEntry.next() instanceof Unwind) { @@ -880,23 +878,6 @@ return exact; } - private RiType getAssumedLeafType(RiType type) { - if (isFinal(type.accessFlags())) { - return type; - } - RiType assumed = null; - if (C1XOptions.UseAssumptions) { - assumed = type.uniqueConcreteSubtype(); - if (assumed != null) { - if (C1XOptions.PrintAssumptions) { - TTY.println("Recording concrete subtype assumption in context of " + type.name() + ": " + assumed.name()); - } - compilation.assumptions.recordConcreteSubtype(type, assumed); - } - } - return assumed; - } - private void callRegisterFinalizer() { Value receiver = frameState.loadLocal(0); RiType declaredType = receiver.declaredType();