aboutsummaryrefslogtreecommitdiff
path: root/src/share/vm/opto/node.hpp
diff options
context:
space:
mode:
authorkvn <none@none>2013-01-22 11:31:25 -0800
committerkvn <none@none>2013-01-22 11:31:25 -0800
commit08b15f653d4bda3c2eff47be110c17d586f45a31 (patch)
treefd56b750b13f786e28514aa227772458c8ee5456 /src/share/vm/opto/node.hpp
parentaa540f1a272d0d42d744c926dc0fe880599b7b4b (diff)
8005055: pass outputStream to more opto debug routines
Summary: pass the output stream to node->dump() and everything reachable from there Reviewed-by: kvn Contributed-by: goetz.lindenmaier@sap.com
Diffstat (limited to 'src/share/vm/opto/node.hpp')
-rw-r--r--src/share/vm/opto/node.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/share/vm/opto/node.hpp b/src/share/vm/opto/node.hpp
index f0c1df3a8..0dafb0018 100644
--- a/src/share/vm/opto/node.hpp
+++ b/src/share/vm/opto/node.hpp
@@ -994,12 +994,13 @@ public:
#ifndef PRODUCT
Node* find(int idx) const; // Search the graph for the given idx.
Node* find_ctrl(int idx) const; // Search control ancestors for the given idx.
- void dump() const; // Print this node,
+ void dump() const { dump("\n"); } // Print this node.
+ void dump(const char* suffix, outputStream *st = tty) const;// Print this node.
void dump(int depth) const; // Print this node, recursively to depth d
void dump_ctrl(int depth) const; // Print control nodes, to depth d
- virtual void dump_req() const; // Print required-edge info
- virtual void dump_prec() const; // Print precedence-edge info
- virtual void dump_out() const; // Print the output edge info
+ virtual void dump_req(outputStream *st = tty) const; // Print required-edge info
+ virtual void dump_prec(outputStream *st = tty) const; // Print precedence-edge info
+ virtual void dump_out(outputStream *st = tty) const; // Print the output edge info
virtual void dump_spec(outputStream *st) const {}; // Print per-node info
void verify_edges(Unique_Node_List &visited); // Verify bi-directional edges
void verify() const; // Check Def-Use info for my subgraph