equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1997, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. |
7 * published by the Free Software Foundation. |
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 } |
37 } |
38 |
38 |
39 address PcDesc::real_pc(const nmethod* code) const { |
39 address PcDesc::real_pc(const CompiledMethod* code) const { |
40 return code->code_begin() + pc_offset(); |
40 return code->code_begin() + pc_offset(); |
41 } |
41 } |
42 |
42 |
43 void PcDesc::print(nmethod* code) { |
43 void PcDesc::print(CompiledMethod* code) { |
44 #ifndef PRODUCT |
44 #ifndef PRODUCT |
45 ResourceMark rm; |
45 ResourceMark rm; |
46 tty->print_cr("PcDesc(pc=" PTR_FORMAT " offset=%x bits=%x):", p2i(real_pc(code)), pc_offset(), _flags); |
46 tty->print_cr("PcDesc(pc=" PTR_FORMAT " offset=%x bits=%x):", p2i(real_pc(code)), pc_offset(), _flags); |
47 |
47 |
48 if (scope_decode_offset() == DebugInformationRecorder::serialized_null) { |
48 if (scope_decode_offset() == DebugInformationRecorder::serialized_null) { |
55 sd->print_on(tty); |
55 sd->print_on(tty); |
56 } |
56 } |
57 #endif |
57 #endif |
58 } |
58 } |
59 |
59 |
60 bool PcDesc::verify(nmethod* code) { |
60 bool PcDesc::verify(CompiledMethod* code) { |
61 //Unimplemented(); |
61 //Unimplemented(); |
62 return true; |
62 return true; |
63 } |
63 } |