8256203: Simplify RegMask::Empty
Reviewed-by: thartmann, chagedorn
This commit is contained in:
parent
70c7b1d93c
commit
f7685a4639
@ -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) {
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user