comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/calc/CompareNode.java @ 21678:7355942cb270

Improve lowering of the type check node.
author Thomas Wuerthinger <thomas.wuerthinger@oracle.com>
date Wed, 03 Jun 2015 01:10:18 +0200
parents 48c1ebd24120
children
comparison
equal deleted inserted replaced
21670:5731adc3a10a 21678:7355942cb270
180 LogicNode comparison; 180 LogicNode comparison;
181 if (condition == Condition.EQ) { 181 if (condition == Condition.EQ) {
182 if (x.stamp() instanceof AbstractObjectStamp) { 182 if (x.stamp() instanceof AbstractObjectStamp) {
183 comparison = ObjectEqualsNode.create(x, y, constantReflection); 183 comparison = ObjectEqualsNode.create(x, y, constantReflection);
184 } else if (x.stamp() instanceof AbstractPointerStamp) { 184 } else if (x.stamp() instanceof AbstractPointerStamp) {
185 comparison = new PointerEqualsNode(x, y); 185 comparison = PointerEqualsNode.create(x, y);
186 } else { 186 } else {
187 assert x.getKind().isNumericInteger(); 187 assert x.getKind().isNumericInteger();
188 comparison = IntegerEqualsNode.create(x, y, constantReflection); 188 comparison = IntegerEqualsNode.create(x, y, constantReflection);
189 } 189 }
190 } else if (condition == Condition.LT) { 190 } else if (condition == Condition.LT) {