comparison graal/GraalCompiler/src/com/sun/c1x/ir/Base.java @ 2652:6d19b4f476db

Removed more OSR handling stuff.
author Thomas Wuerthinger <thomas@wuerthinger.net>
date Wed, 11 May 2011 14:51:33 +0200
parents b2c1e959be46
children
comparison
equal deleted inserted replaced
2651:f9ae687657e8 2652:6d19b4f476db
51 */ 51 */
52 public BlockBegin standardEntry() { 52 public BlockBegin standardEntry() {
53 return defaultSuccessor(); 53 return defaultSuccessor();
54 } 54 }
55 55
56 /**
57 * Gets the OSR entrypoint block, if it exists.
58 * @return the OSR entrypoint bock, if it exists; {@code null} otherwise
59 */
60 public BlockBegin osrEntry() {
61 return blockSuccessorCount() < 2 ? null : blockSuccessor(0);
62 }
63
64 @Override 56 @Override
65 public void accept(ValueVisitor v) { 57 public void accept(ValueVisitor v) {
66 v.visitBase(this); 58 v.visitBase(this);
67 } 59 }
68 60
69 @Override 61 @Override
70 public void print(LogStream out) { 62 public void print(LogStream out) {
71 out.print("std entry B").print(standardEntry().blockID); 63 out.print("std entry B").print(standardEntry().blockID);
72 if (blockSuccessors().size() > 1) {
73 out.print(" osr entry B").print(osrEntry().blockID);
74 }
75 } 64 }
76 } 65 }