Mercurial > hg > graal-jvmci-8
comparison 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 |
comparison
equal
deleted
inserted
replaced
1472:7641338cfc92 | 1476:1f81c0d18c75 |
---|---|
125 return new LocationValue(Location::new_stk_loc(locationType, -(index * HeapWordSize) + frame_size_bytes)); | 125 return new LocationValue(Location::new_stk_loc(locationType, -(index * HeapWordSize) + frame_size_bytes)); |
126 } | 126 } |
127 } else if (value->is_a(CiConstant::klass())){ | 127 } else if (value->is_a(CiConstant::klass())){ |
128 oop obj = CiConstant::object(value); | 128 oop obj = CiConstant::object(value); |
129 jlong prim = CiConstant::primitive(value); | 129 jlong prim = CiConstant::primitive(value); |
130 if (type == T_INT || type == T_FLOAT) { | 130 if (type == T_INT || type == T_FLOAT || type == T_SHORT || type == T_CHAR || type == T_BOOLEAN || type == T_BYTE) { |
131 return new ConstantIntValue(*(jint*)&prim); | 131 return new ConstantIntValue(*(jint*)&prim); |
132 } else if (type == T_LONG || type == T_DOUBLE) { | 132 } else if (type == T_LONG || type == T_DOUBLE) { |
133 return new ConstantLongValue(prim); | 133 return new ConstantLongValue(prim); |
134 } else if (type == T_OBJECT) { | 134 } else if (type == T_OBJECT) { |
135 oop obj = CiConstant::object(value); | 135 oop obj = CiConstant::object(value); |
137 return new ConstantOopWriteValue(NULL); | 137 return new ConstantOopWriteValue(NULL); |
138 } else { | 138 } else { |
139 obj->print(); | 139 obj->print(); |
140 ShouldNotReachHere(); | 140 ShouldNotReachHere(); |
141 } | 141 } |
142 //return new ConstantOopWriteValue() | 142 } else if (type == T_ADDRESS) { |
143 return new ConstantLongValue(prim); | |
143 } | 144 } |
144 tty->print("%i", type); | 145 tty->print("%i", type); |
145 ShouldNotReachHere(); | 146 ShouldNotReachHere(); |
146 } else { | 147 } else { |
147 value->klass()->print(); | 148 value->klass()->print(); |