comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/ci/CiValueUtil.java @ 4314:9ce8594bedaf

Allow CiAddress as Input and Alive operands of LIR instructions.
author Christian Wimmer <Christian.Wimmer@Oracle.com>
date Thu, 19 Jan 2012 14:14:36 -0800
parents 1cf920630944
children df5547057954
comparison
equal deleted inserted replaced
4313:79af35bd9fd7 4314:9ce8594bedaf
61 public static CiStackSlot asStackSlot(CiValue value) { 61 public static CiStackSlot asStackSlot(CiValue value) {
62 assert value != null; 62 assert value != null;
63 return (CiStackSlot) value; 63 return (CiStackSlot) value;
64 } 64 }
65 65
66 public static boolean isAddress(CiValue value) {
67 assert value != null;
68 return value instanceof CiAddress;
69 }
70
71 public static CiAddress asAddress(CiValue value) {
72 assert value != null;
73 return (CiAddress) value;
74 }
75
66 76
67 public static boolean isRegister(CiValue value) { 77 public static boolean isRegister(CiValue value) {
68 assert value != null; 78 assert value != null;
69 return value instanceof CiRegisterValue; 79 return value instanceof CiRegisterValue;
70 } 80 }