8048703: ReplacedNodes dumps it's content to tty

Reviewed-by: roland, iveresov, drchase
This commit is contained in:
Vladimir Ivanov 2014-07-14 03:29:42 -07:00
parent c24909197f
commit db4aa1aa54

View File

@ -185,11 +185,11 @@ void ReplacedNodes::apply(Compile* C, Node* ctl) {
void ReplacedNodes::dump(outputStream *st) const {
if (!is_empty()) {
tty->print("replaced nodes: ");
st->print("replaced nodes: ");
for (int i = 0; i < _replaced_nodes->length(); i++) {
tty->print("%d->%d", _replaced_nodes->at(i).initial()->_idx, _replaced_nodes->at(i).improved()->_idx);
st->print("%d->%d", _replaced_nodes->at(i).initial()->_idx, _replaced_nodes->at(i).improved()->_idx);
if (i < _replaced_nodes->length()-1) {
tty->print(",");
st->print(",");
}
}
}