comparison graal/com.oracle.graal.truffle/src/com/oracle/graal/truffle/nodes/BailoutNode.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 f57d86eb036f
comparison
equal deleted inserted replaced
18486:b9a8b2885283 18487:0f4813e0b4a9
52 } 52 }
53 53
54 @Override 54 @Override
55 public Node canonical(CanonicalizerTool tool) { 55 public Node canonical(CanonicalizerTool tool) {
56 if (getMessage().isConstant()) { 56 if (getMessage().isConstant()) {
57 throw new BailoutException(getMessage().asJavaConstant().toValueString()); 57 throw new BailoutException(getMessage().asConstant().toValueString());
58 } 58 }
59 return this; 59 return this;
60 } 60 }
61 } 61 }