Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/BlockBegin.java @ 2768:43ffa0e47a46
Towards removing stateAfter on BlockEnd.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Mon, 23 May 2011 19:21:53 +0200 |
parents | 99912abb3ff7 |
children | 27512ea6bbcb |
comparison
equal
deleted
inserted
replaced
2767:cc2b98e2b832 | 2768:43ffa0e47a46 |
---|---|
71 /** | 71 /** |
72 * A unique id used in tracing. | 72 * A unique id used in tracing. |
73 */ | 73 */ |
74 public final int blockID; | 74 public final int blockID; |
75 | 75 |
76 public final boolean isLoopHeader; | |
76 private int linearScanNumber; | 77 private int linearScanNumber; |
77 | 78 |
78 /** | 79 /** |
79 * Index of bytecode that generated this node when appended in a basic block. | 80 * Index of bytecode that generated this node when appended in a basic block. |
80 * Negative values indicate special cases. | 81 * Negative values indicate special cases. |
85 * Constructs a new BlockBegin at the specified bytecode index. | 86 * Constructs a new BlockBegin at the specified bytecode index. |
86 * @param bci the bytecode index of the start | 87 * @param bci the bytecode index of the start |
87 * @param blockID the ID of the block | 88 * @param blockID the ID of the block |
88 * @param graph | 89 * @param graph |
89 */ | 90 */ |
90 public BlockBegin(int bci, int blockID, Graph graph) { | 91 public BlockBegin(int bci, int blockID, boolean isLoopHeader, Graph graph) { |
91 super(CiKind.Illegal, INPUT_COUNT, SUCCESSOR_COUNT, graph); | 92 super(CiKind.Illegal, INPUT_COUNT, SUCCESSOR_COUNT, graph); |
92 this.blockID = blockID; | 93 this.blockID = blockID; |
93 linearScanNumber = -1; | 94 linearScanNumber = -1; |
94 this.bci = bci; | 95 this.bci = bci; |
96 this.isLoopHeader = isLoopHeader; | |
95 } | 97 } |
96 | 98 |
97 /** | 99 /** |
98 * Gets the list of predecessors of this block. | 100 * Gets the list of predecessors of this block. |
99 * @return the predecessor list | 101 * @return the predecessor list |