Mercurial > hg > truffle
comparison graal/com.oracle.max.graal.compiler/src/com/oracle/max/graal/compiler/value/FrameState.java @ 3091:bee93b329be2
merge
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Tue, 28 Jun 2011 19:22:42 +0200 |
parents | 02e2c1c4ac53 0a5776813ff0 |
children | f14632d52ab3 |
comparison
equal
deleted
inserted
replaced
3090:536528f48708 | 3091:bee93b329be2 |
---|---|
422 } | 422 } |
423 } | 423 } |
424 return null; | 424 return null; |
425 } | 425 } |
426 | 426 |
427 public StateSplit stateSplit() { | |
428 for (Node n : usages()) { | |
429 if (n instanceof StateSplit) { | |
430 return (StateSplit) n; | |
431 } | |
432 } | |
433 return null; | |
434 } | |
435 | |
427 /** | 436 /** |
428 * The interface implemented by a client of {@link FrameState#forEachPhi(Merge, PhiProcedure)} and | 437 * The interface implemented by a client of {@link FrameState#forEachPhi(Merge, PhiProcedure)} and |
429 * {@link FrameState#forEachLivePhi(Merge, PhiProcedure)}. | 438 * {@link FrameState#forEachLivePhi(Merge, PhiProcedure)}. |
430 */ | 439 */ |
431 public static interface PhiProcedure { | 440 public static interface PhiProcedure { |
469 } | 478 } |
470 } | 479 } |
471 | 480 |
472 @Override | 481 @Override |
473 public String toString() { | 482 public String toString() { |
474 StringBuilder sb = new StringBuilder(); | 483 /*StringBuilder sb = new StringBuilder(); |
475 String nl = String.format("%n"); | 484 String nl = String.format("%n"); |
476 sb.append("[bci: ").append(bci).append("]").append(nl); | 485 sb.append("[bci: ").append(bci).append("]").append(nl); |
477 for (int i = 0; i < localsSize(); ++i) { | 486 for (int i = 0; i < localsSize(); ++i) { |
478 Value value = localAt(i); | 487 Value value = localAt(i); |
479 sb.append(String.format(" local[%d] = %-8s : %s%n", i, value == null ? "bogus" : value.kind.javaName, value)); | 488 sb.append(String.format(" local[%d] = %-8s : %s%n", i, value == null ? "bogus" : value.kind.javaName, value)); |
484 } | 493 } |
485 for (int i = 0; i < locksSize(); ++i) { | 494 for (int i = 0; i < locksSize(); ++i) { |
486 Value value = lockAt(i); | 495 Value value = lockAt(i); |
487 sb.append(String.format(" lock[%d] = %-8s : %s%n", i, value == null ? "bogus" : value.kind.javaName, value)); | 496 sb.append(String.format(" lock[%d] = %-8s : %s%n", i, value == null ? "bogus" : value.kind.javaName, value)); |
488 } | 497 } |
489 return sb.toString(); | 498 return sb.toString();*/ |
499 return super.toString(); | |
490 } | 500 } |
491 | 501 |
492 @Override | 502 @Override |
493 public void accept(ValueVisitor v) { | 503 public void accept(ValueVisitor v) { |
494 v.visitFrameState(this); | 504 v.visitFrameState(this); |