equal
deleted
inserted
replaced
377 |
377 |
378 Node_List PhaseStringOpts::collect_toString_calls() { |
378 Node_List PhaseStringOpts::collect_toString_calls() { |
379 Node_List string_calls; |
379 Node_List string_calls; |
380 Node_List worklist; |
380 Node_List worklist; |
381 |
381 |
382 _visited.Clear(); |
382 _visited.clear(); |
383 |
383 |
384 // Prime the worklist |
384 // Prime the worklist |
385 for (uint i = 1; i < C->root()->len(); i++) { |
385 for (uint i = 1; i < C->root()->len(); i++) { |
386 Node* n = C->root()->in(i); |
386 Node* n = C->root()->in(i); |
387 if (n != NULL && !_visited.test_set(n->_idx)) { |
387 if (n != NULL && !_visited.test_set(n->_idx)) { |
1031 if (fail) return !fail; |
1031 if (fail) return !fail; |
1032 |
1032 |
1033 // Validate that all these results produced are contained within |
1033 // Validate that all these results produced are contained within |
1034 // this cluster of objects. First collect all the results produced |
1034 // this cluster of objects. First collect all the results produced |
1035 // by calls in the region. |
1035 // by calls in the region. |
1036 _stringopts->_visited.Clear(); |
1036 _stringopts->_visited.clear(); |
1037 Node_List worklist; |
1037 Node_List worklist; |
1038 Node* final_result = _end->proj_out_or_null(TypeFunc::Parms); |
1038 Node* final_result = _end->proj_out_or_null(TypeFunc::Parms); |
1039 for (uint i = 0; i < _control.size(); i++) { |
1039 for (uint i = 0; i < _control.size(); i++) { |
1040 CallNode* cnode = _control.at(i)->isa_Call(); |
1040 CallNode* cnode = _control.at(i)->isa_Call(); |
1041 if (cnode != NULL) { |
1041 if (cnode != NULL) { |