< prev index next >
src/hotspot/share/opto/parse1.cpp
Print this page
@@ -1736,12 +1736,11 @@
t = target->stack_type_at(j - tmp_jvms->stkoff());
}
if (t != NULL && t != Type::BOTTOM) {
if (n->is_ValueType() && !t->isa_valuetype()) {
// Allocate value type in src block to be able to merge it with oop in target block
- ValueTypeBaseNode* vt = n->as_ValueType()->allocate(this, true);
- map()->set_req(j, ValueTypePtrNode::make_from_value_type(_gvn, vt->as_ValueType()));
+ map()->set_req(j, ValueTypePtrNode::make_from_value_type(this, n->as_ValueType(), true));
}
if (t->isa_valuetype() && !n->is_ValueType()) {
// check for a null constant
assert(n->bottom_type()->remove_speculative() == TypePtr::NULL_PTR, "Anything other than null?");
uncommon_trap(Deoptimization::Reason_null_check, Deoptimization::Action_none);
< prev index next >