equal
deleted
inserted
replaced
134 inline friend FloatRegister as_FloatRegister(int encoding); |
134 inline friend FloatRegister as_FloatRegister(int encoding); |
135 |
135 |
136 VMReg as_VMReg(); |
136 VMReg as_VMReg(); |
137 |
137 |
138 // derived registers, offsets, and addresses |
138 // derived registers, offsets, and addresses |
139 FloatRegister successor() const { return as_FloatRegister(encoding() + 1); } |
139 FloatRegister successor() const { return as_FloatRegister((encoding() + 1) % 32); } |
140 |
140 |
141 // accessors |
141 // accessors |
142 int encoding() const { assert(is_valid(), "invalid register"); return (intptr_t)this; } |
142 int encoding() const { assert(is_valid(), "invalid register"); return (intptr_t)this; } |
143 int encoding_nocheck() const { return (intptr_t)this; } |
143 int encoding_nocheck() const { return (intptr_t)this; } |
144 bool is_valid() const { return 0 <= (intptr_t)this && (intptr_t)this < number_of_registers; } |
144 bool is_valid() const { return 0 <= (intptr_t)this && (intptr_t)this < number_of_registers; } |