Mercurial > hg > truffle
comparison graal/com.oracle.max.cri/src/com/sun/cri/ci/CiValue.java @ 4182:de7b3e7ae528
Simplify CiValue
author | Christian Wimmer <Christian.Wimmer@Oracle.com> |
---|---|
date | Mon, 02 Jan 2012 14:38:17 -0800 |
parents | f5328dda9714 |
children | 9e0c1b4cfef5 |
comparison
equal
deleted
inserted
replaced
4181:319860ae697a | 4182:de7b3e7ae528 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2009, 2011, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2009, 2012, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
94 | 94 |
95 public final boolean isConstant() { | 95 public final boolean isConstant() { |
96 return this instanceof CiConstant; | 96 return this instanceof CiConstant; |
97 } | 97 } |
98 | 98 |
99 public boolean equalsIgnoringKind(CiValue other) { | |
100 // This is a suitable default implementation for several subclasses | |
101 return equals(other); | |
102 } | |
103 | |
104 @Override | 99 @Override |
105 public abstract String toString(); | 100 public abstract String toString(); |
106 | 101 |
107 protected final String kindSuffix() { | 102 protected final String kindSuffix() { |
108 return "|" + kind.typeChar; | 103 return "|" + kind.typeChar; |