7104177: Tiered: -XX:+PrintCanonicalization doesn't work with -XX:+TieredCompilation

Initialize printable_bci of instruction when passed to Canonicalizer

Reviewed-by: kvn, never
This commit is contained in:
Igor Veresov 2011-10-27 14:40:25 -07:00
parent a6318f2dcd
commit 5a2f55d0e0

View File

@ -51,6 +51,7 @@ class Canonicalizer: InstructionVisitor {
public:
Canonicalizer(Compilation* c, Value x, int bci) : _compilation(c), _canonical(x), _bci(bci) {
NOT_PRODUCT(x->set_printable_bci(bci));
if (CanonicalizeNodes) x->visit(this);
}
Value canonical() const { return _canonical; }