comparison graal/GraalCompiler/src/com/sun/c1x/ir/BlockBegin.java @ 2735:d913f3049cee

Removed depth first number from BlockBegin.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Thu, 19 May 2011 17:45:00 +0200
parents 2ef23785ca93
children a3cd5eb68837
comparison
equal deleted inserted replaced
2734:e40c665e6f86 2735:d913f3049cee
105 * @param graph 105 * @param graph
106 */ 106 */
107 public BlockBegin(int bci, int blockID, Graph graph) { 107 public BlockBegin(int bci, int blockID, Graph graph) {
108 super(CiKind.Illegal, INPUT_COUNT, SUCCESSOR_COUNT, graph); 108 super(CiKind.Illegal, INPUT_COUNT, SUCCESSOR_COUNT, graph);
109 this.blockID = blockID; 109 this.blockID = blockID;
110 depthFirstNumber = -1;
111 linearScanNumber = -1; 110 linearScanNumber = -1;
112 this.bci = bci; 111 this.bci = bci;
113 } 112 }
114 113
115 /** 114 /**
124 return (List) Collections.unmodifiableList(predecessors()); 123 return (List) Collections.unmodifiableList(predecessors());
125 } 124 }
126 } 125 }
127 126
128 /** 127 /**
129 * Gets the depth first traversal number of this block.
130 * @return the depth first number
131 */
132 public int depthFirstNumber() {
133 return depthFirstNumber;
134 }
135
136 /**
137 * Gets the linear scan number of this block. 128 * Gets the linear scan number of this block.
138 * @return the linear scan number 129 * @return the linear scan number
139 */ 130 */
140 public int linearScanNumber() { 131 public int linearScanNumber() {
141 return linearScanNumber; 132 return linearScanNumber;
142 }
143
144 public void setDepthFirstNumber(int depthFirstNumber) {
145 assert depthFirstNumber >= 0;
146 this.depthFirstNumber = depthFirstNumber;
147 } 133 }
148 134
149 public void setLinearScanNumber(int linearScanNumber) { 135 public void setLinearScanNumber(int linearScanNumber) {
150 this.linearScanNumber = linearScanNumber; 136 this.linearScanNumber = linearScanNumber;
151 } 137 }