Mercurial > hg > truffle
diff src/share/vm/opto/bytecodeInfo.cpp @ 3939:f6f3bb0ee072
7088955: add C2 IR support to the SA
Reviewed-by: kvn
author | never |
---|---|
date | Sun, 11 Sep 2011 14:48:24 -0700 |
parents | c26de9aef2ed |
children | 80ae8033fe01 0f4014d7731b |
line wrap: on
line diff
--- a/src/share/vm/opto/bytecodeInfo.cpp Sat Sep 10 17:29:02 2011 -0700 +++ b/src/share/vm/opto/bytecodeInfo.cpp Sun Sep 11 14:48:24 2011 -0700 @@ -610,3 +610,22 @@ } return iltp; } + + + +#ifndef PRODUCT +void InlineTree::print_impl(outputStream* st, int indent) const { + for (int i = 0; i < indent; i++) st->print(" "); + st->print(" @ %d ", caller_bci()); + method()->print_short_name(st); + st->cr(); + + for (int i = 0 ; i < _subtrees.length(); i++) { + _subtrees.at(i)->print_impl(st, indent + 2); + } +} + +void InlineTree::print_value_on(outputStream* st) const { + print_impl(st, 2); +} +#endif