src/share/vm/opto/node.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File 7119644 Sdiff src/share/vm/opto

src/share/vm/opto/node.cpp

Print this page


   1 /*
   2  * Copyright (c) 1997, 2011, 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  *


1559     const TypeKlassPtr *tkls = t->isa_klassptr();
1560     ciKlass*           klass = toop ? toop->klass() : (tkls ? tkls->klass() : NULL );
1561     if( klass && klass->is_loaded() && klass->is_interface() ) {
1562       tty->print("  Interface:");
1563     } else if( toop ) {
1564       tty->print("  Oop:");
1565     } else if( tkls ) {
1566       tty->print("  Klass:");
1567     }
1568     t->dump();
1569   } else if( t == Type::MEMORY ) {
1570     tty->print("  Memory:");
1571     MemNode::dump_adr_type(this, adr_type(), tty);
1572   } else if( Verbose || WizardMode ) {
1573     tty->print("  Type:");
1574     if( t ) {
1575       t->dump();
1576     } else {
1577       tty->print("no type");
1578     }



1579   }
1580   if (is_new) {
1581     debug_only(dump_orig(debug_orig()));
1582     Node_Notes* nn = C->node_notes_at(_idx);
1583     if (nn != NULL && !nn->is_clear()) {
1584       if (nn->jvms() != NULL) {
1585         tty->print(" !jvms:");
1586         nn->jvms()->dump_spec(tty);
1587       }
1588     }
1589   }
1590   tty->cr();
1591   _in_dump_cnt--;
1592 }
1593 
1594 //------------------------------dump_req--------------------------------------
1595 void Node::dump_req() const {
1596   // Dump the required input edges
1597   for (uint i = 0; i < req(); i++) {    // For all required inputs
1598     Node* d = in(i);


   1 /*
   2  * Copyright (c) 1997, 2012, 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  *


1559     const TypeKlassPtr *tkls = t->isa_klassptr();
1560     ciKlass*           klass = toop ? toop->klass() : (tkls ? tkls->klass() : NULL );
1561     if( klass && klass->is_loaded() && klass->is_interface() ) {
1562       tty->print("  Interface:");
1563     } else if( toop ) {
1564       tty->print("  Oop:");
1565     } else if( tkls ) {
1566       tty->print("  Klass:");
1567     }
1568     t->dump();
1569   } else if( t == Type::MEMORY ) {
1570     tty->print("  Memory:");
1571     MemNode::dump_adr_type(this, adr_type(), tty);
1572   } else if( Verbose || WizardMode ) {
1573     tty->print("  Type:");
1574     if( t ) {
1575       t->dump();
1576     } else {
1577       tty->print("no type");
1578     }
1579   } else if (t->isa_vect() && this->is_MachSpillCopy()) {
1580     // Dump MachSpillcopy vector type.
1581     t->dump();
1582   }
1583   if (is_new) {
1584     debug_only(dump_orig(debug_orig()));
1585     Node_Notes* nn = C->node_notes_at(_idx);
1586     if (nn != NULL && !nn->is_clear()) {
1587       if (nn->jvms() != NULL) {
1588         tty->print(" !jvms:");
1589         nn->jvms()->dump_spec(tty);
1590       }
1591     }
1592   }
1593   tty->cr();
1594   _in_dump_cnt--;
1595 }
1596 
1597 //------------------------------dump_req--------------------------------------
1598 void Node::dump_req() const {
1599   // Dump the required input edges
1600   for (uint i = 0; i < req(); i++) {    // For all required inputs
1601     Node* d = in(i);


src/share/vm/opto/node.cpp
Index Unified diffs Context diffs Sdiffs Wdiffs Patch New Old Previous File Next File