1 /* 2 * Copyright (c) 2007, 2009, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 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 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 #include "incls/_precompiled.incl" 26 #include "incls/_idealGraphPrinter.cpp.incl" 27 28 #ifndef PRODUCT 29 30 // Constants 31 // Keep consistent with Java constants 32 const char *IdealGraphPrinter::INDENT = " "; 33 const char *IdealGraphPrinter::TOP_ELEMENT = "graphDocument"; 34 const char *IdealGraphPrinter::GROUP_ELEMENT = "group"; 35 const char *IdealGraphPrinter::GRAPH_ELEMENT = "graph"; 36 const char *IdealGraphPrinter::PROPERTIES_ELEMENT = "properties"; 37 const char *IdealGraphPrinter::EDGES_ELEMENT = "edges"; 38 const char *IdealGraphPrinter::PROPERTY_ELEMENT = "p"; 39 const char *IdealGraphPrinter::EDGE_ELEMENT = "edge"; 40 const char *IdealGraphPrinter::NODE_ELEMENT = "node"; 41 const char *IdealGraphPrinter::NODES_ELEMENT = "nodes"; 42 const char *IdealGraphPrinter::REMOVE_EDGE_ELEMENT = "removeEdge"; 43 const char *IdealGraphPrinter::REMOVE_NODE_ELEMENT = "removeNode"; 44 const char *IdealGraphPrinter::METHOD_NAME_PROPERTY = "name"; 45 const char *IdealGraphPrinter::METHOD_IS_PUBLIC_PROPERTY = "public"; 46 const char *IdealGraphPrinter::METHOD_IS_STATIC_PROPERTY = "static"; | 1 /* 2 * Copyright (c) 2007, 2010, Oracle and/or its affiliates. All rights reserved. 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4 * 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 7 * published by the Free Software Foundation. 8 * 9 * This code is distributed in the hope that it will be useful, but WITHOUT 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 12 * version 2 for more details (a copy is included in the LICENSE file that 13 * accompanied this code). 14 * 15 * You should have received a copy of the GNU General Public License version 16 * 2 along with this work; if not, write to the Free Software Foundation, 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 18 * 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 20 * or visit www.oracle.com if you need additional information or have any 21 * questions. 22 * 23 */ 24 25 #include "precompiled.hpp" 26 #include "opto/chaitin.hpp" 27 #include "opto/idealGraphPrinter.hpp" 28 #include "opto/machnode.hpp" 29 #include "opto/parse.hpp" 30 #include "runtime/threadCritical.hpp" 31 32 #ifndef PRODUCT 33 34 // Constants 35 // Keep consistent with Java constants 36 const char *IdealGraphPrinter::INDENT = " "; 37 const char *IdealGraphPrinter::TOP_ELEMENT = "graphDocument"; 38 const char *IdealGraphPrinter::GROUP_ELEMENT = "group"; 39 const char *IdealGraphPrinter::GRAPH_ELEMENT = "graph"; 40 const char *IdealGraphPrinter::PROPERTIES_ELEMENT = "properties"; 41 const char *IdealGraphPrinter::EDGES_ELEMENT = "edges"; 42 const char *IdealGraphPrinter::PROPERTY_ELEMENT = "p"; 43 const char *IdealGraphPrinter::EDGE_ELEMENT = "edge"; 44 const char *IdealGraphPrinter::NODE_ELEMENT = "node"; 45 const char *IdealGraphPrinter::NODES_ELEMENT = "nodes"; 46 const char *IdealGraphPrinter::REMOVE_EDGE_ELEMENT = "removeEdge"; 47 const char *IdealGraphPrinter::REMOVE_NODE_ELEMENT = "removeNode"; 48 const char *IdealGraphPrinter::METHOD_NAME_PROPERTY = "name"; 49 const char *IdealGraphPrinter::METHOD_IS_PUBLIC_PROPERTY = "public"; 50 const char *IdealGraphPrinter::METHOD_IS_STATIC_PROPERTY = "static"; |