equal
deleted
inserted
replaced
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 |