Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/graph/GraphBuilder.java @ 2718:c1ce2a53d6c3
Attempt to remove dependency between backend and BlockBegin.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Thu, 19 May 2011 16:05:42 +0200 |
parents | c1a9bf38da28 |
children | e2d20fc3760f |
comparison
equal
deleted
inserted
replaced
2717:bd85cf08720a | 2718:c1ce2a53d6c3 |
---|---|
161 blockList[block.startBci] = blockBegin; | 161 blockList[block.startBci] = blockBegin; |
162 } | 162 } |
163 | 163 |
164 | 164 |
165 // 1. create the start block | 165 // 1. create the start block |
166 ir.startBlock = new BlockBegin(0, ir.nextBlockNumber(), graph); | 166 BlockBegin startBlock = new BlockBegin(0, ir.nextBlockNumber(), graph); |
167 BlockBegin startBlock = ir.startBlock; | |
168 graph.root().setStart(startBlock); | 167 graph.root().setStart(startBlock); |
169 curBlock = startBlock; | 168 curBlock = startBlock; |
170 | 169 |
171 RiExceptionHandler[] handlers = rootMethod.exceptionHandlers(); | 170 RiExceptionHandler[] handlers = rootMethod.exceptionHandlers(); |
172 if (handlers != null && handlers.length > 0) { | 171 if (handlers != null && handlers.length > 0) { |