< prev index next >

src/hotspot/share/opto/cfgnode.cpp

Print this page
*** 37,10 ***
--- 37,11 ---
  #include "opto/machnode.hpp"
  #include "opto/movenode.hpp"
  #include "opto/narrowptrnode.hpp"
  #include "opto/mulnode.hpp"
  #include "opto/phaseX.hpp"
+ #include "opto/regalloc.hpp"
  #include "opto/regmask.hpp"
  #include "opto/runtime.hpp"
  #include "opto/subnode.hpp"
  #include "opto/vectornode.hpp"
  #include "utilities/vmError.hpp"

*** 2813,5 ***
--- 2814,27 ---
  #ifndef PRODUCT
  void NeverBranchNode::format( PhaseRegAlloc *ra_, outputStream *st) const {
    st->print("%s", Name());
  }
  #endif
+ 
+ #ifndef PRODUCT
+ void BlackholeNode::format(PhaseRegAlloc* ra, outputStream* st) const {
+   st->print("blackhole ");
+   bool first = true;
+   for (uint i = 0; i < req(); i++) {
+     Node* n = in(i);
+     if (n != NULL && OptoReg::is_valid(ra->get_reg_first(n))) {
+       if (first) {
+         first = false;
+       } else {
+         st->print(", ");
+       }
+       char buf[128];
+       ra->dump_register(n, buf);
+       st->print("%s", buf);
+     }
+   }
+   st->cr();
+ }
+ #endif
+ 
< prev index next >