Mercurial > hg > truffle
diff graal/com.oracle.max.cri/src/com/sun/cri/ci/CiBitMap.java @ 4169:f5328dda9714
Initial commit of SSA-based spill-all register assignment
author | Christian Wimmer <Christian.Wimmer@Oracle.com> |
---|---|
date | Wed, 28 Dec 2011 18:13:25 -0800 |
parents | bc8527f3071c |
children |
line wrap: on
line diff
--- a/graal/com.oracle.max.cri/src/com/sun/cri/ci/CiBitMap.java Wed Dec 28 18:12:08 2011 -0800 +++ b/graal/com.oracle.max.cri/src/com/sun/cri/ci/CiBitMap.java Wed Dec 28 18:13:25 2011 -0800 @@ -62,6 +62,19 @@ } /** + * Constructs a copy of the given bit map. + * + * @param bitmap the bit map to copy. + */ + public CiBitMap(CiBitMap bitmap) { + this.size = bitmap.size; + this.low = bitmap.low; + if (bitmap.extra != null) { + this.extra = Arrays.copyOf(bitmap.extra, bitmap.extra.length); + } + } + + /** * Constructs a new bit map from a byte array encoded bit map. * * @param arr the byte array containing the bit map to convert