Mercurial > hg > truffle
comparison graal/com.oracle.graal.java.decompiler/src/com/oracle/graal/java/decompiler/lines/DecompilerSyntaxLine.java @ 18487:0f4813e0b4a9
Use asConstant() instead of asJavaConstant() where possible.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Mon, 24 Nov 2014 12:13:31 +0100 |
parents | 9619ba4daf4c |
children |
comparison
equal
deleted
inserted
replaced
18486:b9a8b2885283 | 18487:0f4813e0b4a9 |
---|---|
46 return block; | 46 return block; |
47 } | 47 } |
48 | 48 |
49 protected static String getStringRepresentation(Node node) { | 49 protected static String getStringRepresentation(Node node) { |
50 if (node instanceof ConstantNode) { | 50 if (node instanceof ConstantNode) { |
51 return ((ConstantNode) node).asJavaConstant().toValueString(); | 51 return ((ConstantNode) node).asConstant().toValueString(); |
52 } else if (node instanceof ParameterNode) { | 52 } else if (node instanceof ParameterNode) { |
53 return "param_" + ((ParameterNode) node).index(); | 53 return "param_" + ((ParameterNode) node).index(); |
54 } else { | 54 } else { |
55 return getVariable(node); | 55 return getVariable(node); |
56 } | 56 } |