Mercurial > hg > truffle
comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/ci/CiValueUtil.java @ 4233:fa53d5e4aa35
Remove lock information from frame states, and compute it instead when LIR is generated.
author | Christian Wimmer <Christian.Wimmer@Oracle.com> |
---|---|
date | Thu, 05 Jan 2012 17:02:58 -0800 |
parents | 430b5db3e6f8 |
children | 75c620f90ab9 |
comparison
equal
deleted
inserted
replaced
4232:382523fc390c | 4233:fa53d5e4aa35 |
---|---|
35 public static boolean isVirtualObject(CiValue value) { | 35 public static boolean isVirtualObject(CiValue value) { |
36 assert value != null; | 36 assert value != null; |
37 return value instanceof CiVirtualObject; | 37 return value instanceof CiVirtualObject; |
38 } | 38 } |
39 | 39 |
40 public static CiVirtualObject asVirtualObject(CiValue value) { | |
41 assert value != null; | |
42 return (CiVirtualObject) value; | |
43 } | |
40 | 44 |
41 public static boolean isConstant(CiValue value) { | 45 public static boolean isConstant(CiValue value) { |
42 assert value != null; | 46 assert value != null; |
43 return value instanceof CiConstant; | 47 return value instanceof CiConstant; |
44 } | 48 } |