Mercurial > hg > graal-jvmci-8
comparison graal/com.oracle.graal.api.code/src/com/oracle/graal/api/code/ValueUtil.java @ 5552:69a8969dbf40
Reduce public fields in api.code project.
author | Thomas Wuerthinger <thomas.wuerthinger@oracle.com> |
---|---|
date | Sat, 09 Jun 2012 21:50:02 +0200 |
parents | b6617d13ea44 |
children | 92bc58dc5b5e |
comparison
equal
deleted
inserted
replaced
5551:883c11613de5 | 5552:69a8969dbf40 |
---|---|
81 return value instanceof RegisterValue; | 81 return value instanceof RegisterValue; |
82 } | 82 } |
83 | 83 |
84 public static Register asRegister(Value value) { | 84 public static Register asRegister(Value value) { |
85 assert value != null; | 85 assert value != null; |
86 return ((RegisterValue) value).reg; | 86 return ((RegisterValue) value).getRegister(); |
87 } | 87 } |
88 | 88 |
89 public static Register asIntReg(Value value) { | 89 public static Register asIntReg(Value value) { |
90 assert value.kind == Kind.Int || value.kind == Kind.Jsr; | 90 assert value.kind == Kind.Int || value.kind == Kind.Jsr; |
91 return asRegister(value); | 91 return asRegister(value); |