Mercurial > hg > truffle
diff src/share/vm/opto/node.hpp @ 4778:35acf8f0a2e4
7128352: assert(obj_node == obj) failed
Summary: Compare uncasted object nodes.
Reviewed-by: never
author | kvn |
---|---|
date | Tue, 10 Jan 2012 18:05:38 -0800 |
parents | 1dc233a8c7fe |
children | 8c92982cbbc4 |
line wrap: on
line diff
--- a/src/share/vm/opto/node.hpp Sat Jan 07 13:26:43 2012 -0800 +++ b/src/share/vm/opto/node.hpp Tue Jan 10 18:05:38 2012 -0800 @@ -429,6 +429,10 @@ // Strip away casting. (It is depth-limited.) Node* uncast() const; + // Return whether two Nodes are equivalent, after stripping casting. + bool eqv_uncast(const Node* n) const { + return (this->uncast() == n->uncast()); + } private: static Node* uncast_helper(const Node* n);