Mercurial > hg > graal-compiler
diff graal/GraalCompiler/src/com/sun/c1x/ir/Instruction.java @ 2716:c1a9bf38da28
Removed bci from the Instruction class.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Thu, 19 May 2011 13:59:55 +0200 |
parents | 3ac3dd97d8df |
children | bfcdda4fdd73 |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/Instruction.java Thu May 19 13:21:31 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/Instruction.java Thu May 19 13:59:55 2011 +0200 @@ -71,12 +71,6 @@ public static final int SYNCHRONIZATION_ENTRY_BCI = -1; - /** - * Index of bytecode that generated this node when appended in a basic block. - * Negative values indicate special cases. - */ - private int bci; - private boolean isAppended = false; /** @@ -91,23 +85,6 @@ } /** - * Gets the bytecode index of this instruction. - * @return the bytecode index of this instruction - */ - public final int bci() { - return bci; - } - - /** - * Sets the bytecode index of this instruction. - * @param bci the new bytecode index for this instruction - */ - public final void setBCI(int bci) { - assert bci >= 0 || bci == SYNCHRONIZATION_ENTRY_BCI; - this.bci = bci; - } - - /** * Checks whether this instruction has already been added to its basic block. * @return {@code true} if this instruction has been added to the basic block containing it */ @@ -123,11 +100,10 @@ * @param bci the bytecode index of the next instruction * @return the new next instruction */ - public final Instruction appendNext(Instruction next, int bci) { + public final Instruction appendNext(Instruction next) { setNext(next); if (next != null) { assert !(this instanceof BlockEnd); - next.setBCI(bci); next.isAppended = true; } return next; @@ -135,7 +111,6 @@ @Override public BlockBegin block() { - // TODO(tw): Make this more efficient. Instruction cur = this; while (!(cur instanceof BlockEnd)) { cur = cur.next();