diff src/share/vm/c1x/c1x_CodeInstaller.cpp @ 1476:1f81c0d18c75

Build also release version of VM. Fix towards making SpecJVM2008 run.
author Thomas Wuerthinger <wuerthinger@ssw.jku.at>
date Fri, 26 Nov 2010 12:12:35 +0100
parents 7641338cfc92
children 6b7001391c97
line wrap: on
line diff
--- a/src/share/vm/c1x/c1x_CodeInstaller.cpp	Thu Nov 25 19:21:22 2010 +0100
+++ b/src/share/vm/c1x/c1x_CodeInstaller.cpp	Fri Nov 26 12:12:35 2010 +0100
@@ -127,7 +127,7 @@
   } else if (value->is_a(CiConstant::klass())){
     oop obj = CiConstant::object(value);
     jlong prim = CiConstant::primitive(value);
-    if (type == T_INT || type == T_FLOAT) {
+    if (type == T_INT || type == T_FLOAT || type == T_SHORT || type == T_CHAR || type == T_BOOLEAN || type == T_BYTE) {
       return new ConstantIntValue(*(jint*)&prim);
     } else if (type == T_LONG || type == T_DOUBLE) {
       return new ConstantLongValue(prim);
@@ -139,7 +139,8 @@
         obj->print();
         ShouldNotReachHere();
       }
-      //return new ConstantOopWriteValue()
+    } else if (type == T_ADDRESS) {
+      return new ConstantLongValue(prim);
     }
     tty->print("%i", type);
     ShouldNotReachHere();