Mercurial > hg > graal-compiler
changeset 2655:df5de2a207ca
Removed constant value utility of LoadField.
author | Thomas Wuerthinger <thomas@wuerthinger.net> |
---|---|
date | Wed, 11 May 2011 15:16:43 +0200 |
parents | 616c6e74b69a |
children | 37f067e76c6f |
files | graal/GraalCompiler/src/com/sun/c1x/ir/LoadField.java |
diffstat | 1 files changed, 0 insertions(+), 18 deletions(-) [+] |
line wrap: on
line diff
--- a/graal/GraalCompiler/src/com/sun/c1x/ir/LoadField.java Wed May 11 15:11:58 2011 +0200 +++ b/graal/GraalCompiler/src/com/sun/c1x/ir/LoadField.java Wed May 11 15:16:43 2011 +0200 @@ -74,24 +74,6 @@ v.visitLoadField(this); } - /** - * Gets a constant value to which this load can be reduced. - * - * @return {@code null} if this load cannot be reduced to a constant - */ - public CiConstant constantValue() { - if (isStatic()) { - return field.constantValue(null); - } else if (object().isConstant()) { - CiConstant cons = field.constantValue(object().asConstant()); - if (cons != null) { - return cons; - } - return cons; - } - return null; - } - @Override public void print(LogStream out) { out.print(object()).