Mercurial > hg > truffle
comparison src/share/vm/opto/replacednodes.cpp @ 20472:5627633fc830
8048703: ReplacedNodes dumps it's content to tty
Reviewed-by: roland, iveresov, drchase
author | vlivanov |
---|---|
date | Mon, 14 Jul 2014 03:29:42 -0700 |
parents | 411e30e5fbb8 |
children |
comparison
equal
deleted
inserted
replaced
20471:945284eb609f | 20472:5627633fc830 |
---|---|
183 } | 183 } |
184 } | 184 } |
185 | 185 |
186 void ReplacedNodes::dump(outputStream *st) const { | 186 void ReplacedNodes::dump(outputStream *st) const { |
187 if (!is_empty()) { | 187 if (!is_empty()) { |
188 tty->print("replaced nodes: "); | 188 st->print("replaced nodes: "); |
189 for (int i = 0; i < _replaced_nodes->length(); i++) { | 189 for (int i = 0; i < _replaced_nodes->length(); i++) { |
190 tty->print("%d->%d", _replaced_nodes->at(i).initial()->_idx, _replaced_nodes->at(i).improved()->_idx); | 190 st->print("%d->%d", _replaced_nodes->at(i).initial()->_idx, _replaced_nodes->at(i).improved()->_idx); |
191 if (i < _replaced_nodes->length()-1) { | 191 if (i < _replaced_nodes->length()-1) { |
192 tty->print(","); | 192 st->print(","); |
193 } | 193 } |
194 } | 194 } |
195 } | 195 } |
196 } | 196 } |
197 | 197 |