Mercurial > hg > truffle
diff src/share/vm/code/pcDesc.cpp @ 7154:5d0bb7d52783
changes to support Graal co-existing with the other HotSpot compiler(s) and being used for explicit compilation requests and code installation via the Graal API
author | Doug Simon <doug.simon@oracle.com> |
---|---|
date | Wed, 12 Dec 2012 21:36:40 +0100 |
parents | 51111665eda6 |
children | 0b646334c5f7 |
line wrap: on
line diff
--- a/src/share/vm/code/pcDesc.cpp Wed Dec 12 15:46:11 2012 +0100 +++ b/src/share/vm/code/pcDesc.cpp Wed Dec 12 21:36:40 2012 +0100 @@ -44,11 +44,11 @@ void PcDesc::print(nmethod* code) { #ifndef PRODUCT ResourceMark rm; -#ifdef GRAAL - tty->print_cr("PcDesc(pc=0x%lx offset=%x bits=%x leaf_graph_id=%d):", real_pc(code), pc_offset(), _flags, leaf_graph_id()); -#else - tty->print_cr("PcDesc(pc=0x%lx offset=%x bits=%x):", real_pc(code), pc_offset(), _flags); -#endif + if (code->is_compiled_by_graal()) { + tty->print_cr("PcDesc(pc=0x%lx offset=%x bits=%x leaf_graph_id=%d):", real_pc(code), pc_offset(), _flags, leaf_graph_id()); + } else { + tty->print_cr("PcDesc(pc=0x%lx offset=%x bits=%x):", real_pc(code), pc_offset(), _flags); + } if (scope_decode_offset() == DebugInformationRecorder::serialized_null) { return;