< prev index next >

src/share/vm/opto/stringopts.cpp

Print this page

        

*** 771,781 **** } #endif return false; } } else { ! assert(mem->is_Store() || mem->is_LoadStore(), err_msg_res("unexpected node type: %s", mem->Name())); #ifndef PRODUCT if (PrintOptimizeStringConcat) { tty->print("fusion has incorrect memory flow (unexpected source) for "); _begin->jvms()->dump_spec(tty); tty->cr(); path.dump(); --- 771,781 ---- } #endif return false; } } else { ! assert(mem->is_Store() || mem->is_LoadStore(), "unexpected node type: %s", mem->Name()); #ifndef PRODUCT if (PrintOptimizeStringConcat) { tty->print("fusion has incorrect memory flow (unexpected source) for "); _begin->jvms()->dump_spec(tty); tty->cr(); path.dump();
*** 812,822 **** "must be a simple diamond"); Node* true_proj = ctrl->in(1)->is_IfTrue() ? ctrl->in(1) : ctrl->in(2); for (SimpleDUIterator i(true_proj); i.has_next(); i.next()) { Node* use = i.get(); assert(use == ctrl || use->is_ConstraintCast(), ! err_msg_res("unexpected user: %s", use->Name())); } iff = ctrl->in(1)->in(0)->as_If(); ctrl = iff->in(0); } --- 812,822 ---- "must be a simple diamond"); Node* true_proj = ctrl->in(1)->is_IfTrue() ? ctrl->in(1) : ctrl->in(2); for (SimpleDUIterator i(true_proj); i.has_next(); i.next()) { Node* use = i.get(); assert(use == ctrl || use->is_ConstraintCast(), ! "unexpected user: %s", use->Name()); } iff = ctrl->in(1)->in(0)->as_If(); ctrl = iff->in(0); }
*** 836,846 **** assert(ctrl->is_Proj(), "must be a projection"); assert(ctrl->in(0)->is_Initialize(), "should be initialize"); for (SimpleDUIterator i(ctrl); i.has_next(); i.next()) { Node* use = i.get(); assert(use == copy || use == iff || use == curr || use->is_CheckCastPP() || use->is_Load(), ! err_msg_res("unexpected user: %s", use->Name())); } #endif // ASSERT } } } --- 836,846 ---- assert(ctrl->is_Proj(), "must be a projection"); assert(ctrl->in(0)->is_Initialize(), "should be initialize"); for (SimpleDUIterator i(ctrl); i.has_next(); i.next()) { Node* use = i.get(); assert(use == copy || use == iff || use == curr || use->is_CheckCastPP() || use->is_Load(), ! "unexpected user: %s", use->Name()); } #endif // ASSERT } } }
< prev index next >