Mercurial > hg > truffle
comparison graal/com.oracle.max.cri/src/com/sun/cri/ci/CiVariable.java @ 4169:f5328dda9714
Initial commit of SSA-based spill-all register assignment
author | Christian Wimmer <Christian.Wimmer@Oracle.com> |
---|---|
date | Wed, 28 Dec 2011 18:13:25 -0800 |
parents | bc8527f3071c |
children | de7b3e7ae528 |
comparison
equal
deleted
inserted
replaced
4168:0bc4815d2069 | 4169:f5328dda9714 |
---|---|
28 * by a register allocator. | 28 * by a register allocator. |
29 */ | 29 */ |
30 public final class CiVariable extends CiValue { | 30 public final class CiVariable extends CiValue { |
31 | 31 |
32 /** | 32 /** |
33 * | 33 * |
34 */ | 34 */ |
35 private static final long serialVersionUID = 4507578431686109809L; | 35 private static final long serialVersionUID = 4507578431686109809L; |
36 | 36 |
37 /** | 37 /** |
38 * The identifier of the variable. This is a non-zero index in a contiguous 0-based name space. | 38 * The identifier of the variable. This is a non-zero index in a contiguous 0-based name space. |
114 public int hashCode() { | 114 public int hashCode() { |
115 return (index << 4) | kind.ordinal(); | 115 return (index << 4) | kind.ordinal(); |
116 } | 116 } |
117 | 117 |
118 @Override | 118 @Override |
119 public String name() { | 119 public String toString() { |
120 return "v" + index; | 120 return "v" + index + kindSuffix(); |
121 } | 121 } |
122 } | 122 } |