Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/ir/TypeCheck.java @ 2538:e1ba5a93e997
Clean up on Value class and LIRGenerator/LIRItem-related things.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 27 Apr 2011 20:13:54 +0200 |
parents | 16b9a8b5ad39 |
children | c58a301eb2d7 |
comparison
equal
deleted
inserted
replaced
2537:4a016ff4d2df | 2538:e1ba5a93e997 |
---|---|
99 @Override | 99 @Override |
100 public void inputValuesDo(ValueClosure closure) { | 100 public void inputValuesDo(ValueClosure closure) { |
101 object = closure.apply(object); | 101 object = closure.apply(object); |
102 targetClassInstruction = closure.apply(targetClassInstruction); | 102 targetClassInstruction = closure.apply(targetClassInstruction); |
103 } | 103 } |
104 | |
105 /** | |
106 * Sets this type check operation to be a direct compare. | |
107 */ | |
108 public void setDirectCompare() { | |
109 setFlag(Flag.DirectCompare); | |
110 } | |
111 | |
112 /** | |
113 * Checks where this comparison is a direct compare, because the class compared to is a leaf class. | |
114 * @return {@code true} if this typecheck is a direct compare | |
115 */ | |
116 public boolean isDirectCompare() { | |
117 return checkFlag(Flag.DirectCompare); | |
118 } | |
119 } | 104 } |