@@ -1659,7 +1659,7 @@ Node* Node::find(const int idx, bool only_ctrl) {
1659
1659
}
1660
1660
1661
1661
bool Node::add_to_worklist (Node* n, Node_List* worklist, Arena* old_arena, VectorSet* old_space, VectorSet* new_space) {
1662
- if (NotANode (n)) {
1662
+ if (not_a_node (n)) {
1663
1663
return false ; // Gracefully handle NULL, -1, 0xabababab, etc.
1664
1664
}
1665
1665
@@ -1687,14 +1687,14 @@ static bool is_disconnected(const Node* n) {
1687
1687
void Node::dump_orig (outputStream *st, bool print_key) const {
1688
1688
Compile* C = Compile::current ();
1689
1689
Node* orig = _debug_orig;
1690
- if (NotANode (orig)) orig = NULL ;
1690
+ if (not_a_node (orig)) orig = NULL ;
1691
1691
if (orig != NULL && !C->node_arena ()->contains (orig)) orig = NULL ;
1692
1692
if (orig == NULL ) return ;
1693
1693
if (print_key) {
1694
1694
st->print (" !orig=" );
1695
1695
}
1696
1696
Node* fast = orig->debug_orig (); // tortoise & hare algorithm to detect loops
1697
- if (NotANode (fast)) fast = NULL ;
1697
+ if (not_a_node (fast)) fast = NULL ;
1698
1698
while (orig != NULL ) {
1699
1699
bool discon = is_disconnected (orig); // if discon, print [123] else 123
1700
1700
if (discon) st->print (" [" );
@@ -1703,16 +1703,16 @@ void Node::dump_orig(outputStream *st, bool print_key) const {
1703
1703
st->print (" %d" , orig->_idx );
1704
1704
if (discon) st->print (" ]" );
1705
1705
orig = orig->debug_orig ();
1706
- if (NotANode (orig)) orig = NULL ;
1706
+ if (not_a_node (orig)) orig = NULL ;
1707
1707
if (orig != NULL && !C->node_arena ()->contains (orig)) orig = NULL ;
1708
1708
if (orig != NULL ) st->print (" ," );
1709
1709
if (fast != NULL ) {
1710
1710
// Step fast twice for each single step of orig:
1711
1711
fast = fast->debug_orig ();
1712
- if (NotANode (fast)) fast = NULL ;
1712
+ if (not_a_node (fast)) fast = NULL ;
1713
1713
if (fast != NULL && fast != orig) {
1714
1714
fast = fast->debug_orig ();
1715
- if (NotANode (fast)) fast = NULL ;
1715
+ if (not_a_node (fast)) fast = NULL ;
1716
1716
}
1717
1717
if (fast == orig) {
1718
1718
st->print (" ..." );
@@ -1725,7 +1725,7 @@ void Node::dump_orig(outputStream *st, bool print_key) const {
1725
1725
void Node::set_debug_orig (Node* orig) {
1726
1726
_debug_orig = orig;
1727
1727
if (BreakAtNode == 0 ) return ;
1728
- if (NotANode (orig)) orig = NULL ;
1728
+ if (not_a_node (orig)) orig = NULL ;
1729
1729
int trip = 10 ;
1730
1730
while (orig != NULL ) {
1731
1731
if (orig->debug_idx () == BreakAtNode || (int )orig->_idx == BreakAtNode) {
@@ -1734,7 +1734,7 @@ void Node::set_debug_orig(Node* orig) {
1734
1734
BREAKPOINT;
1735
1735
}
1736
1736
orig = orig->debug_orig ();
1737
- if (NotANode (orig)) orig = NULL ;
1737
+ if (not_a_node (orig)) orig = NULL ;
1738
1738
if (trip-- <= 0 ) break ;
1739
1739
}
1740
1740
}
@@ -1830,8 +1830,8 @@ void Node::dump_req(outputStream *st) const {
1830
1830
Node* d = in (i);
1831
1831
if (d == NULL ) {
1832
1832
st->print (" _ " );
1833
- } else if (NotANode (d)) {
1834
- st->print (" NotANode " ); // uninitialized, sentinel, garbage, etc.
1833
+ } else if (not_a_node (d)) {
1834
+ st->print (" not_a_node " ); // uninitialized, sentinel, garbage, etc.
1835
1835
} else {
1836
1836
st->print (" %c%d " , Compile::current ()->node_arena ()->contains (d) ? ' ' : ' o' , d->_idx );
1837
1837
}
@@ -1847,7 +1847,7 @@ void Node::dump_prec(outputStream *st) const {
1847
1847
Node* p = in (i);
1848
1848
if (p != NULL ) {
1849
1849
if (!any_prec++) st->print (" |" );
1850
- if (NotANode (p)) { st->print (" NotANode " ); continue ; }
1850
+ if (not_a_node (p)) { st->print (" not_a_node " ); continue ; }
1851
1851
st->print (" %c%d " , Compile::current ()->node_arena ()->contains (in (i)) ? ' ' : ' o' , in (i)->_idx );
1852
1852
}
1853
1853
}
@@ -1862,8 +1862,8 @@ void Node::dump_out(outputStream *st) const {
1862
1862
Node* u = _out[i];
1863
1863
if (u == NULL ) {
1864
1864
st->print (" _ " );
1865
- } else if (NotANode (u)) {
1866
- st->print (" NotANode " );
1865
+ } else if (not_a_node (u)) {
1866
+ st->print (" not_a_node " );
1867
1867
} else {
1868
1868
st->print (" %c%d " , Compile::current ()->node_arena ()->contains (u) ? ' ' : ' o' , u->_idx );
1869
1869
}
@@ -1900,7 +1900,7 @@ static void collect_nodes_i(GrowableArray<Node*>* queue, const Node* start, int
1900
1900
for (uint k = 0 ; k < limit; k++) {
1901
1901
Node* n = direction > 0 ? tp->in (k) : tp->raw_out (k);
1902
1902
1903
- if (NotANode (n)) continue ;
1903
+ if (not_a_node (n)) continue ;
1904
1904
// do not recurse through top or the root (would reach unrelated stuff)
1905
1905
if (n->is_Root () || n->is_top ()) continue ;
1906
1906
if (only_ctrl && !n->is_CFG ()) continue ;
@@ -1921,7 +1921,7 @@ static void collect_nodes_i(GrowableArray<Node*>* queue, const Node* start, int
1921
1921
1922
1922
// ------------------------------dump_nodes-------------------------------------
1923
1923
static void dump_nodes (const Node* start, int d, bool only_ctrl) {
1924
- if (NotANode (start)) return ;
1924
+ if (not_a_node (start)) return ;
1925
1925
1926
1926
GrowableArray <Node *> queue (Compile::current ()->live_nodes ());
1927
1927
collect_nodes_i (&queue, start, d, (uint ) ABS (d), true , only_ctrl, false );
@@ -2089,7 +2089,7 @@ static void collect_nodes_in(Node* start, GrowableArray<Node*> *ns, bool primary
2089
2089
Node* current = nodes.at (n_idx++);
2090
2090
for (uint i = 0 ; i < current->len (); i++) {
2091
2091
Node* n = current->in (i);
2092
- if (NotANode (n)) {
2092
+ if (not_a_node (n)) {
2093
2093
continue ;
2094
2094
}
2095
2095
if ((primary_is_data && n->is_CFG ()) || (!primary_is_data && !n->is_CFG ())) {
@@ -2151,7 +2151,7 @@ void Node::collect_nodes_out_all_ctrl_boundary(GrowableArray<Node*> *ns) const {
2151
2151
nodes.push ((Node*) this );
2152
2152
while (nodes.length () > 0 ) {
2153
2153
Node* current = nodes.pop ();
2154
- if (NotANode (current)) {
2154
+ if (not_a_node (current)) {
2155
2155
continue ;
2156
2156
}
2157
2157
ns->append_if_missing (current);
0 commit comments