comparison graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java @ 2791:6d14aa4fbf90

Gotos removed (except for exception dispatch chains and edge splitting).
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 25 May 2011 20:03:05 +0200
parents 50677668afe3
children d3fc4fe063bf
comparison
equal deleted inserted replaced
2790:50677668afe3 2791:6d14aa4fbf90
419 ExceptionObject exception = new ExceptionObject(graph); 419 ExceptionObject exception = new ExceptionObject(graph);
420 entry.appendNext(exception); 420 entry.appendNext(exception);
421 FrameState stateWithException = entryState.duplicateModified(bci, CiKind.Void, exception); 421 FrameState stateWithException = entryState.duplicateModified(bci, CiKind.Void, exception);
422 422
423 Instruction successor = createTarget(dispatchBlock, stateWithException); 423 Instruction successor = createTarget(dispatchBlock, stateWithException);
424 //exception.appendNext(successor);
425 BlockEnd end = new Goto(successor, graph); 424 BlockEnd end = new Goto(successor, graph);
426 exception.appendNext(end); 425 exception.appendNext(end);
427 426
428 if (x instanceof Invoke) { 427 if (x instanceof Invoke) {
429 ((Invoke) x).setExceptionEdge(entry); 428 ((Invoke) x).setExceptionEdge(entry);