Mercurial > hg > graal-compiler
comparison graal/GraalCompiler/src/com/sun/c1x/ir/ComputeLinearScanOrder.java @ 2773:27512ea6bbcb
exception dispatch simplification:
* BlockMap creates exception dispatch blocks (so they're iterated in the right order)
* GraphBuilder uses exception dispatch blocks, simplified handleException, removed updateDispatchChain
* simplified mergeOrClone
* removed successor & predecessor methods from BlockBegin
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Tue, 24 May 2011 12:07:17 +0200 |
parents | 03b80fb10ae9 |
children | 2ac7b30b7290 |
comparison
equal
deleted
inserted
replaced
2772:3e3338a1abb9 | 2773:27512ea6bbcb |
---|---|
175 } | 175 } |
176 } | 176 } |
177 | 177 |
178 private int computeWeight(BlockBegin cur) { | 178 private int computeWeight(BlockBegin cur) { |
179 BlockBegin singleSux = null; | 179 BlockBegin singleSux = null; |
180 if (cur.numberOfSux() == 1) { | 180 BlockEnd end = cur.end(); |
181 singleSux = cur.suxAt(0); | 181 if (end.blockSuccessorCount() == 1) { |
182 singleSux = end.blockSuccessor(0); | |
182 } | 183 } |
183 | 184 |
184 // limit loop-depth to 15 bit (only for security reason, it will never be so big) | 185 // limit loop-depth to 15 bit (only for security reason, it will never be so big) |
185 int loopDepth = 0; // TODO(tw): Assign loop depth | 186 int loopDepth = 0; // TODO(tw): Assign loop depth |
186 int weight = (loopDepth & 0x7FFF) << 16; | 187 int weight = (loopDepth & 0x7FFF) << 16; |