/external/v8/test/unittests/base/ |
D | bits-unittest.cc | 88 TEST(Bits, IsPowerOfTwo32) { in TEST() argument 89 EXPECT_FALSE(IsPowerOfTwo32(0U)); in TEST() 91 EXPECT_TRUE(IsPowerOfTwo32(1U << shift)); in TEST() 92 EXPECT_FALSE(IsPowerOfTwo32((1U << shift) + 5U)); in TEST() 93 EXPECT_FALSE(IsPowerOfTwo32(~(1U << shift))); in TEST() 96 EXPECT_FALSE(IsPowerOfTwo32((1U << shift) - 1U)); in TEST() 98 EXPECT_FALSE(IsPowerOfTwo32(0xffffffff)); in TEST()
|
/external/v8/src/ic/ |
D | stub-cache.cc | 18 DCHECK(base::bits::IsPowerOfTwo32(kPrimaryTableSize)); in Initialize() 19 DCHECK(base::bits::IsPowerOfTwo32(kSecondaryTableSize)); in Initialize()
|
D | ic-state.cc | 233 base::bits::IsPowerOfTwo32(fixed_right_arg_value) && in Update()
|
/external/v8/src/ |
D | hashmap.h | 248 DCHECK(base::bits::IsPowerOfTwo32(capacity_)); in Probe() 268 DCHECK(base::bits::IsPowerOfTwo32(capacity)); in Initialize()
|
D | conversions-inl.h | 368 if (base::bits::IsPowerOfTwo32(radix)) { in InternalStringToInt()
|
D | assembler.cc | 1873 DCHECK(m >= 2 && base::bits::IsPowerOfTwo32(m)); in DataAlign()
|
/external/v8/src/base/ |
D | bits.h | 132 inline bool IsPowerOfTwo32(uint32_t value) { in IsPowerOfTwo32() function
|
/external/v8/src/compiler/mips64/ |
D | instruction-selector-mips64.cc | 616 if (base::bits::IsPowerOfTwo32(value)) { in VisitInt32Mul() 622 if (base::bits::IsPowerOfTwo32(value - 1)) { in VisitInt32Mul() 631 if (base::bits::IsPowerOfTwo32(value + 1)) { in VisitInt32Mul() 676 if (base::bits::IsPowerOfTwo32(value)) { in VisitInt64Mul() 682 if (base::bits::IsPowerOfTwo32(value - 1)) { in VisitInt64Mul() 691 if (base::bits::IsPowerOfTwo32(value + 1)) { in VisitInt64Mul()
|
/external/v8/src/compiler/ |
D | machine-operator-reducer.cc | 527 if (base::bits::IsPowerOfTwo32(Abs(divisor))) { in ReduceInt32Div() 567 if (base::bits::IsPowerOfTwo32(divisor)) { // x / 2^n => x >> n in ReduceUint32Div() 594 if (base::bits::IsPowerOfTwo32(divisor)) { in ReduceInt32Mod() 631 if (base::bits::IsPowerOfTwo32(divisor)) { // x % 2^n => x & 2^n-1 in ReduceUint32Mod()
|
/external/v8/src/compiler/mips/ |
D | instruction-selector-mips.cc | 428 if (base::bits::IsPowerOfTwo32(value)) { in VisitInt32Mul() 434 if (base::bits::IsPowerOfTwo32(value - 1)) { in VisitInt32Mul() 443 if (base::bits::IsPowerOfTwo32(value + 1)) { in VisitInt32Mul()
|
/external/v8/src/crankshaft/arm64/ |
D | lithium-arm64.cc | 1916 (small_constant || (base::bits::IsPowerOfTwo32(constant_abs)) || in DoMul() 1917 (!can_overflow && (base::bits::IsPowerOfTwo32(constant_abs + 1) || in DoMul() 1918 base::bits::IsPowerOfTwo32(constant_abs - 1))))) { in DoMul() 1921 base::bits::IsPowerOfTwo32(constant_abs) && !small_constant; in DoMul() 1928 base::bits::IsPowerOfTwo32(constant_abs))) { in DoMul()
|
D | lithium-codegen-arm64.cc | 2156 if (base::bits::IsPowerOfTwo32(mask)) { in DoCheckInstanceType() 2537 DCHECK(divisor == kMinInt || base::bits::IsPowerOfTwo32(Abs(divisor))); in DoDivByPowerOf2I() 4087 if (base::bits::IsPowerOfTwo32(right_abs)) { in DoMulConstIS() 4120 if (base::bits::IsPowerOfTwo32(right - 1)) { in DoMulConstIS() 4123 } else if (base::bits::IsPowerOfTwo32(right + 1)) { in DoMulConstIS() 4131 if (base::bits::IsPowerOfTwo32(-right + 1)) { in DoMulConstIS() 4134 } else if (base::bits::IsPowerOfTwo32(-right - 1)) { in DoMulConstIS()
|
/external/v8/test/unittests/compiler/ |
D | machine-operator-reducer-unittest.cc | 1014 if (base::bits::IsPowerOfTwo32(-divisor)) continue; in TEST_F() 1021 if (base::bits::IsPowerOfTwo32(divisor)) continue; in TEST_F() 1171 if (divisor == 0 || base::bits::IsPowerOfTwo32(Abs(divisor))) continue; in TEST_F()
|
/external/v8/src/x87/ |
D | macro-assembler-x87.cc | 930 DCHECK(base::bits::IsPowerOfTwo32(kFrameAlignment)); in EnterExitFrameEpilogue() 1751 DCHECK(base::bits::IsPowerOfTwo32(kBitsPerByte)); in BooleanBitTest() 2496 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in CheckStackAlignment() 2660 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in PrepareCallCFunction()
|
/external/v8/src/ia32/ |
D | macro-assembler-ia32.cc | 961 DCHECK(base::bits::IsPowerOfTwo32(kFrameAlignment)); in EnterExitFrameEpilogue() 1785 DCHECK(base::bits::IsPowerOfTwo32(kBitsPerByte)); in BooleanBitTest() 2613 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in CheckStackAlignment() 2788 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in PrepareCallCFunction()
|
/external/v8/src/crankshaft/mips64/ |
D | lithium-codegen-mips64.cc | 1071 DCHECK(divisor == kMinInt || base::bits::IsPowerOfTwo32(Abs(divisor))); in DoDivByPowerOf2I() 1406 if (base::bits::IsPowerOfTwo32(constant_abs)) { in DoMulS() 1411 } else if (base::bits::IsPowerOfTwo32(constant_abs - 1)) { in DoMulS() 1417 } else if (base::bits::IsPowerOfTwo32(constant_abs + 1)) { in DoMulS() 1508 if (base::bits::IsPowerOfTwo32(constant_abs)) { in DoMulI() 1513 } else if (base::bits::IsPowerOfTwo32(constant_abs - 1)) { in DoMulI() 1519 } else if (base::bits::IsPowerOfTwo32(constant_abs + 1)) { in DoMulI() 5141 if (base::bits::IsPowerOfTwo32(mask)) { in DoCheckInstanceType() 5142 DCHECK(tag == 0 || base::bits::IsPowerOfTwo32(tag)); in DoCheckInstanceType()
|
/external/v8/src/arm/ |
D | macro-assembler-arm.cc | 275 base::bits::IsPowerOfTwo32(src2.immediate() + 1)) { in And() 1136 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in EnterExitFrame() 3151 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in PrepareCallCFunction() 3230 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in CallCFunctionHelper()
|
/external/v8/src/compiler/arm/ |
D | instruction-selector-arm.cc | 866 if (base::bits::IsPowerOfTwo32(value - 1)) { in VisitInt32Mul() 873 if (value < kMaxInt && base::bits::IsPowerOfTwo32(value + 1)) { in VisitInt32Mul()
|
/external/v8/src/crankshaft/arm/ |
D | lithium-codegen-arm.cc | 1180 DCHECK(divisor == kMinInt || base::bits::IsPowerOfTwo32(Abs(divisor))); in DoDivByPowerOf2I() 1537 if (base::bits::IsPowerOfTwo32(constant_abs)) { in DoMulI() 1542 } else if (base::bits::IsPowerOfTwo32(constant_abs - 1)) { in DoMulI() 1547 } else if (base::bits::IsPowerOfTwo32(constant_abs + 1)) { in DoMulI() 4934 if (base::bits::IsPowerOfTwo32(mask)) { in DoCheckInstanceType() 4935 DCHECK(tag == 0 || base::bits::IsPowerOfTwo32(tag)); in DoCheckInstanceType()
|
/external/v8/src/crankshaft/mips/ |
D | lithium-codegen-mips.cc | 1081 DCHECK(divisor == kMinInt || base::bits::IsPowerOfTwo32(Abs(divisor))); in DoDivByPowerOf2I() 1407 if (base::bits::IsPowerOfTwo32(constant_abs)) { in DoMulI() 1412 } else if (base::bits::IsPowerOfTwo32(constant_abs - 1)) { in DoMulI() 1418 } else if (base::bits::IsPowerOfTwo32(constant_abs + 1)) { in DoMulI() 4938 if (base::bits::IsPowerOfTwo32(mask)) { in DoCheckInstanceType() 4939 DCHECK(tag == 0 || base::bits::IsPowerOfTwo32(tag)); in DoCheckInstanceType()
|
/external/v8/src/crankshaft/ppc/ |
D | lithium-codegen-ppc.cc | 1055 DCHECK(divisor == kMinInt || base::bits::IsPowerOfTwo32(Abs(divisor))); in DoDivByPowerOf2I() 1466 if (base::bits::IsPowerOfTwo32(constant_abs)) { in DoMulI() 1471 } else if (base::bits::IsPowerOfTwo32(constant_abs - 1)) { in DoMulI() 1477 } else if (base::bits::IsPowerOfTwo32(constant_abs + 1)) { in DoMulI() 5210 if (base::bits::IsPowerOfTwo32(mask)) { in DoShiftI() 5211 DCHECK(tag == 0 || base::bits::IsPowerOfTwo32(tag)); in DoShiftI()
|
/external/v8/src/mips/ |
D | macro-assembler-mips.cc | 4883 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in EnterExitFrame() 4901 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in EnterExitFrame() 4999 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in AssertStackIsAligned() 5322 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in PrepareCallCFunction() 5379 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in CallCFunctionHelper()
|
/external/v8/src/regexp/mips/ |
D | regexp-macro-assembler-mips.cc | 1087 DCHECK(base::bits::IsPowerOfTwo32(stack_alignment)); in CallCheckStackGuardState()
|
/external/v8/src/regexp/mips64/ |
D | regexp-macro-assembler-mips64.cc | 1127 DCHECK(base::bits::IsPowerOfTwo32(stack_alignment)); in CallCheckStackGuardState()
|
/external/v8/src/regexp/ppc/ |
D | regexp-macro-assembler-ppc.cc | 1099 DCHECK(base::bits::IsPowerOfTwo32(frame_alignment)); in CallCheckStackGuardState()
|