Mercurial > hg > graal-compiler
comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/ci/CiValueUtil.java @ 4245:75c620f90ab9
Support stack-operands and register hints in new register allocator API
author | Christian Wimmer <Christian.Wimmer@Oracle.com> |
---|---|
date | Sat, 07 Jan 2012 16:04:22 -0800 |
parents | fa53d5e4aa35 |
children | 1cf920630944 |
comparison
equal
deleted
inserted
replaced
4237:30b6720604d2 | 4245:75c620f90ab9 |
---|---|
45 public static boolean isConstant(CiValue value) { | 45 public static boolean isConstant(CiValue value) { |
46 assert value != null; | 46 assert value != null; |
47 return value instanceof CiConstant; | 47 return value instanceof CiConstant; |
48 } | 48 } |
49 | 49 |
50 public static CiConstant asConstant(CiValue value) { | |
51 assert value != null; | |
52 return (CiConstant) value; | |
53 } | |
54 | |
50 | 55 |
51 public static boolean isStackSlot(CiValue value) { | 56 public static boolean isStackSlot(CiValue value) { |
52 assert value != null; | 57 assert value != null; |
53 return value instanceof CiStackSlot; | 58 return value instanceof CiStackSlot; |
54 } | 59 } |