Mercurial > hg > graal-compiler
comparison graal/com.oracle.graal.nodes/src/com/oracle/graal/nodes/ValueNodeUtil.java @ 6539:2463eb24b644
Cleanup of Graal API: Rename methods so that it follows the getXxx naming convention and so that they are similar to the names of the java.lang.reflect classes. Remove unused methods.
author | Christian Wimmer <christian.wimmer@oracle.com> |
---|---|
date | Tue, 09 Oct 2012 15:23:38 -0700 |
parents | 4d7175cf3526 |
children | 5e3d1a68664e |
comparison
equal
deleted
inserted
replaced
6538:d1ba5ba4f484 | 6539:2463eb24b644 |
---|---|
94 return phis; | 94 return phis; |
95 } | 95 } |
96 | 96 |
97 /** | 97 /** |
98 * Converts a given instruction to a value string. The representation of an node as | 98 * Converts a given instruction to a value string. The representation of an node as |
99 * a value is formed by concatenating the {@linkplain com.oracle.graal.api.meta.Kind#typeChar character} denoting its | 99 * a value is formed by concatenating the {@linkplain com.oracle.graal.api.meta.Kind#getTypeChar character} denoting its |
100 * {@linkplain ValueNode#kind kind} and its id. For example, {@code "i13"}. | 100 * {@linkplain ValueNode#kind kind} and its id. For example, {@code "i13"}. |
101 * | 101 * |
102 * @param value the instruction to convert to a value string. If {@code value == null}, then "-" is returned. | 102 * @param value the instruction to convert to a value string. If {@code value == null}, then "-" is returned. |
103 * @return the instruction representation as a string | 103 * @return the instruction representation as a string |
104 */ | 104 */ |
105 public static String valueString(ValueNode value) { | 105 public static String valueString(ValueNode value) { |
106 return (value == null) ? "-" : ("" + value.kind().typeChar + value.toString(Verbosity.Id)); | 106 return (value == null) ? "-" : ("" + value.kind().getTypeChar() + value.toString(Verbosity.Id)); |
107 } | 107 } |
108 } | 108 } |