| Index: src/arm/macro-assembler-arm.h
|
| ===================================================================
|
| --- src/arm/macro-assembler-arm.h (revision 7286)
|
| +++ src/arm/macro-assembler-arm.h (working copy)
|
| @@ -826,6 +826,16 @@
|
| void JumpIfNotPowerOfTwoOrZero(Register reg,
|
| Register scratch,
|
| Label* not_power_of_two_or_zero);
|
| + // Check whether the value of reg is a power of two and not zero.
|
| + // Control falls through if it is, with scratch containing the mask
|
| + // value (reg - 1).
|
| + // Otherwise control jumps to the 'zero_and_neg' label if the value of reg is
|
| + // zero or negative, or jumps to the 'not_power_of_two' label if the value is
|
| + // strictly positive but not a power of two.
|
| + void JumpIfNotPowerOfTwoOrZeroAndNeg(Register reg,
|
| + Register scratch,
|
| + Label* zero_and_neg,
|
| + Label* not_power_of_two);
|
|
|
| // ---------------------------------------------------------------------------
|
| // Smi utilities
|
|
|