comparison graal/GraalCompiler/src/com/sun/c1x/value/FrameStateBuilder.java @ 2821:015be60afcf3

removed flags from Value class
author Lukas Stadler <lukas.stadler@jku.at>
date Mon, 30 May 2011 17:05:06 +0200
parents 056e392d63d4
children bfce42cd9c07
comparison
equal deleted inserted replaced
2820:2b8ef0a06391 2821:015be60afcf3
52 int javaIndex = 0; 52 int javaIndex = 0;
53 int index = 0; 53 int index = 0;
54 if (!isStatic(method.accessFlags())) { 54 if (!isStatic(method.accessFlags())) {
55 // add the receiver and assume it is non null 55 // add the receiver and assume it is non null
56 Local local = new Local(method.holder().kind(), javaIndex, graph); 56 Local local = new Local(method.holder().kind(), javaIndex, graph);
57 local.setFlag(Value.Flag.NonNull, true); 57 local.setNonNull(true);
58 local.setDeclaredType(method.holder()); 58 local.setDeclaredType(method.holder());
59 storeLocal(javaIndex, local); 59 storeLocal(javaIndex, local);
60 javaIndex = 1; 60 javaIndex = 1;
61 index = 1; 61 index = 1;
62 } 62 }
320 * @return the instruction that produced the specified local 320 * @return the instruction that produced the specified local
321 */ 321 */
322 public Value loadLocal(int i) { 322 public Value loadLocal(int i) {
323 Value x = locals[i]; 323 Value x = locals[i];
324 if (x != null) { 324 if (x != null) {
325 if (x.isIllegal()) { 325 if (x instanceof Phi && ((Phi) x).isDead()) {
326 return null; 326 return null;
327 } 327 }
328 assert x.kind.isSingleWord() || locals[i + 1] == null || locals[i + 1] instanceof Phi; 328 assert x.kind.isSingleWord() || locals[i + 1] == null || locals[i + 1] instanceof Phi;
329 } 329 }
330 return x; 330 return x;