15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_CODE_PCDESC_HPP
26 #define SHARE_VM_CODE_PCDESC_HPP
27
28 #include "memory/allocation.hpp"
29
30 // PcDescs map a physical PC (given as offset from start of nmethod) to
31 // the corresponding source scope and byte code index.
32
33 class CompiledMethod;
34
35 class PcDesc VALUE_OBJ_CLASS_SPEC {
36 friend class VMStructs;
37 private:
38 int _pc_offset; // offset from start of nmethod
39 int _scope_decode_offset; // offset for scope in nmethod
40 int _obj_decode_offset;
41
42 enum {
43 PCDESC_reexecute = 1 << 0,
44 PCDESC_is_method_handle_invoke = 1 << 1,
45 PCDESC_return_oop = 1 << 2,
46 PCDESC_rethrow_exception = 1 << 3
47 };
48
49 int _flags;
50
51 void set_flag(int mask, bool z) {
52 _flags = z ? (_flags | mask) : (_flags & ~mask);
53 }
54
55 public:
|
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 *
23 */
24
25 #ifndef SHARE_VM_CODE_PCDESC_HPP
26 #define SHARE_VM_CODE_PCDESC_HPP
27
28 #include "memory/allocation.hpp"
29
30 // PcDescs map a physical PC (given as offset from start of nmethod) to
31 // the corresponding source scope and byte code index.
32
33 class CompiledMethod;
34
35 class PcDesc {
36 friend class VMStructs;
37 private:
38 int _pc_offset; // offset from start of nmethod
39 int _scope_decode_offset; // offset for scope in nmethod
40 int _obj_decode_offset;
41
42 enum {
43 PCDESC_reexecute = 1 << 0,
44 PCDESC_is_method_handle_invoke = 1 << 1,
45 PCDESC_return_oop = 1 << 2,
46 PCDESC_rethrow_exception = 1 << 3
47 };
48
49 int _flags;
50
51 void set_flag(int mask, bool z) {
52 _flags = z ? (_flags | mask) : (_flags & ~mask);
53 }
54
55 public:
|