Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/value/FrameStateBuilder.java @ 2768:43ffa0e47a46
Towards removing stateAfter on BlockEnd.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Mon, 23 May 2011 19:21:53 +0200 |
parents | 5e8a69041cd7 |
children | 056e392d63d4 |
comparison
equal
deleted
inserted
replaced
2767:cc2b98e2b832 | 2768:43ffa0e47a46 |
---|---|
116 /** | 116 /** |
117 * Pushes a value onto the stack without checking the type. | 117 * Pushes a value onto the stack without checking the type. |
118 * @param x the instruction to push onto the stack | 118 * @param x the instruction to push onto the stack |
119 */ | 119 */ |
120 public void xpush(Value x) { | 120 public void xpush(Value x) { |
121 assert x == null || !x.isDeleted(); | |
121 stack[stackIndex++] = x; | 122 stack[stackIndex++] = x; |
122 } | 123 } |
123 | 124 |
124 /** | 125 /** |
125 * Pushes a value onto the stack and checks that it is an int. | 126 * Pushes a value onto the stack and checks that it is an int. |
202 /** | 203 /** |
203 * Pops a value off of the stack without checking the type. | 204 * Pops a value off of the stack without checking the type. |
204 * @return x the instruction popped off the stack | 205 * @return x the instruction popped off the stack |
205 */ | 206 */ |
206 public Value xpop() { | 207 public Value xpop() { |
207 return stack[--stackIndex]; | 208 Value result = stack[--stackIndex]; |
209 assert result == null || !result.isDeleted(); | |
210 return result; | |
208 } | 211 } |
209 | 212 |
210 /** | 213 /** |
211 * Pops a value off of the stack and checks that it is an int. | 214 * Pops a value off of the stack and checks that it is an int. |
212 * @return x the instruction popped off the stack | 215 * @return x the instruction popped off the stack |