Lines Matching defs:ptn
128 PointsToNode* ptn = ptnode_adr(n->_idx);
129 if (ptn != NULL) {
130 ptnodes_worklist.append(ptn);
131 if (ptn->is_JavaObject()) {
132 java_objects_worklist.append(ptn->as_JavaObject());
134 (ptn->escape_state() < PointsToNode::GlobalEscape)) {
136 non_escaped_worklist.append(ptn->as_JavaObject());
138 } else if (ptn->is_Field() && ptn->as_Field()->is_oop()) {
139 oop_fields_worklist.append(ptn->as_Field());
183 PointsToNode* ptn = ptnodes_worklist.at(next);
184 add_final_edges(ptn->ideal_node());
185 if (ptn->is_LocalVar() && ptn->edge_count() == 0) {
186 ptn->dump();
187 assert(ptn->as_LocalVar()->edge_count() > 0, "sanity");
208 JavaObjectNode* ptn = non_escaped_worklist.at(next);
209 if (ptn->escape_state() == PointsToNode::NoEscape &&
210 ptn->scalar_replaceable()) {
211 adjust_scalar_replaceable_state(ptn);
212 if (ptn->scalar_replaceable()) {
213 alloc_worklist.append(ptn->ideal_node());
253 PointsToNode* ptn = ptnode_adr(n->_idx);
254 assert(ptn->escape_state() == PointsToNode::NoEscape && ptn->scalar_replaceable(), "sanity");
591 PointsToNode* ptn = ptnode_adr(in->_idx);
592 assert(ptn != NULL, "node should be registered");
593 add_edge(n_ptn, ptn);
622 PointsToNode* ptn = ptnode_adr(in->_idx);
623 assert(ptn != NULL, "node should be registered");
624 add_edge(n_ptn, ptn);
680 PointsToNode* ptn = ptnode_adr(val->_idx);
681 assert(ptn != NULL, "node should be registered");
682 add_edge(adr_ptn, ptn);
687 PointsToNode* ptn = ptnode_adr(val->_idx);
688 assert(ptn != NULL, "node should be registered");
689 ptn->set_escape_state(PointsToNode::GlobalEscape);
695 add_edge(adr_ptn, ptn);
717 PointsToNode* ptn = ptnode_adr(adr->_idx);
718 assert(ptn != NULL, "node should be registered");
719 add_edge(n_ptn, ptn);
764 PointsToNode* ptn = ptnode_adr(call_idx);
765 if (!scalar_replaceable && ptn->scalar_replaceable()) {
766 ptn->set_scalar_replaceable(false);
1048 JavaObjectNode* ptn = java_objects_worklist.at(next);
1049 new_edges += add_java_object_edges(ptn, true);
1106 JavaObjectNode* ptn = non_escaped_worklist.at(next);
1107 PointsToNode::EscapeState es = ptn->escape_state();
1110 if (find_init_values(ptn, null_obj, _igvn) > 0) {
1116 Node* n = ptn->ideal_node();
1137 PointsToNode* ptn = ptnodes_worklist.at(next);
1138 if (ptn->escape_state() >= PointsToNode::ArgEscape ||
1139 ptn->fields_escape_state() >= PointsToNode::ArgEscape) {
1140 escape_worklist.push(ptn);
1145 PointsToNode* ptn = escape_worklist.pop();
1146 PointsToNode::EscapeState es = ptn->escape_state();
1147 PointsToNode::EscapeState field_es = ptn->fields_escape_state();
1148 if (ptn->is_Field() && ptn->as_Field()->is_oop() &&
1151 if (add_edge(ptn, phantom_obj)) {
1153 add_field_uses_to_worklist(ptn->as_Field());
1156 for (EdgeIterator i(ptn); i.has_next(); i.next()) {
1159 assert(ptn->arraycopy_dst(), "sanity");
1179 e->is_Field() && ptn->is_JavaObject() &&
1196 JavaObjectNode* ptn = non_escaped_worklist.at(next);
1197 if (ptn->escape_state() >= PointsToNode::GlobalEscape) {
1200 if (ptn->escape_state() == PointsToNode::NoEscape) {
1202 find_init_values(ptn, phantom_obj, NULL);
1544 PointsToNode* ptn = j.get();
1545 if (ptn->is_JavaObject() && ptn != jobj) {
1548 ptn->set_scalar_replaceable(false);
1621 JavaObjectNode* ptn = java_objects_worklist.at(next);
1622 new_edges += add_java_object_edges(ptn, true);
1640 PointsToNode* ptn = ptnode_adr(base->_idx);
1641 if (ptn->is_JavaObject()) {
1642 assert(field->has_base(ptn->as_JavaObject()), "sanity");
1644 assert(ptn->is_LocalVar(), "sanity");
1645 for (EdgeIterator i(ptn); i.has_next(); i.next()) {
1954 PointsToNode* ptn = ptnode_adr(idx);
1955 if (ptn->is_JavaObject()) {
1956 return ptn->as_JavaObject();
1958 assert(ptn->is_LocalVar(), "sanity");
1961 for (EdgeIterator i(ptn); i.has_next(); i.next()) {
2007 PointsToNode* ptn = ptnode_adr(idx);
2008 PointsToNode::EscapeState es = ptn->escape_state();
2012 if (ptn->is_JavaObject()) {
2015 assert(ptn->is_LocalVar(), "sanity");
2017 for (EdgeIterator i(ptn); i.has_next(); i.next()) {
2028 bool PointsToNode::points_to(JavaObjectNode* ptn) const {
2030 return (this == ptn);
2034 if (i.get() == ptn)
2041 bool PointsToNode::meet(PointsToNode* ptn) {
2042 if (this == ptn) {
2044 } else if (ptn->is_JavaObject()) {
2045 return this->points_to(ptn->as_JavaObject());
2047 return ptn->points_to(this->as_JavaObject());
2049 assert(this->is_LocalVar() && ptn->is_LocalVar(), "sanity");
2050 int ptn_count = ptn->edge_count();
2054 if (this_e == ptn->edge(j))
2723 PointsToNode* ptn = ptnode_adr(alloc->_idx);
2724 PointsToNode::EscapeState es = ptn->escape_state();
2727 if (es != PointsToNode::NoEscape || !ptn->scalar_replaceable())
2796 for (EdgeIterator e(ptn); e.has_next(); e.next()) {
3233 PointsToNode *ptn = ptnodes_worklist.at(i);
3234 if (ptn == NULL || !ptn->is_JavaObject())
3236 PointsToNode::EscapeState es = ptn->escape_state();
3237 if (ptn->ideal_node()->is_Allocate() && (es == PointsToNode::NoEscape || Verbose)) {
3245 ptn->dump();
3247 for (UseIterator j(ptn); j.has_next(); j.next()) {