src/share/vm/opto/regmask.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File
*** old/src/share/vm/opto/regmask.cpp Mon May 5 12:30:08 2014
--- new/src/share/vm/opto/regmask.cpp Mon May 5 12:30:06 2014
*** 49,59 ****
--- 49,59 ----
#define RM_SIZE _RM_SIZE /* a constant private to the class RegMask */
//-------------Non-zero bit search methods used by RegMask---------------------
// Find lowest 1, or return 32 if empty
! int find_lowest_bit( uint32_t mask ) {
int n = 0;
if( (mask & 0xffff) == 0 ) {
mask >>= 16;
n += 16;
}
*** 78,88 ****
--- 78,88 ----
}
return n;
}
// Find highest 1, or return 32 if empty
! int find_hihghest_bit( uint32_t mask ) {
int n = 0;
if( mask > 0xffff ) {
mask >>= 16;
n += 16;
}
*** 393,403 ****
--- 393,403 ----
}
//------------------------------Size-------------------------------------------
// Compute size of register mask in bits
uint RegMask::Size() const {
! extern uint8_t bitsInByte[256];
uint sum = 0;
for( int i = 0; i < RM_SIZE; i++ )
sum +=
bitsInByte[(_A[i]>>24) & 0xff] +
bitsInByte[(_A[i]>>16) & 0xff] +
src/share/vm/opto/regmask.cpp
Index
Unified diffs
Context diffs
Sdiffs
Wdiffs
Patch
New
Old
Previous File
Next File