Mercurial > hg > truffle
comparison graal/com.oracle.graal.compiler.common/src/com/oracle/graal/compiler/common/type/ArithmeticStamp.java @ 20110:51f2e71b57aa
Improvements to the Stamp infrastructure. New methods Stamp#improveWith, Stamp#tryImproveWith, Stamp#isIllegal.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Wed, 01 Apr 2015 16:36:15 +0200 |
parents | 9544b5f67626 |
children | 48c1ebd24120 |
comparison
equal
deleted
inserted
replaced
20088:2c86be269fad | 20110:51f2e71b57aa |
---|---|
43 } | 43 } |
44 | 44 |
45 public abstract SerializableConstant deserialize(ByteBuffer buffer); | 45 public abstract SerializableConstant deserialize(ByteBuffer buffer); |
46 | 46 |
47 @Override | 47 @Override |
48 public Stamp improveWith(Stamp other) { | |
49 return this.join(other); | |
50 } | |
51 | |
52 @Override | |
48 public int hashCode() { | 53 public int hashCode() { |
49 final int prime = 31; | 54 final int prime = 31; |
50 int result = 1; | 55 int result = 1; |
51 result = prime * result + ops.hashCode(); | 56 result = prime * result + ops.hashCode(); |
52 return result; | 57 return result; |