Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/BlockBegin.java @ 2723:173067211acb
Removed two more BlockBegin flags.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Thu, 19 May 2011 16:44:05 +0200 |
parents | 23d0bcfa3c84 |
children | e2d20fc3760f |
comparison
equal
deleted
inserted
replaced
2722:23d0bcfa3c84 | 2723:173067211acb |
---|---|
78 | 78 |
79 /** | 79 /** |
80 * An enumeration of flags for block entries indicating various things. | 80 * An enumeration of flags for block entries indicating various things. |
81 */ | 81 */ |
82 public enum BlockFlag { | 82 public enum BlockFlag { |
83 ParserLoopHeader, | 83 ParserLoopHeader; |
84 LinearScanLoopHeader, | |
85 LinearScanLoopEnd; | |
86 | 84 |
87 public final int mask = 1 << ordinal(); | 85 public final int mask = 1 << ordinal(); |
88 } | 86 } |
89 | 87 |
90 /** | 88 /** |
398 return checkBlockFlag(BlockFlag.ParserLoopHeader); | 396 return checkBlockFlag(BlockFlag.ParserLoopHeader); |
399 } | 397 } |
400 | 398 |
401 public void setParserLoopHeader(boolean value) { | 399 public void setParserLoopHeader(boolean value) { |
402 setBlockFlag(BlockFlag.ParserLoopHeader, value); | 400 setBlockFlag(BlockFlag.ParserLoopHeader, value); |
403 } | |
404 | |
405 public boolean isLinearScanLoopHeader() { | |
406 return checkBlockFlag(BlockFlag.LinearScanLoopHeader); | |
407 } | |
408 | |
409 public boolean isLinearScanLoopEnd() { | |
410 return checkBlockFlag(BlockFlag.LinearScanLoopEnd); | |
411 } | 401 } |
412 | 402 |
413 private void setBlockFlag(BlockFlag flag, boolean value) { | 403 private void setBlockFlag(BlockFlag flag, boolean value) { |
414 if (value) { | 404 if (value) { |
415 setBlockFlag(flag); | 405 setBlockFlag(flag); |