Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/ci/CiValueUtil.java @ 5503:438ab53efdd0
Renaming CiKind => RiKind.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Thu, 07 Jun 2012 17:08:33 +0200 |
parents | 13aee5aba8cc |
children | 56860d3f9f39 |
comparison
equal
deleted
inserted
replaced
5502:13aee5aba8cc | 5503:438ab53efdd0 |
---|---|
85 assert value != null; | 85 assert value != null; |
86 return ((CiRegisterValue) value).reg; | 86 return ((CiRegisterValue) value).reg; |
87 } | 87 } |
88 | 88 |
89 public static CiRegister asIntReg(CiValue value) { | 89 public static CiRegister asIntReg(CiValue value) { |
90 assert value.kind == CiKind.Int || value.kind == CiKind.Jsr; | 90 assert value.kind == RiKind.Int || value.kind == RiKind.Jsr; |
91 return asRegister(value); | 91 return asRegister(value); |
92 } | 92 } |
93 | 93 |
94 public static CiRegister asLongReg(CiValue value) { | 94 public static CiRegister asLongReg(CiValue value) { |
95 assert value.kind == CiKind.Long : value.kind; | 95 assert value.kind == RiKind.Long : value.kind; |
96 return asRegister(value); | 96 return asRegister(value); |
97 } | 97 } |
98 | 98 |
99 public static CiRegister asObjectReg(CiValue value) { | 99 public static CiRegister asObjectReg(CiValue value) { |
100 assert value.kind == CiKind.Object; | 100 assert value.kind == RiKind.Object; |
101 return asRegister(value); | 101 return asRegister(value); |
102 } | 102 } |
103 | 103 |
104 public static CiRegister asFloatReg(CiValue value) { | 104 public static CiRegister asFloatReg(CiValue value) { |
105 assert value.kind == CiKind.Float; | 105 assert value.kind == RiKind.Float; |
106 return asRegister(value); | 106 return asRegister(value); |
107 } | 107 } |
108 | 108 |
109 public static CiRegister asDoubleReg(CiValue value) { | 109 public static CiRegister asDoubleReg(CiValue value) { |
110 assert value.kind == CiKind.Double; | 110 assert value.kind == RiKind.Double; |
111 return asRegister(value); | 111 return asRegister(value); |
112 } | 112 } |
113 | 113 |
114 | 114 |
115 public static boolean sameRegister(CiValue v1, CiValue v2) { | 115 public static boolean sameRegister(CiValue v1, CiValue v2) { |