Mercurial > hg > truffle
comparison graal/com.oracle.graal.compiler.common/src/com/oracle/graal/compiler/common/type/IllegalStamp.java @ 18359:a3a2359ac88e
Support constant folding of pointer reads.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Tue, 11 Nov 2014 18:34:21 +0100 |
parents | 8652481a1110 |
children | b8a622c3e99f |
comparison
equal
deleted
inserted
replaced
18358:2dc0d4dcb709 | 18359:a3a2359ac88e |
---|---|
87 @Override | 87 @Override |
88 public boolean isLegal() { | 88 public boolean isLegal() { |
89 return false; | 89 return false; |
90 } | 90 } |
91 | 91 |
92 @Override | |
93 public Constant readConstant(ConstantReflectionProvider provider, Constant base, long displacement) { | |
94 throw GraalInternalError.shouldNotReachHere("can't read values of illegal stamp"); | |
95 } | |
96 | |
92 private static IllegalStamp instance = new IllegalStamp(); | 97 private static IllegalStamp instance = new IllegalStamp(); |
93 | 98 |
94 static IllegalStamp getInstance() { | 99 static IllegalStamp getInstance() { |
95 return instance; | 100 return instance; |
96 } | 101 } |