Mercurial > hg > truffle
comparison src/share/vm/code/pcDesc.cpp @ 7660:0b646334c5f7
keep track of leafGraphIds only at the StructuredGraph level (see GRAAL-60)
author | Lukas Stadler <lukas.stadler@jku.at> |
---|---|
date | Fri, 01 Feb 2013 17:32:59 +0100 |
parents | 5d0bb7d52783 |
children | 52b4284cb496 |
comparison
equal
deleted
inserted
replaced
7656:01aeaf194641 | 7660:0b646334c5f7 |
---|---|
27 #include "code/nmethod.hpp" | 27 #include "code/nmethod.hpp" |
28 #include "code/pcDesc.hpp" | 28 #include "code/pcDesc.hpp" |
29 #include "code/scopeDesc.hpp" | 29 #include "code/scopeDesc.hpp" |
30 #include "memory/resourceArea.hpp" | 30 #include "memory/resourceArea.hpp" |
31 | 31 |
32 PcDesc::PcDesc(int pc_offset, int scope_decode_offset, int obj_decode_offset, jlong leaf_graph_id) { | 32 PcDesc::PcDesc(int pc_offset, int scope_decode_offset, int obj_decode_offset) { |
33 _pc_offset = pc_offset; | 33 _pc_offset = pc_offset; |
34 _scope_decode_offset = scope_decode_offset; | 34 _scope_decode_offset = scope_decode_offset; |
35 _obj_decode_offset = obj_decode_offset; | 35 _obj_decode_offset = obj_decode_offset; |
36 _flags = 0; | 36 _flags = 0; |
37 GRAAL_ONLY(_leaf_graph_id = leaf_graph_id); | |
38 } | 37 } |
39 | 38 |
40 address PcDesc::real_pc(const nmethod* code) const { | 39 address PcDesc::real_pc(const nmethod* code) const { |
41 return code->code_begin() + pc_offset(); | 40 return code->code_begin() + pc_offset(); |
42 } | 41 } |
43 | 42 |
44 void PcDesc::print(nmethod* code) { | 43 void PcDesc::print(nmethod* code) { |
45 #ifndef PRODUCT | 44 #ifndef PRODUCT |
46 ResourceMark rm; | 45 ResourceMark rm; |
47 if (code->is_compiled_by_graal()) { | 46 tty->print_cr("PcDesc(pc=0x%lx offset=%x bits=%x):", real_pc(code), pc_offset(), _flags); |
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 { | |
50 tty->print_cr("PcDesc(pc=0x%lx offset=%x bits=%x):", real_pc(code), pc_offset(), _flags); | |
51 } | |
52 | 47 |
53 if (scope_decode_offset() == DebugInformationRecorder::serialized_null) { | 48 if (scope_decode_offset() == DebugInformationRecorder::serialized_null) { |
54 return; | 49 return; |
55 } | 50 } |
56 | 51 |