hotspot/src/share/vm/opto/loopnode.hpp
changeset 16375 d27fedd8b2b2
parent 15618 3eb521896836
child 17620 67820da7568e
--- a/hotspot/src/share/vm/opto/loopnode.hpp	Tue Mar 19 11:49:36 2013 -0700
+++ b/hotspot/src/share/vm/opto/loopnode.hpp	Tue Mar 19 12:15:35 2013 -0700
@@ -603,7 +603,10 @@
   }
 
 public:
-  bool has_node( Node* n ) const { return _nodes[n->_idx] != NULL; }
+  bool has_node( Node* n ) const {
+    guarantee(n != NULL, "No Node.");
+    return _nodes[n->_idx] != NULL;
+  }
   // check if transform created new nodes that need _ctrl recorded
   Node *get_late_ctrl( Node *n, Node *early );
   Node *get_early_ctrl( Node *n );
@@ -737,7 +740,8 @@
     return n;
   }
   uint dom_depth(Node* d) const {
-    assert(d->_idx < _idom_size, "");
+    guarantee(d != NULL, "Null dominator info.");
+    guarantee(d->_idx < _idom_size, "");
     return _dom_depth[d->_idx];
   }
   void set_idom(Node* d, Node* n, uint dom_depth);