src/share/vm/runtime/stackValue.cpp

changeset 1253
b109e761e927
parent 766
cecd8eb4e0ca
child 1279
bd02caa94611
child 1293
5314d85ffd54
equal deleted inserted replaced
1228:eacd97c88873 1253:b109e761e927
144 union { intptr_t p; jlong jl; } value; 144 union { intptr_t p; jlong jl; } value;
145 value.p = (intptr_t) CONST64(0xDEADDEAFDEADDEAF); 145 value.p = (intptr_t) CONST64(0xDEADDEAFDEADDEAF);
146 value.jl = ((ConstantLongValue *)sv)->value(); 146 value.jl = ((ConstantLongValue *)sv)->value();
147 return new StackValue(value.p); 147 return new StackValue(value.p);
148 #endif 148 #endif
149 } else if (sv->is_object()) { 149 } else if (sv->is_object()) { // Scalar replaced object in compiled frame
150 return new StackValue(((ObjectValue *)sv)->value()); 150 Handle ov = ((ObjectValue *)sv)->value();
151 return new StackValue(ov, (ov.is_null()) ? 1 : 0);
151 } 152 }
152 153
153 // Unknown ScopeValue type 154 // Unknown ScopeValue type
154 ShouldNotReachHere(); 155 ShouldNotReachHere();
155 return new StackValue((intptr_t) 0); // dummy 156 return new StackValue((intptr_t) 0); // dummy

mercurial