Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/ir/BlockBegin.java @ 2727:1ddcbcd33325
Clean up.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Thu, 19 May 2011 17:04:30 +0200 |
parents | 819a40e46826 |
children | 7e470e1cd3b6 |
comparison
equal
deleted
inserted
replaced
2726:819a40e46826 | 2727:1ddcbcd33325 |
---|---|
113 public BlockBegin(int bci, int blockID, Graph graph) { | 113 public BlockBegin(int bci, int blockID, Graph graph) { |
114 super(CiKind.Illegal, INPUT_COUNT, SUCCESSOR_COUNT, graph); | 114 super(CiKind.Illegal, INPUT_COUNT, SUCCESSOR_COUNT, graph); |
115 this.blockID = blockID; | 115 this.blockID = blockID; |
116 depthFirstNumber = -1; | 116 depthFirstNumber = -1; |
117 linearScanNumber = -1; | 117 linearScanNumber = -1; |
118 setBCI(bci); | 118 this.bci = bci; |
119 } | 119 } |
120 | 120 |
121 /** | 121 /** |
122 * Gets the list of predecessors of this block. | 122 * Gets the list of predecessors of this block. |
123 * @return the predecessor list | 123 * @return the predecessor list |
228 * Gets the bytecode index of this instruction. | 228 * Gets the bytecode index of this instruction. |
229 * @return the bytecode index of this instruction | 229 * @return the bytecode index of this instruction |
230 */ | 230 */ |
231 public int bci() { | 231 public int bci() { |
232 return bci; | 232 return bci; |
233 } | |
234 | |
235 /** | |
236 * Sets the bytecode index of this instruction. | |
237 * @param bci the new bytecode index for this instruction | |
238 */ | |
239 public void setBCI(int bci) { | |
240 this.bci = bci; | |
241 } | 233 } |
242 | 234 |
243 private void iterate(IdentityHashMap<BlockBegin, BlockBegin> mark, BlockClosure closure) { | 235 private void iterate(IdentityHashMap<BlockBegin, BlockBegin> mark, BlockClosure closure) { |
244 if (!mark.containsKey(this)) { | 236 if (!mark.containsKey(this)) { |
245 mark.put(this, this); | 237 mark.put(this, this); |