< prev index next >

src/hotspot/share/opto/idealGraphPrinter.hpp

Print this page

        

@@ -79,11 +79,15 @@
   static const char *BYTECODES_ELEMENT;
   static const char *METHOD_BCI_PROPERTY;
   static const char *METHOD_SHORT_NAME_PROPERTY;
   static const char *ASSEMBLY_ELEMENT;
 
-    static int _file_count;
+  elapsedTimer _walk_time;
+  elapsedTimer _output_time;
+  elapsedTimer _build_blocks_time;
+
+  static int _file_count;
   networkStream *_stream;
   xmlStream *_xml;
   outputStream *_output;
   ciMethod *_current_method;
   int _depth;

@@ -91,10 +95,14 @@
   bool _should_send_method;
   PhaseChaitin* _chaitin;
   bool _traverse_outs;
   Compile *C;
 
+  static void pre_node(Node* node, void *env);
+  static void post_node(Node* node, void *env);
+
+  void print_indent();
   void print_method(ciMethod *method, int bci, InlineTree *tree);
   void print_inline_tree(InlineTree *tree);
   void visit_node(Node *n, bool edges, VectorSet* temp_set);
   void walk_nodes(Node *start, bool edges, VectorSet* temp_set);
   void begin_elem(const char *s);

@@ -106,10 +114,11 @@
   void print_prop(const char *name, const char *val);
   void print_prop(const char *name, int val);
   void tail(const char *name);
   void head(const char *name);
   void text(const char *s);
+  intptr_t get_node_id(Node *n);
   IdealGraphPrinter();
   ~IdealGraphPrinter();
 
  public:
 

@@ -119,12 +128,13 @@
   bool traverse_outs();
   void set_traverse_outs(bool b);
   void print_inlining();
   void begin_method();
   void end_method();
-  void print_method(const char *name, int level = 0);
-  void print(const char *name, Node *root);
+  void print_method(const char *name, int level=1, bool clear_nodes = false);
+  void print(const char *name, Node *root, int level=1, bool clear_nodes = false);
+  void print_xml(const char *name);
   bool should_print(int level);
   void set_compile(Compile* compile) {C = compile; }
 };
 
 #endif
< prev index next >