8256203: Simplify RegMask::Empty

Reviewed-by: thartmann, chagedorn
This commit is contained in:
Claes Redestad 2020-11-12 14:20:48 +00:00
parent 70c7b1d93c
commit f7685a4639
2 changed files with 4 additions and 7 deletions

View File

@ -49,12 +49,7 @@ void OptoReg::dump(int r, outputStream *st) {
//=============================================================================
const RegMask RegMask::Empty(
# define BODY(I) 0,
FORALL_BODY
# undef BODY
0
);
const RegMask RegMask::Empty;
//=============================================================================
bool RegMask::is_vector(uint ireg) {

View File

@ -136,7 +136,9 @@ class RegMask {
}
// Construct an empty mask
RegMask() : _RM_UP(), _lwm(_RM_SIZE - 1), _hwm(0) {}
RegMask() : _RM_UP(), _lwm(_RM_SIZE - 1), _hwm(0) {
assert(valid_watermarks(), "post-condition");
}
// Construct a mask with a single bit
RegMask(OptoReg::Name reg) : RegMask() {