Mercurial > hg > truffle
diff graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java @ 2570:46586c77b129
Cleaned some remaining references to scope/inlining
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Tue, 03 May 2011 10:19:11 +0200 |
parents | d524ad648049 |
children | 4a36a0bd6d18 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java Mon May 02 10:36:10 2011 -0700 +++ b/graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java Tue May 03 10:19:11 2011 +0200 @@ -214,7 +214,7 @@ if (syncHandler != null && syncHandler.stateBefore() != null) { // generate unlocking code if the exception handler is reachable - fillSyncHandler(rootMethodSynchronizedObject, syncHandler, false); + fillSyncHandler(rootMethodSynchronizedObject, syncHandler); } } @@ -332,7 +332,6 @@ ArrayList<ExceptionHandler> exceptionHandlers = new ArrayList<ExceptionHandler>(); FrameState stateBefore = x.stateBefore(); - int scopeCount = 0; assert stateBefore != null : "exception handler state must be available for " + x; FrameState state = stateBefore; @@ -343,7 +342,7 @@ for (ExceptionHandler handler : this.exceptionHandlers) { if (handler.covers(bci)) { // if the handler covers this bytecode index, add it to the list - if (addExceptionHandler(exceptionHandlers, handler, state, scopeCount)) { + if (addExceptionHandler(exceptionHandlers, handler, state)) { // if the handler was a default handler, we are done return exceptionHandlers; } @@ -365,7 +364,7 @@ * @param scopeCount * @return {@code true} if handler catches all exceptions (i.e. {@code handler.isCatchAll() == true}) */ - private boolean addExceptionHandler(ArrayList<ExceptionHandler> exceptionHandlers, ExceptionHandler handler, FrameState curState, int scopeCount) { + private boolean addExceptionHandler(ArrayList<ExceptionHandler> exceptionHandlers, ExceptionHandler handler, FrameState curState) { compilation.setHasExceptionHandlers(); BlockBegin entry = handler.entryBlock(); @@ -393,7 +392,6 @@ // clone exception handler ExceptionHandler newHandler = new ExceptionHandler(handler); newHandler.setPhiOperand(phiOperand); - newHandler.setScopeCount(scopeCount); exceptionHandlers.add(newHandler); // fill in exception handler subgraph lazily @@ -1244,7 +1242,7 @@ } } - private void fillSyncHandler(Value lock, BlockBegin syncHandler, boolean inlinedMethod) { + private void fillSyncHandler(Value lock, BlockBegin syncHandler) { BlockBegin origBlock = curBlock; MutableFrameState origState = curState; Instruction origLast = lastInstr;