Mercurial > hg > graal-jvmci-8
comparison graal/GraalCompiler/src/com/sun/c1x/gen/LIRGenerator.java @ 2851:14708c03abba
Remove isNonNull
author | Gilles Duboscq <gilles.duboscq@oracle.com> |
---|---|
date | Tue, 07 Jun 2011 11:36:32 +0200 |
parents | 7474789a8120 |
children | c6bdec623ef9 |
comparison
equal
deleted
inserted
replaced
2850:7474789a8120 | 2851:14708c03abba |
---|---|
1587 // TODO: get the code position of the current instruction if possible | 1587 // TODO: get the code position of the current instruction if possible |
1588 return null; | 1588 return null; |
1589 } | 1589 } |
1590 | 1590 |
1591 public boolean isNonNull(XirArgument argument) { | 1591 public boolean isNonNull(XirArgument argument) { |
1592 if (argument.constant == null && argument.object instanceof LIRItem) { | |
1593 // check the flag on the original value | |
1594 return ((LIRItem) argument.object).instruction.isNonNull(); | |
1595 } | |
1596 return false; | 1592 return false; |
1597 } | 1593 } |
1598 | 1594 |
1599 public boolean requiresNullCheck() { | 1595 public boolean requiresNullCheck() { |
1600 return current == null || true; | 1596 return current == null || true; |