Mercurial > hg > graal-compiler
comparison src/share/vm/opto/idealGraphPrinter.hpp @ 10135:5a9fa2ba85f0
8012907: anti-delta fix for 8010992
Summary: anti-delta fix for 8010992 until 8012902 can be fixed
Reviewed-by: acorn, minqi, rdurbin
author | dcubed |
---|---|
date | Sun, 21 Apr 2013 20:41:04 -0700 |
parents | 6f817ce50129 |
children | f9be75d21404 |
comparison
equal
deleted
inserted
replaced
10130:6f817ce50129 | 10135:5a9fa2ba85f0 |
---|---|
1 /* | 1 /* |
2 * Copyright (c) 2007, 2013, Oracle and/or its affiliates. All rights reserved. | 2 * Copyright (c) 2007, 2011, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | 4 * |
5 * This code is free software; you can redistribute it and/or modify it | 5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as | 6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. | 7 * published by the Free Software Foundation. |
39 class Matcher; | 39 class Matcher; |
40 class Node; | 40 class Node; |
41 class InlineTree; | 41 class InlineTree; |
42 class ciMethod; | 42 class ciMethod; |
43 | 43 |
44 class IdealGraphPrinter : public CHeapObj<mtCompiler> { | 44 class IdealGraphPrinter |
45 private: | 45 { |
46 private: | |
46 | 47 |
47 static const char *INDENT; | 48 static const char *INDENT; |
48 static const char *TOP_ELEMENT; | 49 static const char *TOP_ELEMENT; |
49 static const char *GROUP_ELEMENT; | 50 static const char *GROUP_ELEMENT; |
50 static const char *GRAPH_ELEMENT; | 51 static const char *GRAPH_ELEMENT; |
118 void text(const char *s); | 119 void text(const char *s); |
119 intptr_t get_node_id(Node *n); | 120 intptr_t get_node_id(Node *n); |
120 IdealGraphPrinter(); | 121 IdealGraphPrinter(); |
121 ~IdealGraphPrinter(); | 122 ~IdealGraphPrinter(); |
122 | 123 |
123 public: | 124 public: |
124 | 125 |
125 static void clean_up(); | 126 static void clean_up(); |
126 static IdealGraphPrinter *printer(); | 127 static IdealGraphPrinter *printer(); |
127 | 128 |
128 bool traverse_outs(); | 129 bool traverse_outs(); |
132 void begin_method(Compile* compile); | 133 void begin_method(Compile* compile); |
133 void end_method(); | 134 void end_method(); |
134 void print_method(Compile* compile, const char *name, int level=1, bool clear_nodes = false); | 135 void print_method(Compile* compile, const char *name, int level=1, bool clear_nodes = false); |
135 void print(Compile* compile, const char *name, Node *root, int level=1, bool clear_nodes = false); | 136 void print(Compile* compile, const char *name, Node *root, int level=1, bool clear_nodes = false); |
136 void print_xml(const char *name); | 137 void print_xml(const char *name); |
138 | |
139 | |
137 }; | 140 }; |
138 | 141 |
139 #endif | 142 #endif |
140 | 143 |
141 #endif // SHARE_VM_OPTO_IDEALGRAPHPRINTER_HPP | 144 #endif // SHARE_VM_OPTO_IDEALGRAPHPRINTER_HPP |