Mercurial > hg > graal-compiler
comparison graal/com.oracle.max.cri/src/com/oracle/max/cri/ci/CiConstant.java @ 5428:6ec0857cdf46
added support for snippet templates which are snippet graphs specialized by binding a constant to at least one of the snippet's parameters
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Tue, 22 May 2012 16:44:30 +0200 |
parents | aaac4894175c |
children |
comparison
equal
deleted
inserted
replaced
5427:441cf24df453 | 5428:6ec0857cdf46 |
---|---|
471 * @param value the Java boxed value: a Byte instance for CiKind Byte, etc. | 471 * @param value the Java boxed value: a Byte instance for CiKind Byte, etc. |
472 * @return the boxed copy of {@code value} | 472 * @return the boxed copy of {@code value} |
473 */ | 473 */ |
474 public static CiConstant forBoxed(CiKind kind, Object value) { | 474 public static CiConstant forBoxed(CiKind kind, Object value) { |
475 switch (kind) { | 475 switch (kind) { |
476 case Boolean: | |
477 return forBoolean((Boolean) value); | |
476 case Byte: | 478 case Byte: |
477 return forByte((Byte) value); | 479 return forByte((Byte) value); |
478 case Char: | 480 case Char: |
479 return forChar((Character) value); | 481 return forChar((Character) value); |
480 case Short: | 482 case Short: |