hotspot/src/share/vm/code/pcDesc.hpp
changeset 38133 78b95467b9f1
parent 33160 c59f1676d27e
equal deleted inserted replaced
38132:ba888a4f352a 38133:78b95467b9f1
     1 /*
     1 /*
     2  * Copyright (c) 1997, 2010, 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.
    28 #include "memory/allocation.hpp"
    28 #include "memory/allocation.hpp"
    29 
    29 
    30 // PcDescs map a physical PC (given as offset from start of nmethod) to
    30 // PcDescs map a physical PC (given as offset from start of nmethod) to
    31 // the corresponding source scope and byte code index.
    31 // the corresponding source scope and byte code index.
    32 
    32 
    33 class nmethod;
    33 class CompiledMethod;
    34 
    34 
    35 class PcDesc VALUE_OBJ_CLASS_SPEC {
    35 class PcDesc VALUE_OBJ_CLASS_SPEC {
    36   friend class VMStructs;
    36   friend class VMStructs;
    37  private:
    37  private:
    38   int _pc_offset;           // offset from start of nmethod
    38   int _pc_offset;           // offset from start of nmethod
    89 
    89 
    90   bool     return_oop()                    const { return (_flags & PCDESC_return_oop) != 0;     }
    90   bool     return_oop()                    const { return (_flags & PCDESC_return_oop) != 0;     }
    91   void set_return_oop(bool z)                    { set_flag(PCDESC_return_oop, z); }
    91   void set_return_oop(bool z)                    { set_flag(PCDESC_return_oop, z); }
    92 
    92 
    93   // Returns the real pc
    93   // Returns the real pc
    94   address real_pc(const nmethod* code) const;
    94   address real_pc(const CompiledMethod* code) const;
    95 
    95 
    96   void print(nmethod* code);
    96   void print(CompiledMethod* code);
    97   bool verify(nmethod* code);
    97   bool verify(CompiledMethod* code);
    98 };
    98 };
    99 
    99 
   100 #endif // SHARE_VM_CODE_PCDESC_HPP
   100 #endif // SHARE_VM_CODE_PCDESC_HPP