< prev index next >

src/hotspot/share/code/pcDesc.hpp

Print this page




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  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 




   8  *
   9  * This code is distributed in the hope that it will be useful, but WITHOUT
  10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  12  * version 2 for more details (a copy is included in the LICENSE file that
  13  * accompanied this code).
  14  *
  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 
  29 // PcDescs map a physical PC (given as offset from start of nmethod) to
  30 // the corresponding source scope and byte code index.
  31 
  32 class CompiledMethod;
  33 
  34 class PcDesc {
  35   friend class VMStructs;
  36  private:
  37   int _pc_offset;           // offset from start of nmethod
  38   int _scope_decode_offset; // offset for scope in nmethod
  39   int _obj_decode_offset;
  40 
  41   enum {
  42     PCDESC_reexecute               = 1 << 0,
  43     PCDESC_is_method_handle_invoke = 1 << 1,
  44     PCDESC_return_oop              = 1 << 2,
  45     PCDESC_rethrow_exception       = 1 << 3
  46   };
  47 


< prev index next >