diff 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
line wrap: on
line diff
--- a/graal/com.oracle.max.cri/src/com/oracle/max/cri/ci/CiConstant.java	Tue May 22 16:42:56 2012 +0200
+++ b/graal/com.oracle.max.cri/src/com/oracle/max/cri/ci/CiConstant.java	Tue May 22 16:44:30 2012 +0200
@@ -473,6 +473,8 @@
      */
     public static CiConstant forBoxed(CiKind kind, Object value) {
         switch (kind) {
+            case Boolean:
+                return forBoolean((Boolean) value);
             case Byte:
                 return forByte((Byte) value);
             case Char: