hotspot/src/share/vm/opto/multnode.cpp
changeset 32084 7743e6943cdf
parent 30183 a6588c0a3259
child 34164 a9e6034d7707
equal deleted inserted replaced
32083:1796911eb140 32084:7743e6943cdf
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 1997, 2015, 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.
   116 }
   116 }
   117 
   117 
   118 bool ProjNode::pinned() const { return in(0)->pinned(); }
   118 bool ProjNode::pinned() const { return in(0)->pinned(); }
   119 #ifndef PRODUCT
   119 #ifndef PRODUCT
   120 void ProjNode::dump_spec(outputStream *st) const { st->print("#%d",_con); if(_is_io_use) st->print(" (i_o_use)");}
   120 void ProjNode::dump_spec(outputStream *st) const { st->print("#%d",_con); if(_is_io_use) st->print(" (i_o_use)");}
       
   121 
       
   122 void ProjNode::dump_compact_spec(outputStream *st) const {
       
   123   for (DUIterator i = this->outs(); this->has_out(i); i++) {
       
   124     Node* o = this->out(i);
       
   125     if (NotANode(o)) {
       
   126       st->print("[?]");
       
   127     } else if (o == NULL) {
       
   128       st->print("[_]");
       
   129     } else {
       
   130       st->print("[%d]", o->_idx);
       
   131     }
       
   132   }
       
   133   st->print("#%d", _con);
       
   134 }
   121 #endif
   135 #endif
   122 
   136 
   123 //----------------------------check_con----------------------------------------
   137 //----------------------------check_con----------------------------------------
   124 void ProjNode::check_con() const {
   138 void ProjNode::check_con() const {
   125   Node* n = in(0);
   139   Node* n = in(0);