< prev index next >

src/share/vm/compiler/oopMap.hpp

Print this page




  26 #define SHARE_VM_COMPILER_OOPMAP_HPP
  27 
  28 #include "code/compressedStream.hpp"
  29 #include "code/vmreg.hpp"
  30 #include "memory/allocation.hpp"
  31 #include "utilities/growableArray.hpp"
  32 
  33 // Interface for generating the frame map for compiled code.  A frame map
  34 // describes for a specific pc whether each register and frame stack slot is:
  35 //   Oop         - A GC root for current frame
  36 //   Value       - Live non-oop, non-float value: int, either half of double
  37 //   Dead        - Dead; can be Zapped for debugging
  38 //   CalleeXX    - Callee saved; also describes which caller register is saved
  39 //   DerivedXX   - A derived oop; original oop is described.
  40 //
  41 // OopMapValue describes a single OopMap entry
  42 
  43 class frame;
  44 class RegisterMap;
  45 class DerivedPointerEntry;

  46 
  47 class OopMapValue: public StackObj {
  48   friend class VMStructs;
  49 private:
  50   short _value;
  51   int value() const                                 { return _value; }
  52   void set_value(int value)                         { _value = value; }
  53   short _content_reg;
  54 
  55 public:
  56   // Constants
  57   enum { type_bits                = 5,
  58          register_bits            = BitsPerShort - type_bits };
  59 
  60   enum { type_shift               = 0,
  61          register_shift           = type_bits };
  62 
  63   enum { type_mask                = right_n_bits(type_bits),
  64          type_mask_in_place       = type_mask << type_shift,
  65          register_mask            = right_n_bits(register_bits),




  26 #define SHARE_VM_COMPILER_OOPMAP_HPP
  27 
  28 #include "code/compressedStream.hpp"
  29 #include "code/vmreg.hpp"
  30 #include "memory/allocation.hpp"
  31 #include "utilities/growableArray.hpp"
  32 
  33 // Interface for generating the frame map for compiled code.  A frame map
  34 // describes for a specific pc whether each register and frame stack slot is:
  35 //   Oop         - A GC root for current frame
  36 //   Value       - Live non-oop, non-float value: int, either half of double
  37 //   Dead        - Dead; can be Zapped for debugging
  38 //   CalleeXX    - Callee saved; also describes which caller register is saved
  39 //   DerivedXX   - A derived oop; original oop is described.
  40 //
  41 // OopMapValue describes a single OopMap entry
  42 
  43 class frame;
  44 class RegisterMap;
  45 class DerivedPointerEntry;
  46 class OopClosure;
  47 
  48 class OopMapValue: public StackObj {
  49   friend class VMStructs;
  50 private:
  51   short _value;
  52   int value() const                                 { return _value; }
  53   void set_value(int value)                         { _value = value; }
  54   short _content_reg;
  55 
  56 public:
  57   // Constants
  58   enum { type_bits                = 5,
  59          register_bits            = BitsPerShort - type_bits };
  60 
  61   enum { type_shift               = 0,
  62          register_shift           = type_bits };
  63 
  64   enum { type_mask                = right_n_bits(type_bits),
  65          type_mask_in_place       = type_mask << type_shift,
  66          register_mask            = right_n_bits(register_bits),


< prev index next >