comparison 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
comparison
equal deleted inserted replaced
7153:c421c19b7bf8 7154:5d0bb7d52783
42 } 42 }
43 43
44 void PcDesc::print(nmethod* code) { 44 void PcDesc::print(nmethod* code) {
45 #ifndef PRODUCT 45 #ifndef PRODUCT
46 ResourceMark rm; 46 ResourceMark rm;
47 #ifdef GRAAL 47 if (code->is_compiled_by_graal()) {
48 tty->print_cr("PcDesc(pc=0x%lx offset=%x bits=%x leaf_graph_id=%d):", real_pc(code), pc_offset(), _flags, leaf_graph_id()); 48 tty->print_cr("PcDesc(pc=0x%lx offset=%x bits=%x leaf_graph_id=%d):", real_pc(code), pc_offset(), _flags, leaf_graph_id());
49 #else 49 } else {
50 tty->print_cr("PcDesc(pc=0x%lx offset=%x bits=%x):", real_pc(code), pc_offset(), _flags); 50 tty->print_cr("PcDesc(pc=0x%lx offset=%x bits=%x):", real_pc(code), pc_offset(), _flags);
51 #endif 51 }
52 52
53 if (scope_decode_offset() == DebugInformationRecorder::serialized_null) { 53 if (scope_decode_offset() == DebugInformationRecorder::serialized_null) {
54 return; 54 return;
55 } 55 }
56 56