hotspot/src/cpu/x86/vm/register_x86.hpp
changeset 33105 294e48b4f704
parent 30624 2e1803c8a26d
child 33198 b37ad9fbf681
equal deleted inserted replaced
33104:a7c0f60a1294 33105:294e48b4f704
   160 
   160 
   161   // derived registers, offsets, and addresses
   161   // derived registers, offsets, and addresses
   162   XMMRegister successor() const                          { return as_XMMRegister(encoding() + 1); }
   162   XMMRegister successor() const                          { return as_XMMRegister(encoding() + 1); }
   163 
   163 
   164   // accessors
   164   // accessors
   165   int   encoding() const                          { assert(is_valid(), err_msg("invalid register (%d)", (int)(intptr_t)this )); return (intptr_t)this; }
   165   int   encoding() const                          { assert(is_valid(), "invalid register (%d)", (int)(intptr_t)this ); return (intptr_t)this; }
   166   bool  is_valid() const                          { return 0 <= (intptr_t)this && (intptr_t)this < number_of_registers; }
   166   bool  is_valid() const                          { return 0 <= (intptr_t)this && (intptr_t)this < number_of_registers; }
   167   const char* name() const;
   167   const char* name() const;
   168 };
   168 };
   169 
   169 
   170 
   170 
   243 
   243 
   244   // derived registers, offsets, and addresses
   244   // derived registers, offsets, and addresses
   245   KRegister successor() const                          { return as_KRegister(encoding() + 1); }
   245   KRegister successor() const                          { return as_KRegister(encoding() + 1); }
   246 
   246 
   247   // accessors
   247   // accessors
   248   int   encoding() const                          { assert(is_valid(), err_msg("invalid register (%d)", (int)(intptr_t)this)); return (intptr_t)this; }
   248   int   encoding() const                          { assert(is_valid(), "invalid register (%d)", (int)(intptr_t)this); return (intptr_t)this; }
   249   bool  is_valid() const                          { return 0 <= (intptr_t)this && (intptr_t)this < number_of_registers; }
   249   bool  is_valid() const                          { return 0 <= (intptr_t)this && (intptr_t)this < number_of_registers; }
   250   const char* name() const;
   250   const char* name() const;
   251 };
   251 };
   252 
   252 
   253 // The Mask registers, for AVX3 enabled and up chips
   253 // The Mask registers, for AVX3 enabled and up chips