Mercurial > hg > truffle
comparison graal/GraalCompiler/src/com/sun/c1x/ir/BlockBegin.java @ 2693:bcbda467e1ae
Clean up; removed subroutine block flag.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 18 May 2011 14:37:57 +0200 |
parents | 0ea5f12e873a |
children | 773189811d10 |
comparison
equal
deleted
inserted
replaced
2689:8fcf5179aafd | 2693:bcbda467e1ae |
---|---|
92 * An enumeration of flags for block entries indicating various things. | 92 * An enumeration of flags for block entries indicating various things. |
93 */ | 93 */ |
94 public enum BlockFlag { | 94 public enum BlockFlag { |
95 StandardEntry, | 95 StandardEntry, |
96 ExceptionEntry, | 96 ExceptionEntry, |
97 SubroutineEntry, | |
98 BackwardBranchTarget, | 97 BackwardBranchTarget, |
99 IsOnWorkList, | 98 IsOnWorkList, |
100 WasVisited, | 99 WasVisited, |
101 DefaultExceptionHandler, | 100 DefaultExceptionHandler, |
102 ParserLoopHeader, | 101 ParserLoopHeader, |
495 | 494 |
496 public void setExceptionEntry() { | 495 public void setExceptionEntry() { |
497 setBlockFlag(BlockFlag.ExceptionEntry); | 496 setBlockFlag(BlockFlag.ExceptionEntry); |
498 } | 497 } |
499 | 498 |
500 public boolean isSubroutineEntry() { | |
501 return checkBlockFlag(BlockFlag.SubroutineEntry); | |
502 } | |
503 | |
504 public void setSubroutineEntry() { | |
505 setBlockFlag(BlockFlag.SubroutineEntry); | |
506 } | |
507 | |
508 public boolean isOnWorkList() { | 499 public boolean isOnWorkList() { |
509 return checkBlockFlag(BlockFlag.IsOnWorkList); | 500 return checkBlockFlag(BlockFlag.IsOnWorkList); |
510 } | 501 } |
511 | 502 |
512 public void setOnWorkList(boolean value) { | 503 public void setOnWorkList(boolean value) { |
553 } | 544 } |
554 } | 545 } |
555 | 546 |
556 public void copyBlockFlags(BlockBegin other) { | 547 public void copyBlockFlags(BlockBegin other) { |
557 copyBlockFlag(other, BlockBegin.BlockFlag.ParserLoopHeader); | 548 copyBlockFlag(other, BlockBegin.BlockFlag.ParserLoopHeader); |
558 copyBlockFlag(other, BlockBegin.BlockFlag.SubroutineEntry); | |
559 copyBlockFlag(other, BlockBegin.BlockFlag.ExceptionEntry); | 549 copyBlockFlag(other, BlockBegin.BlockFlag.ExceptionEntry); |
560 copyBlockFlag(other, BlockBegin.BlockFlag.WasVisited); | 550 copyBlockFlag(other, BlockBegin.BlockFlag.WasVisited); |
561 } | 551 } |
562 | 552 |
563 @Override | 553 @Override |
694 | 684 |
695 // print flags | 685 // print flags |
696 StringBuilder sb = new StringBuilder(8); | 686 StringBuilder sb = new StringBuilder(8); |
697 if (isExceptionEntry()) { | 687 if (isExceptionEntry()) { |
698 sb.append('E'); | 688 sb.append('E'); |
699 } | |
700 if (isSubroutineEntry()) { | |
701 sb.append('s'); | |
702 } | 689 } |
703 if (isParserLoopHeader()) { | 690 if (isParserLoopHeader()) { |
704 sb.append("LH"); | 691 sb.append("LH"); |
705 } | 692 } |
706 if (isBackwardBranchTarget()) { | 693 if (isBackwardBranchTarget()) { |