< prev index next >

src/hotspot/share/code/location.hpp

Print this page




  23  */
  24 
  25 #ifndef SHARE_VM_CODE_LOCATION_HPP
  26 #define SHARE_VM_CODE_LOCATION_HPP
  27 
  28 #include "asm/assembler.hpp"
  29 #include "code/vmreg.hpp"
  30 #include "memory/allocation.hpp"
  31 
  32 // A Location describes a concrete machine variable location
  33 // (such as integer or floating point register or a stack-held
  34 // variable). Used when generating debug-information for nmethods.
  35 //
  36 // Encoding:
  37 //
  38 // bits (use low bits for best compression):
  39 //  Type:   [3..0]
  40 //  Where:  [4]
  41 //  Offset: [31..5]
  42 
  43 class Location VALUE_OBJ_CLASS_SPEC {
  44   friend class VMStructs;
  45  public:
  46   enum Where {
  47     on_stack,
  48     in_register
  49   };
  50 
  51   enum Type {
  52     invalid,                    // Invalid location
  53     normal,                     // Ints, floats, double halves
  54     oop,                        // Oop (please GC me!)
  55     int_in_long,                // Integer held in long register
  56     lng,                        // Long held in one register
  57     float_in_dbl,               // Float held in double register
  58     dbl,                        // Double held in one register
  59     addr,                       // JSR return address
  60     narrowoop                   // Narrow Oop (please GC me!)
  61   };
  62 
  63 




  23  */
  24 
  25 #ifndef SHARE_VM_CODE_LOCATION_HPP
  26 #define SHARE_VM_CODE_LOCATION_HPP
  27 
  28 #include "asm/assembler.hpp"
  29 #include "code/vmreg.hpp"
  30 #include "memory/allocation.hpp"
  31 
  32 // A Location describes a concrete machine variable location
  33 // (such as integer or floating point register or a stack-held
  34 // variable). Used when generating debug-information for nmethods.
  35 //
  36 // Encoding:
  37 //
  38 // bits (use low bits for best compression):
  39 //  Type:   [3..0]
  40 //  Where:  [4]
  41 //  Offset: [31..5]
  42 
  43 class Location {
  44   friend class VMStructs;
  45  public:
  46   enum Where {
  47     on_stack,
  48     in_register
  49   };
  50 
  51   enum Type {
  52     invalid,                    // Invalid location
  53     normal,                     // Ints, floats, double halves
  54     oop,                        // Oop (please GC me!)
  55     int_in_long,                // Integer held in long register
  56     lng,                        // Long held in one register
  57     float_in_dbl,               // Float held in double register
  58     dbl,                        // Double held in one register
  59     addr,                       // JSR return address
  60     narrowoop                   // Narrow Oop (please GC me!)
  61   };
  62 
  63 


< prev index next >